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

Anti Spam Releases (Mollom, reCaptcha)


Go to End


38 Posts   20089 Views

Avatar
neo67

Community Member, 6 Posts

23 December 2010 at 9:03am

Hi,

thats very funny. Some hours later at home, the error does not appears. :-)
I think, the first error has happened, while my cache was filled with peaces of mollom, which I installed first.

Because now, I'm on a different computer.
So, this is like German chancellor Merkel: Wait and all things goes right! ;-)

Greetz & thanks
Juergen

Avatar
Anonymous user

Community Member, 8 Posts

10 April 2011 at 11:38pm

I'm having a problem with Recaptcha - get a blank screen instead of a form as soon as I add the spam protection field into the form - it does show up as a specialy named field. If I delete the field and save page the form comes back again.

in mysite/_config.php I have :

// set up recapture to keep the idiots out
RecaptchaField::$public_api_key = "ABCetc";

RecaptchaField::$private_api_key = "ABCetc";

SpamProtectorManager::set_spam_protector('Recaptcha'); <--not sure if this is right but also tried ('RecaptchaSpamProtection') but it made no difference.

Installed the spamprotection and Chillu-Recaptcha modules and done the dev/build?flush=1

The docs in Span Protection (Install) sucked big time -s topped at the start of section 4. <sigh!>

Can anyone help as I seem to have a pesky bot filling submitting random data filled forms.

Cheers
Pete

Avatar
Xurk

Community Member, 50 Posts

12 April 2011 at 7:29pm

Well, the only difference I can see in the code you have in mysite/_config.php compared to mine (which is functioning properly), is the following line:

SpamProtectorManager::set_spam_protector('RecaptchaProtector');

Have you given that a try yet?

Avatar
Anonymous user

Community Member, 8 Posts

12 April 2011 at 11:01pm

Hi Xurk

Thanks for your response.

Yes, I did try using just the single quote first but it made no difference.

Really strange situation. Anything else I can provide that might give a clue.

Cheers
Pete

Avatar
bettsaj

Community Member, 46 Posts

17 July 2011 at 11:09pm

Edited: 18/07/2011 12:12am

Just installed Mollom. and can't appear to get it to work. This is what I have done so far:

Downloaded and installed the latest release of spamprotection module.
Downloaded and installed the latest release of mollom.
Launched Dreamweaver and downloaded the _config.php file, opened it up in Dreamweaver and added this code to the file:

Mollom::setPublicKey('public-key');
Mollom::setPrivateKey('my private key');
SpamProtectorManager::set_spam_protector('MollomSpamProtector');

after that the _config.php file looked like this:

<?php

LeftAndMain::require_javascript('userforms/javascript/FieldEditor.js');
LeftAndMain::require_css('userforms/css/FieldEditor.css');
Mollom::setPublicKey('my public-key');
Mollom::setPrivateKey('my private key');
SpamProtectorManager::set_spam_protector('MollomSpamProtector');

?>

Obviously I changed the keys to what I got off the Mollom website after registration. I then uploaded the newly configured _config.php file to the server.

Now when i log into the CMS and check the Mollom report i get the message "Mollom Key Status
You have not configured your key. Please add it to mysite/_config.php."

I know I have added it, I've double checked it, deleted it and then re-uploaded twice now and still no luck. any ideas what I may be doing wrong??

Avatar
AhYap

Community Member, 12 Posts

12 August 2011 at 3:40pm

try to make sure the code below is added into _config.php under the folder mysite

Mollom::setPublicKey('public-key');
Mollom::setPrivateKey('my private key');
SpamProtectorManager::set_spam_protector('MollomSpamProtector');

Go to Top