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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Mollum Problems


Go to End


2 Posts   1115 Views

Avatar
zenmonkey

Community Member, 545 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, 5523 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.