I'd be interested to know if it's possible to add support for Mollom on signup forms. I can use CAPTCHAS from the captcha module, but I'd rather use the hybrid approach that Mollom uses to avoid visitors seeing CAPTCHAS whenever possible.

Comments

ln282’s picture

FWIW, I've found that Mollom regularly categorizes valid posts as spam, skipping the captcha step and simply blocking the post. I've had several complaints about this on my own website, and had my own comments blocked by mollom on other sites for no reason I could see. I think using mollom for signups could be a real headache for event organizers. I've switched to the spam module for comments, and it's not perfect either, but at least I have the option of putting messages that are flagged as spam in a queue where I can save the false positives.

sun’s picture

Title: Mollom support for signups » Mollom support
Version: 6.x-1.0-rc6 » 6.x-2.x-dev
Component: Miscellaneous » Code
dpalmer’s picture

subscribing

BarisW’s picture

I'd love to have it - Mollom performs great on my website. Please leave the choice of disabling to the site maintainer, not to the module maintainer :)

BarisW’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new702 bytes

This works for Drupal 7. Please review ;)

anybody’s picture

Status: Needs review » Reviewed & tested by the community

Works great and as expected. May be added to the next release as implemented as expected (hook_mollom_form_list()).

anybody’s picture

Status: Reviewed & tested by the community » Needs work

EDIT: Does not work with Mollom 7.2.x.!

I think you should try something like this and implement hook_mollom_form_info().


/**
 * Implements hook_mollom_form_list().
 */
function signup_mollom_form_list() {
  $forms['signup_form'] = array(
    'title' => t('Signup form'),
    'entity' => 'node',
    'delete form' => 'signup_cancel_link_confirm_form',
    'delete form file' => array('name' => 'signup_cancel'));
  return $forms;
}

/**
 * Implements hook_mollom_form_info().
 */
function signup_mollom_form_info($form_id) {
  switch ($form_id) {
    case 'signup_form':
      $form_info = array(
        'mode' => MOLLOM_MODE_CAPTCHA,
        'elements' => array(
          'Name' => t('Name'),
          'Phone' => t('Phone'),
          'signup_anon_mail' => t('E-mail')),
        'mapping' => array(
          'post_id' => 'sid',
          'author_name' => 'Name',
          'author_mail' => 'signup_anon_mail',
          'author_phone' => 'Phone'));
      return $form_info;
  }
}
smithmilner’s picture

StatusFileSize
new1.64 KB

I've made some adjustments for D6. Patched against dev.