Hello,

if installed the guestbook module for Drupal 5.1, works great. Then installed the captcha module, and that worked to. Now is there a way that the captcha module can protect the guestbook too? I find in the forum a solution for 4.7 (insert a line guestbook-entry in captcha.module) but this solution dont work in 5.x.
I am not a programmer, so i have a bit problems to find the solution for myself. May anyone can help? I guess the captcha should have the guestbook protection should be in captcha by default :)

Greetings Pala

Comments

derSonnenschuh’s picture

add the line:

'guestbook_form_entry_form' => t('Write a guestbook entry'),

Sorry for my short answer. My english is bad.

Palatinum’s picture

thx (danke) for the answer, but I try that (solution vor Drupal 4.7) but it do not work here in Drupal 5.1
And no problem, my english is bad as well :)

derSonnenschuh’s picture

For Drupal 4.7.x (and the modules Captcha and Guestbook for 4.7.x) the line calls
'guestbook_form_entry' => t('Write a guestbook entry'),
It worked on my homepage.

For Drupal 5.1 (and the modules Captcha and Guestbook for Drupal 5) the line calls
'guestbook_form_entry_form' => t('Write a guestbook entry'),
It´s working very well on my homepage.

Palatinum’s picture

Yes, thats it, now it worked here too ;) (ich sollte wohl genauer die Posts durchlesen, tausen Dank).

Greets Pala

jorisx’s picture

Works good and really helped me out!! :-)
Thanx for the help!

Http://www.reloadmedia.com

huayen’s picture

I can not make it work for 5.1. Guestbook shows in captcha setting, but the captcha security check does not show on anonymous post page for the guestbook. Anyone can help me?

BradM’s picture

STEP 1:

For Drupal 5.1 (and the modules Captcha and Guestbook for Drupal 5) the line calls
'guestbook_form_entry_form' => t('Write a guestbook entry'),

(BTW you add this under function captcha_admin_settings, around line 41.)

STEP 2:
Once you modify captcha.module and upload it, you then have to go to the admin >> settings >> captcha module >> anonymous user. You will now see an entry for "Write a guestbook entry" with an empty check box next to it. Check the box, and voila! It now appears on the guestbook entry page.

J-B’s picture

This solution doesn't work anymore with the new modules... (Or I made a BIG mistake ;-) )

Stoik’s picture

Hi,

i add the Guestbook Captcha in my Drupal-DB.

Try this SQL String.

INSERT INTO `captcha_points` ( `form_id` , `module` , `type` )
VALUES (
'guestbook_form_entry_form', NULL , NULL
);

Working Fine on Captcha 3.x and Guestbook 5.x-1.0.

djafar’s picture

Great solution..

many thanks for u man! ^_^

gaobin’s picture

This is really a simple solution! It works for me. Thank you!

http://www.thinkerspace.com

daffy_dowden’s picture

I'm sorry but I don't understand what is required to get this working. I've installed the modules fine but it's this editing of the line I'm confused about. Could someone clarify this for me.

Where exactly do I put the line in the sites/all/modules/captcha/captcha.module file?

Because I tried putting: 'guestbook_form_entry_form' => t('Write a guestbook entry')
on line 41, in the captcha_admin_settings function and that broke everything. All I see now is the error: Parse error: syntax error, unexpected T_DOUBLE_ARROW on line 237

So I must be doing something dumb.
Thanks,
Daf

----------------------------------------------
Click a few links, get an iPod. Easy.
http://ipods.freepay.com/?r=41330571

krutipatel’s picture

just add the following line in captch install file or direct query to the database it working well
INSERT INTO `captcha_points` ( `form_id` , `module` , `type` )
VALUES (
'guestbook_form_entry_form', NULL , NULL
);
no need to modify any file just fire this query

yogendrarampuria’s picture

In D6 its really easy and doesn't need and query executtion, etc

Goto CAPTCHA admin and add "guestbook_form_entry_form" in the the text box at the bottom (under form_id) and choose your captch preference from the drop down against it and click "Save Configuration".

Thats it.

There is a littlke caveat thoug, while I was trying to do this, it didn't work in first go. Then I simple executed the guestbook url and tried adding again and bingo. worked!

el duderino’s picture

Thanks a million Yogi
Took me a while to figure this out