Recaptcha v2

Permalink Browser Info Environment
I had someone update the recaptcha code to use v2. I didn't want to publish a release on my own because it is not my original code and I do not have time to maintain the code; I just hope it works and wont need editing.

I have tested it with the default C5 form,, ProForms and Register User Pro and everything seems to work well, you can see it here for maybe about another month:http://www.localshtuff.com/

Please test and let me know if anything is broken. Michele Locati, feel free to publish this if you find it is up to par. Thanks!

1 Attachment

Type: Discussion
Status: In Progress
ericchaffey
View Replies:
mlocati replied on at Permalink Reply
mlocati
It seems a good work, well done!

Feel free to steal the code of this add-on and use it at your wish... Me too I don't have any spare time ;)
Pixelfixer replied on at Permalink Reply
Pixelfixer
Can you tell me if there is a reason this solution would not work today?

I downloaded your attachment and installed it, first uninstalling the old one, and I don't see a difference. It still brings up the ver 1 of the reCaptcha.

Any ideas for me, other than getting my client to just let me bring him onto the ver. 8 platform of Concrete5. ;-)
furehead replied on at Permalink Reply
furehead
For me the v2-version attached in the original post above works with current 5.6.3.5 without problems.

Did you register and use the recaptcha v2 Keys athttps://www.google.com/recaptcha/... ?
Did you set the new credentials in the recaptcha app settings?
Pixelfixer replied on at Permalink Reply
Pixelfixer
Thanks for your response. Yes, it works fine. I eventually discovered that the add-on, Extended Form, that I was using had it's own embedded reCAPTCHA code using v1, so it was not using the updated reCAPTCHA addon. If fooled me for a bit. After replacing it with the core's form block it worked perfectly. The one thing left that is throwing me is how to change the text that displays above the captcha that says "Please type the letters and numbers shown in the image." which obviously no longer applies. I have found it embedded in a couple of different captcha.php files and changed it, but they must not be the right ones because it doesn't change anything in my page. If you have any clues for me there I'd love to hear them.
Pixelfixer replied on at Permalink Reply
Pixelfixer
UPDATE: I found the location for the text I needed to change. It was in the package folder for recaptcha at /packages/recaptcha/models/system/captcha/types/recaptcha/controller.php

I copied it to /blocks/recaptcha/models/system/captcha/types/recaptcha/controller.php and edited the text to my preference.

I should have easily guessed this earlier but sometimes I get tunnel vision following other suggestions instead of thinking for myself. :-)
APBCadmin replied on at Permalink Reply
APBCadmin
Thank you! I am using extended form as well, and this helped me resolve the expired v1 issue. v2 now working great.

concrete5 Environment Information

C5.6

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.90 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.