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've moved the forum!

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.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

setting a recaptcha theme for use in Blog


Go to End


3 Posts   2371 Views

Avatar
DsX

Community Member, 178 Posts

26 January 2010 at 9:19am

Edited: 26/01/2010 10:33am

OK, I have recaptch working in my new blog (very easy to setup, nice). Anyway I want to change the look of the recaptcha. I read the api info on thier site, and the docs here http://doc.silverstripe.org/doku.php?id=modules:recaptcha
The reference to: $recaptchaField->jsOptions = array('theme' => 'clean'); // optional
looks promising, but there isn't any real followup info/deatils.
Can this method be used with the blog/forum intergration?
Where are the 'theme' settings set?, I couldn't find any templates for recaptcha.. and I am unsure what 'clean' refers to.
also how would this be added to mysite/_config.php?

UPDATE OK, after digging deeper I now see a reference to: Note: Only available if {@link $useJavascript} is turned on.
in the RecaptchaField.php file..

How can I set this? Sorry.. I am pretty new to some of this.. any help would be appreciated.

thanks

Avatar
JonoM

Community Member, 130 Posts

12 November 2010 at 6:40pm

A little late but in case this helps someone else...

In your site _config.php file add a line such as

RecaptchaField::$js_options = array('theme' => 'white');

View the different themes available here: http://code.google.com/apis/recaptcha/docs/customization.html

Avatar
greenpea

Community Member, 19 Posts

25 April 2012 at 5:48pm

Works wonders, thanks