Jump to:

10979 Posts in 2722 Topics by 1815 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: 765 Views
  • zenmonkey
    Avatar
    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
    Avatar
    Forum Moderator
    5497 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.

    765 Views
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.