Here's a patch that makes Mollom aware of the guestbook module, and enables Mollom for guestbook submission form.
Patch the mollom module using the mollom-5.x-1.4_guestbook-5.x-1.0.patch patchfile.

Optionally you can also patch the guestbook module to make the submit button appear below the captcha using the file guestbook-5.x-1.0.patch

Stefaan Ponnet


sun’s picture

Updated patch for Guestbook 2.x. Committed to Guestbook 5.x-2.x and 6.x-1.x.

bflora’s picture

Yo Sponnet, have you made any improvements on that sweet java applet image uploader you had back in May? if so, where can I get them?

Benjamin Schrauwen’s picture

Status: Needs review » Needs work

The patch is somewhat incomplete as it only performs captcha checking and no text analysis. For this, an extra function needs to be added that transforms the form fields into mollom-parameters.

kalikoder’s picture

For those of you wanting to Patch the Mollom Module for your guestbook from a Windows machine, I have written a step by step instruction on how to do so:

Good Luck!

Dave Reid’s picture

Title: Mollom + Guestbook patch ( 5.x ) » Integrate with Guestbook
Version: 5.x-1.4 » 6.x-1.x-dev
Category: task » feature

This will also need to be updated to 6.x-1.x, since 5.x has been closed to feature requests.

Josiv’s picture

431 bytes

I made patch for Molllom version 2009/06/18 10:04:46
With guestbook module version v 2009/03/10 23:14:47 (dev 6.1) patch for guestbook is no longer needed.

Dave Reid’s picture

Status: Needs work » Postponed
r_honey’s picture

Hi Dave & sun,

looks like it would take some time for Mollom module to be updated for general purpose form integration in Drupal. In the meantime, can you provide a patch for integrating Mollom to current stable versions of Guestbook??

My request is for 6.x-1.1.

Dave Reid’s picture

Status: Postponed » Closed (duplicate)

It's not worth putting in a patch unless it works for all forms, so I'm officially marking this as a duplicate of #245682: Enable use of Mollom for any form, which we should have it fixed pretty soon. Keep posted in that issue.

lionheart8’s picture


How do you apply the patch provided by Josiv?

--- mollom.module.orig 2009-07-10 19:59:13.000000000 +0200
+++ mollom.module 2009-07-10 19:59:14.000000000 +0200
@@ -631,6 +631,13 @@
+ // guestbook
+ if (module_exists('guestbook')) {
+ $forms['guestbook_form_entry_form'] = array(
+ 'name' => 'guestbook entry form',
+ }

return $forms;


Copy & paste that piece of code at the bottom of or what part of mollom.module in the latest version of Drupal 6.14 Guestbook?
I urgently need this because some idiots keep posting viagra & other spam links, inspite of captcha. I want if possible to allow anonymous visitors to post, but it takes a few hours of relaxing permissions to have the idiots posting.

By the way, is this effective for those who have applied the patch against these vile creatures who try at every opportunity to spam the guestbook?

Thanks in advance

nikolajb’s picture

Same here. I'd love to have some temporary solution for the guestbook. It doesn't need to be fancy or anything, and I don't mind doing the patching or editing myself. Right now, I think the only alternative would be to take down the guestbook until Mollom integration arrives, and I know a few people who wouldn't be too happy about that :)

sun’s picture

Now duplicate of #717040: Mollom support