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.

Form Questions /

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

Member profiles, spam protection, mollom in SS 3.1.6


Go to End


2 Posts   1187 Views

Avatar
hp777

Community Member, 13 Posts

2 October 2014 at 1:16pm

Edited: 04/10/2014 5:34am

Getting blank page for the register page for member profiles module. (can't be logged in as any user to recreate)
Anyone know how to change this function to use new spam protection code
" $form->enableSpamProtection() "?

if(class_exists('SpamProtectorManager')) {
SpamProtectorManager::update_form($form);
}
$this->extend('updateRegisterForm', $form);
return $form;
}

Avatar
hp777

Community Member, 13 Posts

4 October 2014 at 7:28am

Edited: 04/10/2014 7:30am

I ended up just calling the SpamProtection without first checking if it exists. This is not proper but it is working

changed this
if(class_exists('SpamProtectorManager')) {
SpamProtectorManager::update_form($form);
}
$this->extend('updateRegisterForm', $form);
return $form;
}

To this

$form->enableSpamProtection();
return $form;
}