vb.org Archive

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

Domenico 03-16-2017 03:25 PM

Hi,

Can you update this plugin and make it work with the new Invisible reCAPTCHA ?
https://www.google.com/recaptcha/intro/invisible.html

Thank you!

RichieBoy67 03-22-2017 09:41 PM

Needs updates for php7..

mod_fcgid: stderr: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_NewRecaptcha has a deprecated constructor in #######################/httpdocs/includes/class_humanverify_newrecaptcha.php

z3r0 03-23-2017 07:19 AM

Quote:

Originally Posted by RichieBoy67 (Post 2584212)
Needs updates for php7..

mod_fcgid: stderr: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_NewRecaptcha has a deprecated constructor in #######################/httpdocs/includes/class_humanverify_newrecaptcha.php

It works fine on my php7 sites with this fix - https://vborg.vbsupport.ru/showpost....&postcount=197

RichieBoy67 03-23-2017 07:04 PM

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

Thanks, I didn't see that..

RichieBoy67 03-23-2017 07:12 PM

Quote:

Originally Posted by z3r0 (Post 2584224)
It works fine on my php7 sites with this fix - https://vborg.vbsupport.ru/showpost....&postcount=197

Thanks but i already see that change done..

hippiesimz 03-26-2017 08:07 AM

i got this one,
---------------------------------------------------

- Decoded response:
- success: false
- error-codes: invalid-input-secret
- Error Phrase: Human verification unsuccessful due to incorrect reCAPTCHA secret. Contact the admin.
Verification Failed.

-------------------------------------

please help.

RichieBoy67 03-26-2017 10:30 AM

Quote:

Originally Posted by hippiesimz (Post 2584347)
i got this one,
---------------------------------------------------

- Decoded response:
- success: false
- error-codes: invalid-input-secret
- Error Phrase: Human verification unsuccessful due to incorrect reCAPTCHA secret. Contact the admin.
Verification Failed.

-------------------------------------

please help.

Did you register for Google recaptcha and enter the correct information into the plug in settings?

Flipfloptrader 04-12-2017 06:05 AM

Quote:

Originally Posted by Domenico (Post 2583951)
Hi,

Can you update this plugin and make it work with the new Invisible reCAPTCHA ?
https://www.google.com/recaptcha/intro/invisible.html

Thank you!

Just a little nudge...this would be a fantastic addition.

Crotan 04-27-2017 09:18 PM

thanks! Was previously using keyCAPTCHA, and now switched to this. The original reCAPTCHA has long been ineffective.

Flipfloptrader 05-10-2017 10:46 PM

Doesn't work on 4.2.5 unfortunately.

Doesn't like this line from what I can see:

Code:

        parent::vB_HumanVerify_Abstract($registry);

Flipfloptrader 05-10-2017 10:49 PM

Durr! Answer on previous page, many thanks Dominco.

Flipfloptrader 05-15-2017 04:44 AM

I've noticed a real up tick in bot registrations over the last couple of weeks. I must get 15-20 'fake' registrations a day, all from .ru email addresses. Thankfully I have spambot stopper also which saves all of them as they fill in the registration form in under 2 seconds. Annoying none the less.

In Omnibus 05-15-2017 07:19 PM

Quote:

Originally Posted by Flipfloptrader (Post 2586524)
I've noticed a real up tick in bot registrations over the last couple of weeks. I must get 15-20 'fake' registrations a day, all from .ru email addresses. Thankfully I have spambot stopper also which saves all of them as they fill in the registration form in under 2 seconds. Annoying none the less.

Why don't you block .ru e-mail addresses from registration globally in the admincp? :D

dan325ci 05-17-2017 08:57 PM

Quote:

Originally Posted by Flipfloptrader (Post 2586366)
Doesn't work on 4.2.5 unfortunately.

Doesn't like this line from what I can see:

Code:

        parent::vB_HumanVerify_Abstract($registry);

Yes same issue here.

Anyone have a fix for 4.2.5?

MarkFL 05-17-2017 09:08 PM

Quote:

Originally Posted by dan325ci (Post 2586631)
Yes same issue here.

Anyone have a fix for 4.2.5?

Try this:

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


Flipfloptrader 05-17-2017 10:08 PM

Quote:

Originally Posted by In Omnibus (Post 2586563)
Why don't you block .ru e-mail addresses from registration globally in the admincp? :D

I tried this and they're still getting through. The odd thing is when I try and replicate it by using xxx@mail.ru it tells me the administrator has blocked the email address so it seems to work but I still get emails showing registration rejections.

Drakie 05-24-2017 08:55 AM

Quote:

Originally Posted by Flipfloptrader (Post 2586524)
I've noticed a real up tick in bot registrations over the last couple of weeks. I must get 15-20 'fake' registrations a day, all from .ru email addresses. Thankfully I have spambot stopper also which saves all of them as they fill in the registration form in under 2 seconds. Annoying none the less.

Block stuff in your vBulletin options. I have a list of close to 4000 lines of email spam TLDs and domains like:
Code:

.ru
.ro
.ga
.top
.black
.blue
.email
.fyi
.love
.pro
.website
.click
.club
.faith
.link
.review
.rocks
.site
.space
.top
.work
.xyz

And more TLDs that most people dont use anyway. Unless you run a Russian forum or such. :D

RaYdeN.ADM 05-24-2017 11:48 AM

Quote:

Originally Posted by Drakie (Post 2586885)
Block stuff in your vBulletin options. I have a list of close to 4000 lines of email spam TLDs and domains like:
Code:

.ru
.ro
.ga
.top
.black
.blue
.email
.fyi
.love
.pro
.website
.click
.club
.faith
.link
.review
.rocks
.site
.space
.top
.work
.xyz

And more TLDs that most people dont use anyway. Unless you run a Russian forum or such. :D

Where do you add that lock?

Areku 05-25-2017 06:30 AM

Settings -> User Banning Options -> Banned Email Addresses

RaYdeN.ADM 05-26-2017 01:45 AM

Quote:

Originally Posted by Areku (Post 2586923)
Settings -> User Banning Options -> Banned Email Addresses

Thanks, I thought that there could only be put @domains.extension according to the description of vbulletin.

Alan_SP 05-28-2017 02:54 PM

You can put there whatever, but you need to be careful. If you place there single letter a, you'll block everyone who have letter a in mail address.

astra121 06-11-2017 06:07 PM

After correcting the error in line 14, an error occurs in line 8, who knows the solution methods?
PHP Code:

PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHPvB_HumanVerify_New_Recaptcha has a deprecated constructor in /home/id/public_html/includes/class_humanverify_new_recaptcha.php on line 8 

Maybe in the PHP 7.1.3 settings I did not put a check somewhere?

MarkFL 06-11-2017 09:31 PM

Post the entire class definition surrounding line 8, and I will rewrite it to work correctly with PHP 7.x. :)

astra121 06-12-2017 04:09 AM

PHP Code:

<?php
if (!isset($GLOBALS['vbulletin']->db))
{
    exit;
}
require_once(
DIR '/includes/class_vurl.php');

class 
vB_HumanVerify_New_Recaptcha extends vB_HumanVerify_Abstract
{
    public static 
$verify_url 'https://www.google.com/recaptcha/api/siteverify';
    
    function 
__construct(&$registry)
    {
        
parent::__construct($registry);
    }

    private static function 
get_error_phrase($result)
    {
        if (isset(
$result['error-codes']))
            
$errormsg current($result['error-codes']);
        else
            
$errormsg '';
        switch (
$errormsg)
        {


MarkFL 06-13-2017 02:56 PM

That doesn't appear to be the entire class definition.

sevans03 06-28-2017 07:14 PM

Installed and working great, thanks!

Rideharder 06-28-2017 10:15 PM

Working with 4.2.5 PHP 7? Can you guys upload what we need for 4.2.5 thanks!

Update, I fix the code on line 14 and looks like all is working. Thanks!

KubisForce 07-03-2017 08:05 AM

Hello,

I am using vb 4.2.5 and recaptcha isnt working. Whenever I sent of a registration I get:
reCAPTCHA could not be verified due to server issues. Please try again later.

In test connection everything seems to be fine and I get no error.
I already did the fix for line 14. Is there any log to further diagnose it?

blade5000 07-08-2017 02:03 PM

have error code by vb 4.2.5

Code:

Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() on line 14 in /home/xxxxxx/public_html/includes/class_humanverify_new_recaptcha.php
#0 /home/xxxxxx/public_html/includes/class_humanverify.php(61): vB_HumanVerify_New_Recaptcha->vB_HumanVerify_New_Recaptcha(Object(vB_Registry))
#1 /home/xxxxxxxx/public_html/register.php(1244): vB_HumanVerify::fetch_library(Object(vB_Registry))
#2 {main}

not error
class_humanverify_new_recaptcha.php

PHP Code:

parent::__construct($registry); 

work by 7.0

is nice software ;)

RichieBoy67 07-08-2017 02:21 PM

Quote:

Originally Posted by blade5000 (Post 2588240)
have error code by vb 4.2.5

Code:

Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() on line 14 in /home/xxxxxx/public_html/includes/class_humanverify_new_recaptcha.php
#0 /home/xxxxxx/public_html/includes/class_humanverify.php(61): vB_HumanVerify_New_Recaptcha->vB_HumanVerify_New_Recaptcha(Object(vB_Registry))
#1 /home/xxxxxxxx/public_html/register.php(1244): vB_HumanVerify::fetch_library(Object(vB_Registry))
#2 {main}

not error
class_humanverify_new_recaptcha.php

PHP Code:

parent::__construct($registry); 

work by 7.0

is nice software ;)

https://vborg.vbsupport.ru/showpost....&postcount=217

Ordovicium 07-10-2017 08:59 PM

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

Thank you for the fix. Works fine on 4.2.5

WalkingWaldo2 09-03-2017 03:41 AM

Having issues with this MOD after upgrade to vb 4.2.5. register.php does not load if thsi eature is eanbled in Human Verification Actions setting.

Uncheck "register" box and register.php loads.

djbaxter 09-03-2017 08:03 PM

Quote:

Originally Posted by WalkingWaldo2 (Post 2589721)
Having issues with this MOD after upgrade to vb 4.2.5. register.php does not load if thsi eature is eanbled in Human Verification Actions setting.

Uncheck "register" box and register.php loads.

The fix has already been posted above.

See https://vborg.vbsupport.ru/showpost....&postcount=217 and https://vborg.vbsupport.ru/showpost.php?p=2586632

EDIT FILE /includes/class_humanverify_new_recaptcha.php

On line 14 replace:


Code:

                parent::vB_HumanVerify_Abstract($registry);
with:



Code:

                parent::__construct($registry);

RichieBoy67 09-05-2017 08:49 PM

I see this in my log:

mod_fcgid: stderr: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_NewRecaptcha has a deprecated constructor in /httpdocs/includes/class_humanverify_newrecaptcha.php on line 8, referer: /register.php?

I know it is only a warning but a fix would be nice..

Line 8 is:
class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract

djbaxter 09-05-2017 09:08 PM

Quote:

Originally Posted by RichieBoy67 (Post 2589752)
I see this in my log:

mod_fcgid: stderr: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_NewRecaptcha has a deprecated constructor in /httpdocs/includes/class_humanverify_newrecaptcha.php on line 8, referer: /register.php?

I know it is only a warning but a fix would be nice..

Line 8 is:
class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract

Is that after you apply the fix above?

RichieBoy67 09-05-2017 09:10 PM

I applied that fix years ago.. been awhile.

djbaxter 09-05-2017 09:23 PM

Within the class defined at line 8

Code:

class vB_HumanVerify_New_Recaptcha extends vB_HumanVerify_Abstract
is this at line 12

Code:

        function vB_HumanVerify_New_Recaptcha(&$registry)
Could that be the referenced conflict?

RichieBoy67 09-09-2017 07:15 PM

Thanks,

Line 8 is class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract

This is line 12: parent::__construct($registry);

djbaxter 09-09-2017 07:30 PM

1 Attachment(s)
This is the first 16 lines of my version - does this not match your version?

PHP Code:

<?php
if (!isset($GLOBALS['vbulletin']->db))
{
    exit;
}
require_once(
DIR '/includes/class_vurl.php');

class 
vB_HumanVerify_New_Recaptcha extends vB_HumanVerify_Abstract
{
    public static 
$verify_url 'https://www.google.com/recaptcha/api/siteverify';
    
    function 
vB_HumanVerify_New_Recaptcha(&$registry)
    {
//        parent::vB_HumanVerify_Abstract($registry);
        
parent::__construct($registry);
    }

Complete file is attached.

RichieBoy67 09-09-2017 11:18 PM

Thanks,

Mine is:

<?php
if (!isset($GLOBALS['vbulletin']->db))
{
exit;
}
require_once(DIR . '/includes/class_vurl.php');

class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract
{
function vB_HumanVerify_NewRecaptcha(&$registry)
{
parent::__construct($registry);
}

function verify_token($input)
{


All times are GMT. The time now is 05:05 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.01710 seconds
  • Memory Usage 1,856KB
  • 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
  • (16)bbcode_code_printable
  • (5)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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