I am getting a very large number of spam users successfully registering and logging via the registration form which is not available to mollom. Is the module that creates the registration form?

Comments

japerry’s picture

Priority: Major » Critical

The way ticket currently creates registrations upon quantity selection is problematic. We're seeing lots of registrations being created, with over 400k registrations made on a site before we switched it in the ticket_reservation branch.

COD Beta 10 will be using that branch, and hopefully somewhere around or just after drupalcon we can roll that feature into mainline ticket.

nicxvan’s picture

I was able to fix it with captcha and recaptcha. Both of them see the registration form better than mollom.

timwood’s picture

You can use the follow code (pulled from various examples online and referenced in the Mollom API) in your own custom module or patch/hack to the ticket module (I tested it in ticket/includes/ticket_registration.admin.inc) in order to make Mollom see the Ticket registration form. You still need to enable Mollom on the form at the Mollom admin screen. This will only make the CAPTCHA mode available, not the analysis mode. Replace YOUR_MODULE with the name of your module.

/**
* Implements hook_mollom_form_list().
* Make ticket registration form available to Mollom
*/
function YOUR_MODULE_mollom_form_list() {
  $forms['ticket_register_form'] = array(
    'title' => t('Ticket registration form'),
  );
  return $forms;
}
/**
* Implements hook_mollom_form_info().
* Enable CAPTCHA mode for ticket registration form
*/
function YOUR_MODULE_mollom_form_info() {
  $form_info = array(
    'mode' => MOLLOM_MODE_CAPTCHA,
  );
  return $form_info;
}

You may also need to force the submit button below Mollom on the form. I used this code to accomplish that:

/**
 * Implements hook_form_FORM_ID_alter().
 * Change submit button weight to force it to bottom
 */
function YOUR_MODULE_form_ticket_register_form_alter(&$form, &$form_state) {
  // Force Submit button to bottom of form.
  $form['submit']['#weight'] = 1000;
}
drumm’s picture

Status: Active » Closed (outdated)

Mollom is no longer available.