Jump to:

10850 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » setting a recaptcha theme for use in Blog

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1478 Views
  • DsX
    Avatar
    Community Member
    178 Posts

    setting a recaptcha theme for use in Blog Link to this post

    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

  • JonoM
    Avatar
    Community Member
    103 Posts

    Re: setting a recaptcha theme for use in Blog Link to this post

    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

  • greenpea
    Avatar
    Community Member
    19 Posts

    Re: setting a recaptcha theme for use in Blog Link to this post

    Works wonders, thanks

    1478 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.