vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Anti-Spam Options - reCAPTCHA v2 Human Verification (https://vborg.vbsupport.ru/showthread.php?t=315964)

kh99 12-10-2014 10:00 PM

reCAPTCHA v2 Human Verification
 
1 Attachment(s)
(Note: This mod was renamed. The original name was "New reCAPTCHA Human Verification")

What is it?
----------------------------
This mod adds reCAPTCHA v2 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 (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 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

z3r0 12-11-2014 07:25 PM

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 :)

kh99 02-22-2015 07:38 PM

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?

kh99 03-12-2015 05:37 PM

Quote:

Originally Posted by Baitona (Post 2540265)
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.

kh99 03-12-2015 06:02 PM

Quote:

Originally Posted by Baitona (Post 2540265)
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

kh99 03-12-2015 10:44 PM

Quote:

Originally Posted by davidg (Post 2540310)
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

kh99 03-13-2015 05:02 PM

Quote:

Originally Posted by davidg (Post 2540365)
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?

kh99 10-30-2015 06:11 PM

Quote:

Originally Posted by Alfa1 (Post 2557721)
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

Quote:

Originally Posted by irxzirox (Post 2575956)
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....&postcount=233

Fynnon 10-20-2017 07:08 AM

Quote:

Originally Posted by irxzirox (Post 2575956)
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:

Quote:

Originally Posted by Domenico (Post 2579677)
On line 14 replace:
Code:

                parent::vB_HumanVerify_Abstract($registry);
with:
Code:

                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

Quote:

Originally Posted by BirdOPrey5 (Post 2591416)
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

Quote:

Originally Posted by BGObsession (Post 2591418)
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

1 Attachment(s)
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

1 Attachment(s)
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

Quote:

Originally Posted by BirdOPrey5 (Post 2596479)
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 :(


All times are GMT. The time now is 05:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01759 seconds
  • Memory Usage 1,831KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete