1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Blog Comment Protection using Recaptcha
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 913 Views |
-
Blog Comment Protection using Recaptcha

18 July 2010 at 10:12pm Last edited: 18 July 2010 10:13pm
How can I get recaptcha to protect the blog module comments?
I have installed the spamprotection & recaptcha modules, and I have successfully got them running on some customised forms (a contact us form).
http://www.silverstripe.org/all-other-modules/show/267893#post267893I cannot however, see how to get the recaptcha to appear on the blog module comments.
I have had to add MathSpamProtection in the meantime, but I would prefer the recaptchaHere's the /mysite/_config I am using :
SpamProtectorManager::set_spam_protector("RecaptchaProtector");
RecaptchaField::$public_api_key = 'code';
RecaptchaField::$private_api_key = 'code';// field creation (Should this even be here?)
$recaptchaField = new RecaptchaField('MyCaptcha');
$recaptchaField->jsOptions = array('theme' => 'clean'); // optionalPageComment::enableModeration();
MathSpamProtection::setEnabled();any suggestions?
| 913 Views | ||
|
Page:
1
|
Go to Top |

