Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Mollum Problems


Reply


2 Posts   809 Views

Avatar
zenmonkey

Community Member, 532 Posts

18 December 2009 at 11:18am

I'm having trouble with the mollum module, I've switched over from the recaptcha, when I submit a form with content like "Super Awesome Viagra" it still passes. The report shows its configured correctly. Here is my Form Code

function UserProductReviewForm() {
// Create fields
   $fields = new FieldSet(
      new TextField('Name','Name:'),
      new EmailField('Email','E-Mail Address:'),
      new TextField('Location','Location:'),
      new OptionsetField('Rating','Rating',array(
         '1' => '1',
         '2' => '2',
         '3' => '3',
         '4' => '4',
         '5' => '5',
         )
      ),
      new TextField('Title','Review Title:'),
      new TextareaField('Review'),
      new HiddenField('ProductID', '', $this->ID),
      new HiddenField('ProductName','',$this->Title)
);
// Create actions
$actions = new FieldSet(
new FormAction('doReview', 'Submit')
);

   
   $form = new Form($this, 'UserProductReviewForm', $fields, $actions);
   
   $protector = SpamProtectorManager::update_form($form);
   
   
   if($protector) $protector->setFieldMapping('Name', 'Email', 'Title', 'Review');
   
   return $form;
   
}

Any ideas?

Avatar
Willr

Forum Moderator, 5513 Posts

18 December 2009 at 12:05pm

I'm not sure about Mollom, could be something in the library but one thing to note is it takes alot more then just the content of the post into account, it takes into User Agents, IPs etc etc to generate a score. One thing you could try is digging into the MollomServer::checkCaptcha() function to see what score molloms returning.