Hello,
Today you will learn how to be able to use the reCaptcha plugin when you have an SSL certificate (your URL starts with https://). If you have just installed the SSL Certificate, you can notice that several features of your site will stop working due to them being non-secured (connecting to non https websites). Follow this article’s instructions only if your site has SSL.
1. Open ./plugins/recaptcha/recaptcha.php
2. Find
function cbRecaptcha(){ global $publickey, $privatekey, $error; return recaptcha_get_html($publickey, $error);}
and replace it with
function cbRecaptcha(){ global $publickey, $privatekey, $error; return recaptcha_get_html($publickey, $error, true);}
3. Save & Upload.
What we just did was to send the recaptcha_gen_html function a third parameter that specifies whether or not we are using SSL. And well, that’s it. You can go ahead and test it now and if for any reason you are having trouble, please do not hesitate to contact me by leaving a comment down.
Best Regards,
Richi