- Posts: 8
COMMUNITY FORUM
NoCaptcha instead of ReCaptcha
- Marinel Cuculj
- Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago #141199
by Marinel Cuculj
NoCaptcha instead of ReCaptcha was created by Marinel Cuculj
Hi,
How can I change ReCaptcha with new Google protection system NoCaptcha (the one that says "I am not a robot", and works great od touch devices great)?
I tried to add needed google script, inserted the needed div with a secret key in user registration form instead of oldone, and the NoCaptcha is displayed correctly but when I try it it does not work as the form still expects the string from old ReCaptcha. How can I fix this? Where is the code that checks the captcha and wich code should I use for the new NoCaptcha sistem?
The ReCaptcha is fine but every day more and mora spammers goes through.
How can I change ReCaptcha with new Google protection system NoCaptcha (the one that says "I am not a robot", and works great od touch devices great)?
I tried to add needed google script, inserted the needed div with a secret key in user registration form instead of oldone, and the NoCaptcha is displayed correctly but when I try it it does not work as the form still expects the string from old ReCaptcha. How can I fix this? Where is the code that checks the captcha and wich code should I use for the new NoCaptcha sistem?
The ReCaptcha is fine but every day more and mora spammers goes through.
Please Log in or Create an account to join the conversation.
- Marinel Cuculj
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
9 years 8 months ago #141211
by Marinel Cuculj
Replied by Marinel Cuculj on topic NoCaptcha instead of ReCaptcha
I think that one should do this:
1. Make an override of the file /components/com_k2/templates/register.php (copy this file to /yourtemplate/html/com_k2/register.php ) and do the following:
<div class="g-recaptcha" data-sitekey="your recaptcha site key"></div>
instead of the code that is around the line 183:
<?php if($this->K2Params->get('recaptchaOnRegistration') && $this->K2Params->get('recaptcha_public_key')): ?>
<label class="formRecaptcha"><?php echo JText::_('K2_ENTER_THE_TWO_WORDS_YOU_SEE_BELOW'); ?></label>
<div id="recaptcha"></div>
<?php endif; ?>
After this the "I am not a robot" button apears... but it is not functional as you need to make it check the response. And this is the part where I am lost...
I think that the answer lies insite the /system/user/k2/k2.php but I dont know what should I do next... can someone please advise? I am sure that a lot of people are having trouble with old ReCaptha sistem... even JoomlaWorks should consider to make a little update and implement this as a new feature.
Besite the help on spam user registration this would be a great help for comments as well :)
1. Make an override of the file /components/com_k2/templates/register.php (copy this file to /yourtemplate/html/com_k2/register.php ) and do the following:
<div class="g-recaptcha" data-sitekey="your recaptcha site key"></div>
instead of the code that is around the line 183:
<?php if($this->K2Params->get('recaptchaOnRegistration') && $this->K2Params->get('recaptcha_public_key')): ?>
<label class="formRecaptcha"><?php echo JText::_('K2_ENTER_THE_TWO_WORDS_YOU_SEE_BELOW'); ?></label>
<div id="recaptcha"></div>
<?php endif; ?>
After this the "I am not a robot" button apears... but it is not functional as you need to make it check the response. And this is the part where I am lost...
I think that the answer lies insite the /system/user/k2/k2.php but I dont know what should I do next... can someone please advise? I am sure that a lot of people are having trouble with old ReCaptha sistem... even JoomlaWorks should consider to make a little update and implement this as a new feature.
Besite the help on spam user registration this would be a great help for comments as well :)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago #141273
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic NoCaptcha instead of ReCaptcha
Hello the noCaptcha will be available for the 3.0 version.
The current version does not support noCaptcha.
The current version does not support noCaptcha.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.