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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

SpamProtectorManager and Comments on SS3


Go to End


6 Posts   1317 Views

Avatar
Pix

Community Member, 158 Posts

14 March 2013 at 1:53pm

Edited: 14/03/2013 1:56pm

Do I need to update the page comment form myself? I do not see my captcha.

In _config.php I have:

RecaptchaField::$public_api_key = 'xxxxxxxxxxxxx';
RecaptchaField::$private_api_key = 'xxxxxxxxxxxxx';
SpamProtectorManager::set_spam_protector('RecaptchaProtector');

I have modules installed: comments, SpamProtectionModule, and recaptcha

No captcha showing on page comments. Do I need to add the captcha myself, extend page comments or something and update the form like so;

$protector = SpamProtectorManager::update_form($form);

?

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

16 March 2013 at 9:53pm

Avatar
Pix

Community Member, 158 Posts

19 March 2013 at 5:24am

Oh...totally missed that. Thanks! Will to the rescue again, much appreciated :0)

Avatar
TC81

Community Member, 11 Posts

28 March 2013 at 7:28am

Sorry for the dumb question - but how does one apply that extension?

Avatar
rohitbanerjee

Community Member, 7 Posts

8 January 2014 at 2:15am

In case if anyone couldn't figure out how or what to add as the extension, add the code snippet below in mysite/_config.php, assuming that SpamProtectorManager and RecaptchaField configuration is already in place.

Object::add_extension('CommentingController', 'CommentSpamProtection');

with help from Pyromanik

Cheers.