Hello.
Comments Module works perfect. Blog Module works perfect. Userforms works perfect.
Mathspamprotection works out of the box with the Userforms.
How do i add it to Page and Blog Comments?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Hello.
Comments Module works perfect. Blog Module works perfect. Userforms works perfect.
Mathspamprotection works out of the box with the Userforms.
How do i add it to Page and Blog Comments?
To enable spamprotection on the Comments module, you have to
CommentingController::add_extension('CommentSpamProtection');
I guess that would work for the blog as well? Haven't checked...
Your Solution works perfect! Thanks a Lot!
For others:
To activate MathSpamProtection add a file named spamprotection.yml to your mysite/_config/ directory with the following content:
---
name: spamprotection
---
FormSpamProtectionExtension:
default_spam_protector: MathSpamProtector
aaand dev/build...