22972 Posts in 11596 Topics by 2824 members
|Go to End|
26 March 2010 at 1:37pm
I am using the UserPage Module and was wondering how to get the Spam protection to work? Do I put this into the UserPage _config.php?
RecaptchaField::$public_api_key = 'XXXXXX';
RecaptchaField::$private_api_key = 'XXXXXX';
Thanks for any assistance.
27 March 2010 at 4:08pm
No you put that in your own mysite _config file. You should never edit a module (if you can avoid it).
Once you have added that then in the CMS form builder you should see a 'Spam Protector Field' option you can add to the form.
30 March 2010 at 2:00am
I think you are referring to User Form Module. User Page is the module for user login information and registration.
30 March 2010 at 10:52am
Ah sorry, I'm so used to people referring to UserForms in so many different ways.. Looking at the code (http://sunny.svnrepository.com/svn/sunny-side-up-general/userpage/code/RegisterAndEditDetailsPage.php) I can't see any hooks for it. You could either directly edit the module or send me email to the module author asking for spam protection support.
I have added documentation on how module authors can adapt their forms to include the required hooks on http://doc.silverstripe.org/doku.php?id=modules:spamprotection#making_your_module_spam_protection_enabled
30 March 2010 at 11:05am
Thanks for the response.
|Go to Top|