Hi West, just go to /usercontrols/CultivContactForm.ascx and add Theme="..." to the recaptcha control. Possible values are: red, white, blackglass and clean,
I am trying to get a custom theme working. It works, but I get an error (see below). It seems I need your help again. I can not figure out how to fix this myself.
<div><ahref="javascript:Recaptcha.reload()">Get another CAPTCHA</a></div> <divclass="recaptcha_only_if_image"><ahref="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a></div> <divclass="recaptcha_only_if_audio"><ahref="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a></div>
Customizing the Look of reCAPTCHA
Hi there,
By default reCaptcha displays a Red Theme. There are 4 different styles for reCaptcha. Can somebody explain how to change the style / make own style?
Like here: http://www.google.com/recaptcha/demo/custom
It’s described here: http://code.google.com/apis/recaptcha/docs/customization.html
Thanks!
Hi West, just go to /usercontrols/CultivContactForm.ascx and add Theme="..." to the recaptcha control. Possible values are: red, white, blackglass and clean,
By the way, to set a custom them, add Theme="custom" into the control and at the bottom of the ascx file add:
<script type="text/javascript"> var RecaptchaOptions = { theme : 'custom', custom_theme_widget: 'recaptcha_widget' }; </script> <div id="recaptcha_widget" style="display:none"> <div id="recaptcha_image"><!-- --></div> <div class="recaptcha_only_if_incorrect_sol" style="color:red">Incorrect please try again</div> <span class="recaptcha_only_if_image">Enter the words above:</span> <span class="recaptcha_only_if_audio">Enter the numbers you hear:</span> <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /> <div><a href="javascript:Recaptcha.reload()">Get another CAPTCHA</a></div> <div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">Get an audio CAPTCHA</a></div> <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a></div> <div><a href="javascript:Recaptcha.showhelp()">Help</a> </div> <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=your_public_key"><!-- -- ></script> <noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k=your_public_key" height="300" width="500" frameborder="0"></iframe><br /> <textarea name="recaptcha_challenge_field" rows="3" cols="40"> </textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript>Don't forget to put in your public key in both places.
Thank you Sebastiaan! It works!
This line in /usercontrols/CultivContactForm.ascx file needs to be modified to have a different Theme:
Hi Sebastiaan,
I am trying to get a custom theme working. It works, but I get an error (see below). It seems I need your help again. I can not figure out how to fix this myself.
Thanks!
Firefox:
a("recaptcha_response_field") is nullhttp://www.google.com/recaptcha/api/js/recaptcha.js
Line 19
IE:
Hi West!
Try to move div id="recaptcha_widget" closing tag after </noscript>. So "recaptcha_response_field" gets wrapped in "recaptcha_widget" div.
It works for me.
Like this:
Excellent suggestion Vacheslav, thanks for helping out! :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.