ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Hi, I wonder if you can help.. bit of a newb, just running my own store, i have installed plugins before and they have worked, i have tried to install recaptcha, followed instructions, as per read me for 1.51, installed the auto loader, observer, and modded the code in the templates file (sheffield blue)
as soon as i load the recaptchalib in extra functions the whole of my site goes down..
I am sure this is a dull mistake by me.. any suggestions,
Report on the error(s), if any documented, reported in your cache folder for 1.5.0 or logs folder for 1.5.1. That will help identify how to solve the issue. Btw, with that template you may need to do some additional work to have the captcha show at all locations the contact_us form is used.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Hi axispara
One possibility is the Google reCAPTCHA keys. Did you enter them correctly into that file? It should look something like:
replace the bits between the "" with your our own keys that you gotCode:$publickey = "TheRandomPublicKeyYouGotFromGoogleoS-B4dKonyqZjAbR76"; $privatekey = "TheRandomPrivateKey6Ld3itMSAAAAAPnf-B4dKo";
Regards
David
Hi David, many thanks, the code worked, and it works perfectly now, However i am not sure, but the code in the recaptchalib.php file supplied has the $publickey= after the key, rather than at the beginning, as below, not sure if it made the difference.
$publickey = "TheRandomPublicKeyYouGotFromGoogleoS-B4dKonyqZjAbR76";
$privatekey = "TheRandomPrivateKey6Ld3itMSAAAAAPnf-B4dKo";
Hi - it doesn't matter which order the $publickey and $privatekey are declared in the file.
Regards
I really dislike how it looks, so I found this to center it:
#recaptcha_area {display:table;margin: auto;}
which I put in "stylesheet.css"
And instead of putting this:
<?php echo recaptcha_get_html($publickey, $resp->error, $request_type == 'SSL'); ?>
I found and put this:
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'clean'
};
</script>
<?php echo recaptcha_get_html($publickey, $resp->error, $request_type == 'SSL'); ?>
Is there a better or preferred way of changing the theme and centering it?
Thanks
PS, if there is not anything needed to change this to 1.5.3, why not update the version compatible listing?
Zen Cart 1.5.3, Database Patch Level: 1.5.3
Server OS: Linux 2.6.32, Database: MySQL 5.5.41
HTTP Server: Apache, PHP Version: 5.4.37
Hi stiggybaby
You look to have it well sorted out. Changing the theme colour is done exactly as you have done it (I think I mentioned it before somewhere in this thread). Centring it should be OK with just the #recaptcha_area {margin: auto;}.
I will update the version compatibility once I have tested it. I need to set up a vanilla 1.5.3 to do that, and just haven't had the time yet. Your comment has moved it up my priority list :)
Regards
David