Lost me with your other messages, but getting back to your first request.... This is what worked for my testing...
for includes\modules\pages\contact_us\header_php.php
add this just below the $error = false;
Code:
require_once('includes/templates/custom/templates/recaptchalib.php');
$privatekey = "PRIVATE-KEY-GOES-HERE";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if ($_POST['submitted'] == 'yes' && !$resp->is_valid) {
$error = true;
}
then go down to this line... and add the red section.
Code:
if ($zc_validate_email and !empty($enquiry) and !empty($name) and $resp->is_valid) {
now for includes\templates\classic\templates\tpl_contact_us_default.php
bottom of the page above the submit button code you see a </fieldset> just above it paste this code..
Code:
<?php
if ($error == true) {
echo '<span style="color:red;font-style:bold;">*Please re-try entering the 2 word reCAPTCHA:</span>';
}
//require_once('recaptcha/recaptchalib.php');
$publickey = "PUBLIC-KEY-GOES-HERE";
echo recaptcha_get_html($publickey);
?>
Of course replace the KEY-GOES-HERE with your key.
This work for my tests, if captcha fails, your back to the contact us page. If all is right your on to the success page.
Bookmarks