View Full Version : Anti-Spam Options - reCAPTCHA v2 Human Verification
(Note: This mod was renamed. The original name was "New reCAPTCHA Human Verification")
What is it?
----------------------------
This mod adds reCAPTCHA v2 (http://www.google.com/recaptcha) as an option in the Human Verification Manager.
Note: The original reCAPTCHA used default keys if you didn't enter your own, so you could leave the key fields blank. This version requires you to have your own keys for your domain. To create them, go to this page (www.google.com/recaptcha) (click on the "Get reCAPTCHA" button). It can take a short time after creating the keys before they will work, so if you get "ERROR: Invalid domain for site key", wait a while and try again.
vb4 version is here: https://vborg.vbsupport.ru/showthread.php?t=315960
Installation:
----------------------------
1) Upload the file in the "upload" folder to your server.
2) Import the product XML file from the Product Manager.
3) If you don't already have keys, go to this page (www.google.com/recaptcha) and create keys for your domain. (If you already have keys you can get them from that page as well).
4) Go to Settings > Human Verification Manager, select "New reCAPTCHA" for the Verification Library, and click Save.
5) Enter your keys on the options page, and select the light or dark widget as desired (apparently white and black are the only options at this time). You could select "Audio" to default to audio instead of image for the challenge, but the widget seems to have a bug in it at the moment so I recommend leaving it set to "image". Click Save when you're done selecting options.
6) You can check the configuration and do a test by clicking on "Click here to test connection" which appears under the description in the Human Verification Manager.
7) Do a test registration (or other action that requires hv) to test that your keys are entered correctly and everything is working.
8) If you are upgrading from version 0.9, you can remove the file includes/class_humanverify_newrecaptcha.php (the one without the third underscore) from your server.
History:
----------------------------
1.0 (Feb 22, 2015)
Cached template (required renaming the uploaded file from
class_humanverify_newrecaptcha.php to class_humanverify_new_recaptcha.php)
Removed default keys (which didn't work anyway)
Removed trademark symbols
Changed execution order of plugins from 5 to 4, to make sure this product
works with another HV add-on that has a bug.
If "New reCAPTCHA" is selected when this mod is uninstalled, the hv library
is switched to 'disabled'.
Added a test option to print out more information about verification failures
0.9 (Dec 11, 2014)
Initial Release
Installed and working.
Thanks.
Loller
12-20-2014, 09:35 PM
Excellent work. Thank you!
A.Chakery
12-23-2014, 01:36 PM
Great ! You really saved my time ... I wanted to code it myself and suddenly I noticed that its already done!
Again thank you :)
I've released version 1.0. There are no critical changes or fixes, so there is no need to rush to upgrade. Here is the change list:
- Cached template (required renaming the uploaded file from
class_humanverify_newrecaptcha.php to class_humanverify_new_recaptcha.php)
- Removed default keys (which didn't work anyway)
- Removed trademark symbols
- Changed execution order of plugins from 5 to 4, to make sure this product
works with another HV add-on that has a bug.
- If "New reCAPTCHA" is selected when this mod is uninstalled, the hv library
is switched to 'disabled'.
- Added a test option to print out more information about verification failures
Note that the uploaded file has been renamed (which was the best way to fix the template caching issue), so you can remove the old file after upgrading.
For those who couldn't get this to work, I've added a test in the admincp (link in the Human Verification Manager), so you could try that and hopefully it will help track down your issue (if you get an error, copy and paste the results and post them here).
Fethi.dz
02-23-2015, 10:38 PM
Great work. Thank you a lot :)
Baitona
03-12-2015, 04:44 PM
it looks to be a great addon, however it is not working for me,
I am using 3.8.8 after following all steps and provided the site's and secret keys..
it is giving me a message:
Access denied.
when i click :
Click here to test connection
Also when i try to register, i keep getting the same message
any suggestion what is wrong please?
it looks to be a great addon, however it is not working for me,
I am using 3.8.8 after following all steps and provided the site's and secret keys..
it is giving me a message:
Access denied.
when i click :
Click here to test connection
Also when i try to register, i keep getting the same message
any suggestion what is wrong please?
You know, I'm not even sure I tested the 'Click here to test connection' on vb3. I'll make sure.
It should say "Access Denied" if you don't have access to the settings, but then if you didn't you wouldn't be able to see the link either, so I guess that's not it.
Also when i try to register, i keep getting the same message
any suggestion what is wrong please?
You get "Access Denied" when you try to register? That I don't understand.
I tried the test link in vb3.8.8 and it works for me, but I did realize something I didn't think of: vb4 now requires curl and the fsockopen alternative has been removed. But that's not true in vb3, but my test requires it and will report an error if you don't have it. So the test link might tell you that you need curl when this mod would work without it.
But I don't think that's your problem. What version of php are you using?
davidg
03-12-2015, 10:36 PM
Same here "Acess Denied"
PHP version 5.4.34
Same here "Acess Denied"
PHP version 5.4.34
Where do you see that message, exactly? In the admincp, or where the recaptcha should appear?
davidg
03-13-2015, 02:44 PM
This message comes when someone try to register pressing Register
This message comes when someone try to register pressing Register
Sorry to ask again, but do you mean press "Register" like the button on the screen while the forum rules? Is it just a blank page with that message? What's the url when you see that?
Fethi.dz
03-14-2015, 02:25 PM
Hi,
I'm using vBulletin 3.8.8 with PHP 5.3 and am not getting any of the above errors.
Alfa1
10-27-2015, 09:00 PM
Its not showing up at the most important page: the login screen. What do I need to add to the template?
Its not showing up at the most important page: the login screen. What do I need to add to the template?
Sorry for the delay in replying. vbulletin doesn't have human verification for login by default. I have another mod that adds it for vb4, but I never did get around to making one for vb3. In the vb4 mod I had to disable the default login/password fields in the header because there wasn't anywhere to put the recaptcha widget. Also, it probably wouldn't be hard to add a few things to a template to get the recaptcha to show up, but unless you have a plugin to check the answer it won't help.
feldon23
12-16-2015, 02:06 PM
Works great for me on 3.8.7.
Nas.er
07-25-2016, 03:04 AM
This is waht i was looking for. Thanks
irxzirox
09-15-2016, 07:53 PM
I'm running vBulletin v3.8.9 Patch Level 1, and your mod doesn't show up under Human Verification Options at all. It's just the default settings there. Mod installated fine, no errors. Help?
WEBDosser
09-17-2016, 12:01 PM
I'm running vBulletin v3.8.9 Patch Level 1, and your mod doesn't show up under Human Verification Options at all. It's just the default settings there. Mod installated fine, no errors. Help?
does for me but it don't work in IE for some reason?
WEBDosser
09-17-2016, 03:12 PM
deleted
zxcji
11-26-2016, 03:40 PM
hello can i use it on vb 3.8.9 ?
asabiyim
07-18-2017, 04:12 PM
ReCaptcha v2 we want :( not working!
Express Plus
08-22-2017, 06:54 PM
[22-Aug-2017 19:51:34 UTC] PHP Fatal error: Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() in /home/xxx/public_html/vb/includes/class_humanverify_new_recaptcha.php on line 14
[22-Aug-2017 19:54:00 UTC] PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/xxx/public_html/vb/global.php(400) : eval()'d code on line 347
Tested on php 5.6 and 7.0
I'm using vBulletin 3.8.11
forumhack
09-21-2017, 05:36 PM
dont work 3.8.11
HTTP ERROR 500
yep now work
change code:
https://vborg.vbsupport.ru/showpost.php?p=2588315&postcount=233
Fynnon
10-20-2017, 07:08 AM
I'm running vBulletin v3.8.9 Patch Level 1, and your mod doesn't show up under Human Verification Options at all. It's just the default settings there. Mod installated fine, no errors. Help?
It is not in vB Setting - Human Verification Options. It's a bit confusing...but it is before that
Go to Admin Control Panel then click the arrow and expand vBulletin Options and look for Human Verification Manager
BirdOPrey5
12-04-2017, 02:16 PM
Running VB 3.8.11 and after making the change talked about in post 26, copied here from the VB 4.x version of this mod, working fine:
On line 14 replace:
parent::vB_HumanVerify_Abstract($registry);
with:
parent::__construct($registry);
That's it. :)
Note- Line 14 to be edited is in the file to be uploaded /includes/class_humanverify_new_recaptcha.php.
BGObsession
12-04-2017, 03:25 PM
Running VB 3.8.11 and after making the change talked about in post 26, copied here from the VB 4.x version of this mod, working fine:
Note- Line 14 to be edited is in the file to be uploaded /includes/class_humanverify_new_recaptcha.php.
I'm a little confused. I know Recaptcha 1 is going away, so updating to version 2 is required now if you want to use Recaptcha at all.
I'm running vB 4.2.5, php 7.1.
I see there is a vB 4 version of this mod. What exactly do I need to alter in the upload files of the vB 4 version to get Recaptcha 2 to work? Are you saying that all I need to do is edit the /includes/class_humanverify_new_recaptcha.php file as annotated and then install the version 4 mod?
BirdOPrey5
12-04-2017, 09:36 PM
I'm a little confused. I know Recaptcha 1 is going away, so updating to version 2 is required now if you want to use Recaptcha at all.
I'm running vB 4.2.5, php 7.1.
I see there is a vB 4 version of this mod. What exactly do I need to alter in the upload files of the vB 4 version to get Recaptcha 2 to work? Are you saying that all I need to do is edit the /includes/class_humanverify_new_recaptcha.php file as annotated and then install the version 4 mod?
First for the 4.x version of this mod we should be tasking in the 4.x thread: https://vborg.vbsupport.ru/showthread.php?t=315960
But no. making that edit is not the only thing you have to do. You have to follow the instructions to install the full add-on first. Then you need to edit that file so the add-on works properly.
Each add-on usually has instructions for installation either in the first post or the zip file or both.
But generally it's the same VB 3.x or VB 4.x... Download the correct version of the mod, upload any files you need to upload, then go to Admin CP -> Plugins & Products -> Product Manager, choose Upload New Product, select the product xml file from the download, click Import.
At this point you should make the file edit.
Then follow the rest of the instructions to edit the settings and get a key from Google.
Finally, be sure you test it yourself to make sure it works.
BGObsession
12-05-2017, 01:52 AM
I hear you. I found this discussion first and several folks were discussing vB4 version in this thread. I know how to install a mod :) Sorry - found the references to different lines that required editing in both mod threads (both lines 8 and 14 were referenced) confusing. I decided not to bother with updating Recaptcha at all and am just going with a couple of quiz questions.
BirdOPrey5
12-06-2017, 02:32 PM
Gotha,
I didn't need to make any edits to line 8 but I'm still using PHP 5.6.x. Can't be sure it isn't different on PHP7.
imported_silkroad
12-30-2017, 05:59 PM
Worked fine with vB 3.8.4
TheBang
04-15-2018, 10:14 PM
I've repackaged this add-on into a 1.0.1 version, which you can download below. The main change is incorporating the required PHP fix. So, this will work properly with vBulletin 3.8.11 and PHP 5.6/7.0/7.1. It should also work with earlier versions, though the minimum PHP version required is probably something like PHP 5.3.
I also updated all the UI elements to refer to the feature as "reCAPTCHA v2" instead of "New reCAPTCHA". I also updated the readme docs, correcting errors and typos.
JohnChapman
05-02-2018, 03:08 PM
Just deployed this update to my 3.8.11/PHP 5.6.31 site and it works as advertised. The previous 1.0 version survived config/test, but threw an error on the actual registration page.
Thanks for the module.
RSBHeadlight
08-28-2018, 05:50 AM
Maybe I messed something up here. Running vbulletin 3.8.7 patch level 6, I upload the file and imported the product xml with no issue but when I go to human verification I only see whats in the attached screenshot, assistance would be greatly appreciated.
crazymook
08-28-2018, 02:50 PM
Same here.
TheBang
09-07-2018, 04:52 PM
You're looking in the wrong place. reCAPTCHA v2 is found in "vBulletin Options > Human Verification Manager", not in "vBulletin Options > vBulletin Options > Human Verification Options"
crazymook
09-18-2018, 01:24 PM
Im looking in the right place, v2 is not there.
BirdOPrey5
09-22-2018, 05:59 PM
Just to be clear the screenshot posted in Post 36 is not the right place to look for it, so that is why it is confusing.
If it isn't showing up in the actual right place most likely the files were uploaded to the wrong directory.
crazymook
09-24-2018, 01:53 PM
Just to be clear the screenshot posted in Post 36 is not the right place to look for it, so that is why it is confusing.
If it isn't showing up in the actual right place most likely the files were uploaded to the wrong directory.
File uploaded to includes folder. XML file installed. Looking in the right spot. No update to the verification options :(
motd2
09-24-2018, 02:11 PM
you_site/forum/admincp/verify.php
if the admincp is not renamed
crazymook
09-24-2018, 02:19 PM
you_site/forum/admincp/verify.php
if the admincp is not renamed
maybe elaborate on that? i'm not sure I'm understanding.
motd2
09-24-2018, 02:27 PM
https://vborg.vbsupport.ru/external/2018/09/4.png
crazymook
09-24-2018, 02:30 PM
I know where to look...I keep saying that, haha. v2 is NOT there...I followed the steps perfectly. The mod does not work with my site.
ctrenks
09-24-2018, 04:46 PM
Any plans to allow for recatcha v3 possibly?
BirdOPrey5
09-25-2018, 01:33 PM
maybe elaborate on that? i'm not sure I'm understanding.
If you go to the admincp in your forum, what is the URL that is in your browser? (Delete/remove the main domain name)
crazymook
09-26-2018, 08:54 PM
Ya I figured it out...still doesnt help the missing v2 :(
TheBang
10-01-2018, 07:33 AM
Ya I figured it out...still doesnt help the missing v2 :(
Do you have a lot of mods or plugins installed? Maybe one of them is interfering with the operation of this. Try disabling stuff and see if it appears?
Also, it'd be helpful if you specify what version of vB you're running, version of PHP, and confirm that you installed the 1.0.1 package I posted, and not the 1.0 version from the OP of this thread?
crazymook
10-01-2018, 02:09 PM
Do you have a lot of mods or plugins installed? Maybe one of them is interfering with the operation of this. Try disabling stuff and see if it appears?
Also, it'd be helpful if you specify what version of vB you're running, version of PHP, and confirm that you installed the 1.0.1 package I posted, and not the 1.0 version from the OP of this thread?
vb version 3.8.1 (ancient I know). php version 5.3.28 (if the admincp is to be believed). 1.0.1 confirmed installed.
guess ill have to start disabling plugins.
arkkhoax
10-30-2018, 02:55 AM
If you are are getting "PHP Fatal error: Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract()" after updating PHP use the file attached instead of the official one.
RSBHeadlight
11-04-2018, 02:03 AM
Ok sorry for the delayed response, I installed the mod, went and selected new recaptcha, went to the link and generated the keys for my site, entered them, when I try and test a password reset the capcha fails to load, when I go back and test connection I get site key is not set, secret key is not set. Any help appreciated.
dr nick
04-02-2019, 05:56 PM
I have just installed this on my old v3.8.7 Patch Level 3, test configuration in Admin CP comes out without any errors but when pressing "Test verification" i get the error shown below,
Any solution to this?
Test Verification:
Verification Results:
- g-recaptcha-response is not set. Complete the human verification challenge before pressing Submit.
Verification Failed.
Also when doing a test registration, I only see the text "Human verification" but there is nothing in this field?
dr nick
04-02-2019, 07:10 PM
I have just installed this on my old v3.8.7 Patch Level 3, test configuration in Admin CP comes out without any errors but when pressing "Test verification" i get the error shown below,
Any solution to this?
Test Verification:
Verification Results:
- g-recaptcha-response is not set. Complete the human verification challenge before pressing Submit.
Verification Failed.
Also when doing a test registration, I only see the text "Human verification" but there is nothing in this field?
Okey, some progress made, it works perfectly fine in Chrome but not in IE, how do I get it to work in IE?
In Chrome the reCAPcha is displayed and visable and useable when register but in IE it dosnt show more than saying "Human verification".
TheBang
10-09-2019, 08:11 AM
Okey, some progress made, it works perfectly fine in Chrome but not in IE, how do I get it to work in IE?
In Chrome the reCAPcha is displayed and visable and useable when register but in IE it dosnt show more than saying "Human verification".
What version of IE and Windows are you using?
ufuk61
07-28-2020, 01:54 PM
Can you update the plugin reCAPTCHA v3
weinstoc
09-30-2020, 11:40 PM
Hi. When we upgraded from 3.8.9 (I think) to 3.8.11 recaptcha 2 stopped showing puzzles and we are getting a lot of bots registering. We made no other changes. Any thoughts?
(I went to the Google admin page and set the slider to the most difficult setting...no affect.)
Chuck
Dr.CustUmz
10-11-2020, 08:08 AM
im working on the v3 one right now
Kevin while going through your code i noticed you missed adding a phrase
<phrasetype name="Control Panel User Management" fieldname="cpuser">
<phrase name="new_recaptcha_verification_options"><![CDATA[New reCAPTCHA]]></phrase>
</phrasetype>
it's VERY minor but just something i caught ;) I have a v3 working like normal products (with an options page) but I want to incorporate it into the HVM like this product does before releasing it. It's just a more professional / proper way of doing things =)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.