Re: Support Thread for Google reCAPTCHA
Probably the last questions before the upgrade are below.
Google states in its reCaptcha installation instructions "Paste this snippet at the end of the <form> where you want the reCAPTCHA widget to appear:
<div class="g-recaptcha" data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"></div>
The data-sitekey is the public key generated by Google for reCaptcha v.2.
Question1.
Do I need to paste the public key as stated by Google or the public key has already been integrated in the
/includes/functions/extra_functions/recaptchalib.php ?
Question 2.
If I need to paste the public key, where do I find the "form"? Is this the php file that defines "contact us" page?
Also, there are three pages on which reCaptcha will appear contact_us_default, create_account, and product_reviews. I assume that I will need to paste the public key in all of them. Please confirm.
Thank you very much.
Re: Support Thread for Google reCAPTCHA
The plugin's readme (hint, hint) explicitly states:
Code:
Step 2
Open the file /includes/functions/extra_functions/recaptchalib.php and insert the public and private keys you got in Step 1. They need to go on lines 9 and 10
Recording those values there enable the plugin to use your public/private keys in all pages.
Re: Support Thread for Google reCAPTCHA
Thank you. What you are stating is correct.
However, it does not adders the fact that Google provide separate 3 step instructions on how to integrate reCaptcha v.2 to a website. Step 1 of these instructions requires:
Paste this snippet at the end of the <form> where you want the reCAPTCHA widget to appear:
<div class="g-recaptcha" data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"></div>
Hence I had a question - do I need to do what Gooogle states or this step has already been taken care of by the addon I am installing?
Re: Support Thread for Google reCAPTCHA
Quote:
Originally Posted by
epilot
Thank you. What you are stating is correct.
However, it does not adders the fact that Google provide separate 3 step instructions on how to integrate reCaptcha v.2 to a website. Step 1 of these instructions requires:
Paste this snippet at the end of the <form> where you want the reCAPTCHA widget to appear:
<div class="g-recaptcha" data-sitekey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"></div>
Hence I had a question - do I need to do what Gooogle states or this step has already been taken care of by the addon I am installing?
It's already handled by the plugin.
Re: Support Thread for Google reCAPTCHA
Thank you. I transferred the files on the server. I experienced two problems.
Problem 1.
I have two captchas below my email form. One is the usual one with white background. The second one has a black background. I suspect that this is a result of manually inserting, as suggested in the read me file, the line
<?php echo recaptcha_get_html(); ?>
Or there may be another reason. At any rate, I would like to keep only one (white) captcha.
Problem2.
It has been several years since the email form was set up. I do not remember where I inserted the email address to which the email form sends the email from the website. Flowing my upload on the server, I lost the email form settings and I could not receive any emails form the website. Where is the file that sets up the email address for the email form on contact us page?
Thank you.
Re: Support Thread for Google reCAPTCHA
You're most likely not receiving emails due to that double-capcha. Please post the section (including about 10 lines above and about 10 lines below) of your template modification around the line you inserted ... using the "CODE" tag (the big # in the posting menu-bar) to surround that code.
Re: Support Thread for Google reCAPTCHA
Here it is the code for the file tpl_contact_us_default.php
Code:
<label class="inputLabel" for="contactname"><?php echo ENTRY_NAME; ?></label>
<?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />
<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>
<?php echo zen_draw_input_field('email', ($email_address), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?>
<br class="clearBoth" />
<label for="enquiry"><?php echo ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
<?php echo zen_draw_textarea_field('enquiry', '30', '7', $enquiry, 'id="enquiry"'); ?>
<?php echo recaptcha_get_html(); ?>
<?php echo recaptcha_get_html($publickey, $resp->error,$request_type == 'SSL'); ?>
<?php echo zen_draw_input_field('should_be_empty', '', ' size="40" id="CUAS" style="visibility:hidden; display:none;" autocomplete="off"'); ?>
</fieldset>
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
<?php
}
?>
</form>
</div>
Re: Support Thread for Google reCAPTCHA
Still need assistance with this issue.
Re: Support Thread for Google reCAPTCHA
Remove the line
<?php echo recaptcha_get_html(); ?>
Re: Support Thread for Google reCAPTCHA
Thank you.
I removed the line as you suggested. One (light) captcha has disappeared the second one (dark) remained. I still have two problems.
Problem 1.
The remaining captcha is dark and square.
Problem 2.
The email form still does not send emails.
Need help to fix this as time is running out to switch to captcha v2.