21280 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 662 Views |
-
UserPage Module and Spam Protection

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';
SpamProtectorManager::set_spam_protector("RecaptchaProtector");Thanks for any assistance.
-
Re: UserPage Module and Spam Protection

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.
-
Re: UserPage Module and Spam Protection

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.
-
Re: UserPage Module and Spam Protection

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
| 662 Views | ||
|
Page:
1
|
Go to Top |


