Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Mollum Problems

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 769 Views
  • zenmonkey
    Community Member
    528 Posts

    Mollum Problems Link to this post

    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?

  • Willr
    Forum Moderator
    5508 Posts

    Re: Mollum Problems Link to this post

    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.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.