If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Adding a simple human verification test  XML
Forum Index » Advanced Guestbook Forum
Author Message
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

There is no need to write a mod to do that as there already is the option to password protect comments to posts. You could simply edit the comments form to show a question to which the password is the answer.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Ahroo
Beginner
[Avatar]

Joined: 25/01/2005 19:22:27
Messages: 8
Offline

Not having any idea as to what I am doing with php, I tried to change the comment.php by adding the following line, thinking it might direct the poster to the test:
$gb_com->bottest = (isset($HTTP_POST_VARS["bottest"])) ? $HTTP_POST_VARS["bottest"] : '';

It did not work! So, I'm afraid I have to ask for just a bit more hand-holding and more specific info for what I need to add/change to the comment.php file (and/or other files) to add the verifications there. Once again, I was flooded this morning with spam comments.

Thanks!
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

As I said you do not need to do anything to the comments as you can password protect them via the General Settings section of the admin.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Ahroo
Beginner
[Avatar]

Joined: 25/01/2005 19:22:27
Messages: 8
Offline

Sorry - I misunderstood. I made the change and it now requires a password, so hopefully that will keep all of this spam out. Thank you again for your help and patience!

Laura
johnny_r
Newbie

Joined: 26/06/2005 15:50:17
Messages: 4
Location: Stavanger
Offline

Carbonize wrote:Ok after numerous requests I have decided to write this mod to let you add a test to make sure the poster is human. It's not infallible and will not stop human posters from spamming.


Hi Carbonize,

Thank you. We are running guestbook 2.2 and have implemented both the admin and form ... solutions on the guestbook. So hopefully
we will see an end to all the spam generated by scripts....


Kind regards / Mvh
tony
Beginner

Joined: 05/07/2004 20:19:27
Messages: 8
Location: Just south of Paradise
Offline

I have just added the human verification by changing the code as shown, but I have hit a snag.

Whenever I try to input a new message into the guestbook it simply clears without accepting the comments.

There is no error the page just simply resets.

If I try to omit any information I get the usual error messages or if I try to omit the human verification word, it throws up the proper error message.

If I even put the wrong verification word in the page clears just the same

I am using version 2.3.1 and have double checked my inputs but can see no errors – although there obviously must be one somewhere.

Any assistance would be greatly appreciated.

Tony
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Do you have a link ?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
tony
Beginner

Joined: 05/07/2004 20:19:27
Messages: 8
Location: Just south of Paradise
Offline

Thanks for the quick response !!!


http://belljuniornetball.co.uk/guest/
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

The problem lies in your addentry.php file. It's to do with the simple anti spam mod.

I'm guessing you have


when it should be

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
tony
Beginner

Joined: 05/07/2004 20:19:27
Messages: 8
Location: Just south of Paradise
Offline

I have changed the line you quoted

using both the actual word 'WORD' and my verification word 'BELLJUNIOR'

e.g.
echo $gb_post->process($_POST["gb_actionWORD"]);

and

echo $gb_post->process($_POST["gb_actionBELLJUNIOR"]);

but i still get same results
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

it should be just BELL as thats what you have in your form.php.

On a different note you need to open config.inc.php and replace

with

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

lol almost thought you were a site for my old school when I saw the school name. Anyway on a different note your site's main page is seriously messed up on Firefox/Mozilla.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
tony
Beginner

Joined: 05/07/2004 20:19:27
Messages: 8
Location: Just south of Paradise
Offline

I changed both lines in my form.php to say BELLJUNIOR

but still no sucess

I have also changed my defualt URL
tony
Beginner

Joined: 05/07/2004 20:19:27
Messages: 8
Location: Just south of Paradise
Offline

I must thank you for all your assistance it is much appreciated!!
tony
Beginner

Joined: 05/07/2004 20:19:27
Messages: 8
Location: Just south of Paradise
Offline

Problem sorted with expert adivse from Carbonize

Many Thanks
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum