Author |
Message |
30/05/2005 13:05:58
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
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 |
|
04/06/2005 07:26:55
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
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 |
|
04/06/2005 13:03:21
|
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:
|
|
04/06/2005 14:03:07
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
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 |
|
08/06/2005 22:58:00
|
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?
|
|
08/06/2005 23:01:22
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
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 |
|
09/06/2005 00:16:14
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
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 |
|
09/06/2005 00:31:32
|
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.
|
|
09/06/2005 01:46:18
|
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.
|
|
09/06/2005 01:49:51
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
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 |
|
09/06/2005 01:55:26
|
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"] : '';
|
|
09/06/2005 02:12:50
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
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 |
|
09/06/2005 02:15:09
|
Lady Rando
Beginner
Joined: 03/03/2005 22:25:49
Messages: 14
Offline
|
Thanks, I'll go give that a try.
|
|
09/06/2005 02:22:51
|
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"] : '';
|
|
09/06/2005 02:45:26
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
got a link?
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|