reCAPTCHA v2
ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Denik
reCAPTCHA v2 not showing on EE v2.9.2 freeform
Bug Report
jhuo
|
Posted: 30 August 2018 11:39 PM |
|
|
|
steps followed
0. Uninstalled and disabled recaptchav1.
1. Copied recaptchav2 to third_party folder.
2. Installed and Enabled recaptchav2 in control panel
3. Configured recaptchav2 : entered Site Key and secret key. Do not add script. Show response No.
4. In the include template for the form, added
{if freeform:captcha}
<div class=“captcha”>
Please enter the text/numbers you see to help prevent spam *:
{freeform:captcha}
</div>
{/if}
nothing is showing on the web page…Am I missing anything. Appreciate your help!
|
|
|
Denik
|
Posted: 31 August 2018 05:45 AM |
# 1
|
|
Developer
|
Hello,
If you select “Do not add script (manual variant)” in settings, then you need include script by manualy in HEAD of your document using global variable: {recaptcha:script:html} or {recaptcha:script} (for including into your scripts).
You can see all available global variables in the online documentation: http://eecoding.com/docs/recaptchav2#global-variables
Best regards!
|
|
|
jhuo
|
Posted: 31 August 2018 09:44 AM |
# 2
|
|
|
Thanks so much quick response. I am new to EE. Can you please tell me syntax to include the variable?
|
|
|
Denik
|
Posted: 31 August 2018 10:16 AM |
# 3
|
|
Developer
|
Example, for include variable into your template simple write “{recaptcha:script:html}”:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> {recaptcha:script:html} </head> <body> ... Your document...
Your document type for template must be set to “Web page”. http://prntscr.com/kp409i
|
|
|
jhuo
|
Posted: 31 August 2018 10:27 AM |
# 4
|
|
|
It worked great! Thanks so much!!
|
|
|
Denik
|
Posted: 31 August 2018 10:30 AM |
# 5
|
|
Developer
|
I am always glad to help you. Please do not hesitate to contact me if you have any problems
|
|
|