- Posts: 1
COMMUNITY FORUM
Google Recaptcha version 2
- Nic
-
Topic Author
- Offline
- New Member
Less
More
9 years 3 months ago #150551
by Nic
Google Recaptcha version 2 was created by Nic
Hi
Congratulations for your work and support .
I installed google recaptcha v2 and updated the file with item.php
if(isset($_POST)){
$captcha=$_POST;
}
if(!$captcha){
$response->message = "Please check the the captcha form.";
echo $json->encode($response);
}
$resp=file_get_contents("www.google.com/recaptcha/api/siteverify? secret=MYSECRETCODE&response=".$captcha."&remoteip=".$_SERVER);
if($resp.success==false)
{
$response->message = JText::_('K2_THE_WORDS_YOU_TYPED_DID_NOT_MATCH_THE_ONES_DISPLAYED_PLEASE_TRY_AGAIN');
echo $json->encode($resp);
$mainframe->close();
}
I followed the instructions and it works, only problem is that the message insertion < span id = " formLog " > but is still displayed loading.gif
you have a solution??
thank you very much
Congratulations for your work and support .
I installed google recaptcha v2 and updated the file with item.php
if(isset($_POST)){
$captcha=$_POST;
}
if(!$captcha){
$response->message = "Please check the the captcha form.";
echo $json->encode($response);
}
$resp=file_get_contents("www.google.com/recaptcha/api/siteverify? secret=MYSECRETCODE&response=".$captcha."&remoteip=".$_SERVER);
if($resp.success==false)
{
$response->message = JText::_('K2_THE_WORDS_YOU_TYPED_DID_NOT_MATCH_THE_ONES_DISPLAYED_PLEASE_TRY_AGAIN');
echo $json->encode($resp);
$mainframe->close();
}
I followed the instructions and it works, only problem is that the message insertion < span id = " formLog " > but is still displayed loading.gif
you have a solution??
thank you very much
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 3 months ago #150560
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Google Recaptcha version 2
Hello Nic,
Are there any JS errors showing up in the console tab?
Are there any JS errors showing up in the console tab?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- jk15060
-
- Offline
- Junior Member
Less
More
- Posts: 23
9 years 2 months ago #151204
by jk15060
Replied by jk15060 on topic Google Recaptcha version 2
Have been trying to reply to Post #151079, but don't see where I can do that. I'm having the same issue with ReCaptcha giving message "The words you typed did not match the ones displayed. Please try again." The characters entered DO match what's being displayed. I'm referring to the Comments section of K2.
Not quite sure how to get ReCaptcha 2 working with K2 v 2.6.9.
Any help out there today would be greatly appreciated!
Thank you!
Not quite sure how to get ReCaptcha 2 working with K2 v 2.6.9.
Any help out there today would be greatly appreciated!
Thank you!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 months ago #151210
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Google Recaptcha version 2
Are you using Joomla!'s default captcha as well?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.