Author |
Message |
24/06/2005 07:34:33
|
Carbonize
Master
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 |
|
24/06/2005 14:52:29
|
Ahroo
Beginner
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!
|
|
24/06/2005 14:58:52
|
Carbonize
Master
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 |
|
24/06/2005 15:25:04
|
Ahroo
Beginner
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
|
|
26/06/2005 15:56:33
|
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 |
|
30/06/2005 12:50:34
|
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
|
|
30/06/2005 13:10:52
|
Carbonize
Master
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 |
|
30/06/2005 13:15:14
|
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/
|
|
30/06/2005 13:18:08
|
Carbonize
Master
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 |
|
30/06/2005 13:30:37
|
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
|
|
30/06/2005 13:40:19
|
Carbonize
Master
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 |
|
30/06/2005 13:44:42
|
Carbonize
Master
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 |
|
30/06/2005 14:01:50
|
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
|
|
30/06/2005 14:03:02
|
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!!
|
|
30/06/2005 21:27:36
|
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
|
|
|