Difference between revisions of "Google reCAPTCHA"
(Created page with 'The following information is taken in part from [http://code.google.com/apis/recaptcha/docs/customization.html here] ===Customizing the Look and Feel of reCAPTCHA=== ====Theme=…') |
m (moved Captcha:reCAPTCHA to Google reCAPTCHA) |
(No difference)
|
Revision as of 15:26, 10 October 2011
The following information is taken in part from here
Customizing the Look and Feel of reCAPTCHA
Theme
To make the reCAPTCHA widget display a different theme, you first need to add the following code in your main HTML page anywhere before the <form> element where reCAPTCHA appears. WHMCS would recommend placing this in the header.tpl file of your template just before the </head> tag.
{if $capatacha && $capatacha eq "recaptcha"}{literal}<script type="text/javascript"> var RecaptchaOptions = { theme : 'theme_name' }; </script>{/literal}{/if}
The 'theme_name' can be one of four pre-defined options
If you do not wish to use any of the default themes, you can create your own to match your site design. You can see how to do this @ Custom Theme. To use a custom theme, the theme variable must be set to 'custom'.
Language
By default, the language of the reCAPTCHA is English, however this can be customised to English (en), Dutch (nl), French (fr), German (de), Portuguese (pt), Russian (ru), Spanish (es) or Turkish (tr). To change the language, you need to set the lang var in the script configuration. To allow for multi-site configurations, you can use a language variable to define this.
{if $capatacha && $capatacha eq "recaptcha"}{literal}<script type="text/javascript"> var RecaptchaOptions = { theme : 'theme_name', lang: '{/literal}{$LANG.recaptchalang}{literal}' }; </script>{/literal}{/if}
Then in your language.php file you would have the following line to define your language for the reCAPTCHA:
$_LANG["recaptchalang"] = "nl";
If your language is not one supported by Google, you are able to create your own translations. More information on this at i18n