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: 4289
Location: Bristol, UK
Offline

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. If you don't fancy trying to edit the files yourself you can find them pre edited at http://carbonize.co.uk/AG/

For Advanced Guestbook 2.3.1 and 2.3.2 (instructions for 2.2 are after)
For 2.3.3 and 2.3.4 follow 2.3.2

Open templates/form.php

Find

replace that with

next find

Replace that with

Remember to change the question to make it unique to your site.

Save and close the file

Now open addentry.php UNLESS you are using the guestbook as a module in PHP Nuke in which case make these changes to index.php

For 2.3.1 find

replace with

For 2.3.2 find

replace with

Save and close the file.

Now open lib/add.class.php and find

replace that with

Next find

and replace that with

Now find

Replace with

Next find

and replace it with

Save and close the file.

Finally open lang/english.php (If your guestbook is not in English open the appropriate language file and change the messages into your own language.

Find

and replace it with

Save and close the file and you are done.

INSTRUCTIONS FOR 2.2

Open templates/form.php

Find

replace that with

next find

Replace that with

Remember to change the question to make it unique to your site.

Save and close the file

Now open addentry.php

find

replace with

Save and close the file.

Now open lib/add.class.php and find

replace that with

Next find

and replace that with

Now find

Replace with

Next find

and replace it with

Save and close the file.

Finally open lang/english.php (If your guestbook is not in English open the appropriate language file and change the messages into your own language.

Find

and replace it with

Save and close the file and you are done.

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: 4289
Location: Bristol, UK
Offline

there was a small cock up above. In add.class.php it should be
var $bottest = '';
and not
var bottest = '';

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Jozilla
Newbie

Joined: 04/06/2005 12:54:48
Messages: 1
Location: Belgium
Offline

I integrated the mod in my guestbook this morning, and it works fine. Thanks! Let's hope that it stops the spam.
However, I had to correct a slight mistake in the last change in lib/add.class.php, otherwise the answer would always be empty:

In the following line, the '$' in front of bottestanswer is wrong.


Correct line:
Carbonize
Master
[Avatar]

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

Two mistakes isn't bad for a mod I made up as I typed it in here lol. Thank you for pointing out my mistake.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fng
Newbie

Joined: 08/06/2005 22:51:12
Messages: 2
Offline

I have included the mod into one of my guestbooks, including the error fix but now i'm getting a
Guestbook - Error
You forgot to fill in the Name field. Please correct it and re-submit.

i''m running ad_guestbook 2.3.1 and double checked all the changes, of course i put in a name in the name field as well as the human verification check.

Any ideas?
Carbonize
Master
[Avatar]

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

You've either made an error in addentry.php or add.class.php. Email the two files to me at webmaster@carbonize.co.uk

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: 4289
Location: Bristol, UK
Offline

Whoops just fixed the error I had above. It should of been
in 2.3.x

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fng
Newbie

Joined: 08/06/2005 22:51:12
Messages: 2
Offline

working really good now! thanks for the great mod and the fast fix.
Lady Rando
Beginner

Joined: 03/03/2005 22:25:49
Messages: 14
Offline

fng wrote:I have included the mod into one of my guestbooks, including the error fix but now i'm getting a
Guestbook - Error
You forgot to fill in the Name field. Please correct it and re-submit.

i''m running ad_guestbook 2.3.1 and double checked all the changes, of course i put in a name in the name field as well as the human verification check.

Any ideas?


I'm getting this same error.
Carbonize
Master
[Avatar]

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

Check the updated version of the instructions at the top.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 03/03/2005 22:25:49
Messages: 14
Offline

Carbonize, even though my guestbook says it's 2.3.1 the coding in addentry.php looks like this:
$gb_post->name = (isset($HTTP_POST_VARS["name"])) ? $HTTP_POST_VARS["name"] : '';

instead of this:
$gb_post->name = (isset($_POST["gb_name"])) ? $_POST["gb_name"] : '';
Carbonize
Master
[Avatar]

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

Actually 2.3.1 should say


Looks like I will have to alter that bit so it has sections for 2.2, 2.3.1 and 2.3.2

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 03/03/2005 22:25:49
Messages: 14
Offline

Thanks, I'll go give that a try.
Lady Rando
Beginner

Joined: 03/03/2005 22:25:49
Messages: 14
Offline

This is what I did and I'm still getting the error:

$gb_post->bottest = (isset($HTTP_POST_VARS["bottest"])) ? $HTTP_POST_VARS["bottest"] : '';
$gb_post->name = (isset($HTTP_POST_VARS["gb_name"])) ? $HTTP_POST_VARS["gb_name"] : '';
Carbonize
Master
[Avatar]

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

got a link?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum