Not logged in. · Lost password · Register
Forum: Advanced Guestbook Modifications RSS
Add a simple human verification question (Important)
Page:  previous  1  2  3  4  5  6  next 
PaulMcCall (Guest) #46
No profile available.
Link to this post
Subject: Just tried adding mod, but coming up with errors
Hi, First I'd really like to thank you for creating such a cool & easy to use guestbook...even for  web/php newbies like me!
I attempted to add the antispam modificationusing a simple word... everything started out OK but now when I click on addentry.php I come up with some pretty scary (to me) error messages. Can you help me fix?
Here is my site & the problems
http://paulmccall.net/agb/addentry.php

Thanks so much, Paul

Repeating the obvious-Spam Sucks!
Avatar
carbonize (Administrator) #47
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
The error message is saying that it cannot find th eadd.class.php file that should be in the lib folder. Maybe you accidentally renamed it? Look in the lib folder to see if it is there but renamed. If not check that it's not been moved to a different folder somehow.
C a r b o n i z e
Paul (Guest) #48
No profile available.
Link to this post
Subject: finding add.class.php file
Quote by "carbonize":
The error message is saying that it cannot find th eadd.class.php file that should be in the lib folder. Maybe you accidentally renamed it? Look in the lib folder to see if it is there but renamed. If not check that it's not been moved to a different folder somehow.

Thanks for responding so quickly. I looked in the lib folder and found a file that's named add.class.php.up should I rename it add.class.php?
Thanks!
Paul (Guest) #49
No profile available.
Link to this post
Subject: It worked!
I took the initiative and tried it and guess what...it worked. Thanks so much for your help!
ocun (Guest) #50
No profile available.
Link to this post
our guestbook was getting spammed too, all fixed now thanks to you :-)
thanks
clinthart #51
Member since Nov 2005 · 4 posts · Location: Maryland
Group memberships: Members
Show profile · Link to this post
Can this be made case-sensitive?
http://www.project-quicksilver.com
Avatar
carbonize (Administrator) #52
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
Just replace
} elseif (strtolower($this->bottest) != strtolower($this->bottestanswer)) {

with
} elseif ($this->bottest != $this->bottestanswer) {
in add.class.php
C a r b o n i z e
clinthart #53
Member since Nov 2005 · 4 posts · Location: Maryland
Group memberships: Members
Show profile · Link to this post
Duh...

Thanks for the reply!  Keep up the awesome work!!!
http://www.project-quicksilver.com
velaskes (Guest) #54
No profile available.
Link to this post
carbonize u`re the Greatest  :)  10x
jordanmcclements (Guest) #55
No profile available.
Link to this post
Subject: AG 2.2 - anti spam (requiring user to type in a word)
A big thank you for this.  Seems to work really well.
sue (Guest) #56
No profile available.
Link to this post
Subject: help!
Like everyone else, I was about to scrap the guestbook, until I found this site. I added the simple anti-spam modification and then added this one. Now I get the following error:

Parse error: parse error, unexpected T_STRING in /home/sue/public_html/guestbook/lib/add.class.php on line 206


Line 206-211 are:

    if (!get_magic_quotes_gpc())
 Â    {
 Â     $this->bottest = addslashes($this->bottest);
 Â     $this->bottestanswer = addslashes($this->bottestanswer);
 Â    }
 if ($this->name == "") {

I just cut and pasted what you had. Any ideas?

Thanks!
Avatar
carbonize (Administrator) #57
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
The error could be on the line previous such as removing the ;

Anyway if you are using 2.3.4 you can goto www.carbonize.co.uk/AG and download the pre modded files.
C a r b o n i z e
vibex (Guest) #58
No profile available.
Link to this post
Subject: Thanks for the great security update!!
This little piece of code has saved me a lot of suffering; as, the spambot had swarmed into my guestbook and nailed it good.

Cheers,
vibex
sue (Guest) #59
No profile available.
Link to this post
Thank you! Sorry I missed that. All is now in order. Let's hope it keeps them out!
sue (Guest) #60
No profile available.
Link to this post
Your modification has saved my guestbook! Thank you!!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smilies: :lmao: ':)' :hug: :-)) :shrug: :-' :lol: x-( :-x :'( :-o :-{} :-! :-? :"> :-(( B-) ;-) #-( :-# O_o TiT :-zZ :-) ZzZ
Special characters:
Page:  previous  1  2  3  4  5  6  next 
Go to forum
Unclassified NewsBoard 1.6.3 © 2003-6 by Yves Goergen
Page created in 165.5 ms (83.4 ms) · 80 database queries in 19.9 ms
Current time: 2010-07-09, 03:34:41 (UTC +01:00)