1
maywin
I need suggestions for new website
  • 2009/11/5 15:48

  • maywin

  • Just popping in

  • Posts: 26

  • Since: 2009/6/9 1


I'm making a new website and I need suggestions.

It's going to be like a confessions website which people can post their confessions, either way; anonymous or not and other people can comment...

What kind of module I can use for a site like this?

2
ghia
Re: I need suggestions for new website
  • 2009/11/5 17:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think you can use every content module as eg News or a blog module for that purpose.

3
maywin
Re: I need suggestions for new website
  • 2009/11/7 3:19

  • maywin

  • Just popping in

  • Posts: 26

  • Since: 2009/6/9 1


thank you so much.... I did it, I think it's gonna work great... I just need one more thing...

I would like to add "terms and conditions" on the page when people posting and of course it has to be mandatory.

I looked on the admin page but I didn't see it...

4
ghia
Re: I need suggestions for new website
  • 2009/11/7 8:22

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


What module do you use?

5
maywin
Re: I need suggestions for new website
  • 2009/11/7 15:10

  • maywin

  • Just popping in

  • Posts: 26

  • Since: 2009/6/9 1


oh, sorry. I forgot that... I installed news 1.53 with adsense capability.

6
ghia
Re: I need suggestions for new website
  • 2009/11/7 19:36

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
I would like to add "terms and conditions" on the page when people posting and of course it has to be mandatory.
How do you see that, especially the 'mandatory'.
How should it work opposed to the current function of submitting News?

7
maywin
Re: I need suggestions for new website
  • 2009/11/7 21:04

  • maywin

  • Just popping in

  • Posts: 26

  • Since: 2009/6/9 1


ok, since they won't be submitting news (it's confession site), I need to put "terms and conditions" or "disclaimer" and there should be a box that poster should check, if they won't accept it there should be a warning pop up or page should reload with the story to remind them to check the box or the story will not be accepted...

8
ghia
Re: I need suggestions for new website
  • 2009/11/8 2:22

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Maybe doing with Javascript would be the easiest.
In storyform.inc.php replace
$submit_btn->setExtra('accesskey="s"');

by
$submit_btn->setExtra('accesskey="s"  onClick="myConfirm()" );

In your xoops.js, you add this confim function:
var windowHandle;
function 
myConfirm() {
    
windowHandle window.open('confirm.html','windowName','width=600,height=320');
    if (!
windowHandle.opener)
        
windowHandle.opener self;
    return 
false;
}

You need a confirm.html (regular html file, mind the paths) with at the inside:
do solemnly swear .....
<
FORM>
<
INPUT TYPE="button" VALUE="Okay" onClick="opener.document.storyform.submit();self.close()">
<
INPUT TYPE="button" VALUE="Cancel" onClick="self.close()">
</
FORM>
It's from an old code example used to confirm a delete in a database.


edit:removed superfluous tick

9
maywin
Re: I need suggestions for new website
  • 2009/11/8 5:02

  • maywin

  • Just popping in

  • Posts: 26

  • Since: 2009/6/9 1


Thank you, I did everything you said but now when I click on "submit news" I got a blank page. On debug mode it gave this error;

Parse error: syntax error, unexpected T_STRING in /home/index.html/modules/news/include/storyform.inc.php on line 193

So I checked this code;
$submit_btn->setExtra('accesskey="s"'  onClick="myConfirm()" );


and changed it this way;
$submit_btn->setExtra('accesskey="s" onClick="myConfirm()"');


The error message went away. I don't know anything about the codes, I just guessed, maybe it's wrong, or maybe it's right, all I know is there is no error anymore but also there is no extra box to check or no place for me to place the disclaimer or terms or conditions, whatever we are gonna end up putting there...

Any suggestions?

10
ghia
Re: I need suggestions for new website
  • 2009/11/8 9:25

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Sorry, my mistake. Your correction is OK.
Check if you can see the modification in your HTML source (search for submit).
Try with clearing the cache of your browser and see if there are any Javascript errors in the error console.

Login

Who's Online

150 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits