bbAntiSpam: Discuss how to stop web spam

The forum is retired.

bbAntiSpam Forum Index - Advanced Textual Confirmation - Question about the questions :D

Author Message
Artarious
Guest





Posted: Thu Oct 23, 2008 4:33 am    Post subject: Question about the questions :D  

No pun intended.


Any way the problem I am having is when I add new questions and answers into the bbas_config.php file the page goes white. If I reupload the file from the original zip file it works again.

$questions = array(
'Are you human?' => array ('yes', 'ja', 'oui'),
'Say "AppleFun"' => array ('AppleFun', 'AppleFun', 'AppleFun')
'Say "George Bush"' => array ('George Bush', 'George Bush', 'George Bush')

That is what I am working with. I tried it with no spaces and with dashes etc but it didn't work.

Is there a limit to how many questions I can play with?

Thanks for your help
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Fri Oct 24, 2008 4:03 am    Post subject:  

Hello,

there is no limit for the number of questions. The only important thing is to follow the PHP syntax. Try the following:

Code:

$questions = array(
'Are you human?' => array ('yes', 'ja', 'oui'),
'Say "AppleFun"' => array ('AppleFun', 'AppleFun', 'AppleFun'),
'Say "George Bush"' => array ('George Bush', 'George Bush', 'George Bush')
);

_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!
Artarious
Guest





Posted: Fri Oct 24, 2008 4:59 am    Post subject:  

Same damn thing happened when I tried to add a new line to your group you posted.

When I just used yours that you just posted it worked fine.......

Any ideas?
admin
Site Admin


Joined: 18 Apr 2006
Posts: 805
Location: Saint-Petersburg, Russia

Posted: Sat Oct 25, 2008 9:37 am    Post subject:  

Note the difference between our versions:

* I use the comma (",") to separate question-answer pairs
* The whole question array is finished with ");"
_________________
Oleg Parashchenko, bbAntiSpam
Do you love our tools? Please sponsor further development!

Ok.