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)

wootriffic 07-20-2015 09:32 PM

Previously i had their plugin installed, then installed your plugin.
Once i did that verification wouldnt pull up, unless i removed vbsocial.

Even deactivating your plugin and leaving vbsocial still wouldnt show it.

not sure if this is a one off issue, but i cant seem to get it back now. so i've deactivated their plugin.

kh99 07-21-2015 05:21 PM

I was able to replicate the issue, but I can't figure out what's going on. All the recaptcha stuff is where it should be and it's loading the javascript from google, and there aren't any js errors, but it's not showing up.

So are you saying that the original recaptcha worked with vbsocial, until you installed this mod? I uninstalled completely and the original recaptcha doesn't work, but I didn't try it before installing my mod. I don't see how it could affect anything after being uninstalled, but anything's possible.

ETA: anyway, this mod works just like the original recaptcha that comes with vbulletin, and I don't really have time to figure out why there's a conflict even with the original (as I suspect it doesn't work even for someone who has never installed my mod). But I *am* working on a new version of this mod to include a template for the mobile style and make a few other tweaks, and one thing I was thinking of including is an option to use the "alternate" way to render the recaptcha widget (see the google developer page if you're curious about it). So it's possible that will solve the issue.

bosanci28 07-22-2015 01:01 AM

So may i ask what is the difference between the original captcha and this?

Thanks

kh99 07-22-2015 03:31 AM

Quote:

Originally Posted by bosanci28 (Post 2551032)
So may i ask what is the difference between the original captcha and this?

Thanks

Well, just to be sure you understand, this mod just interfaces google's reCAPTCHA v2 with the vbulletin human verification system, and the fact is that the interface isn't a lot different than the original. I didn't implement the captcha and I copied the vbulletin interface code to start with, so I really can't take much credit for it, nor can I explain the details of how the captcha works.

You can read about reCaptcha v2 here: http://www.google.com/recaptcha/intro/index.html . In a nutshell, it uses some javascript magic to try to identify people as human, and if it can then the user only has to check the "I am not a robot" box and doesn't always have to solve a captcha. So hopefully it makes it easier for humans to get past it. I know the original reCaptcha had been "cracked" somehow, and to be honest I don't know if this addresses that problem or not. I do know that google has been telling sites that are still using the original to upgrade, so I imagine eventually they will discontinue support for the original.

TorrentMan 07-23-2015 10:10 PM

thanks bud
function perfect, very nice, keep up your good work..

wootriffic 07-24-2015 12:17 PM

Quote:

Originally Posted by kh99 (Post 2550996)
I was able to replicate the issue, but I can't figure out what's going on. All the recaptcha stuff is where it should be and it's loading the javascript from google, and there aren't any js errors, but it's not showing up.

So are you saying that the original recaptcha worked with vbsocial, until you installed this mod? I uninstalled completely and the original recaptcha doesn't work, but I didn't try it before installing my mod. I don't see how it could affect anything after being uninstalled, but anything's possible.

ETA: anyway, this mod works just like the original recaptcha that comes with vbulletin, and I don't really have time to figure out why there's a conflict even with the original (as I suspect it doesn't work even for someone who has never installed my mod). But I *am* working on a new version of this mod to include a template for the mobile style and make a few other tweaks, and one thing I was thinking of including is an option to use the "alternate" way to render the recaptcha widget (see the google developer page if you're curious about it). So it's possible that will solve the issue.

I didn't look actually, but was pretty sure i was seeing new signups when it was active (latest members).
I've deactivated their plugin for now. Much rather have this than some lite version of some other plugin that does almost nothing.

kh99 07-24-2015 12:40 PM

Quote:

Originally Posted by wootriffic (Post 2551228)
I didn't look actually, but was pretty sure i was seeing new signups when it was active (latest members).
I've deactivated their plugin for now. Much rather have this than some lite version of some other plugin that does almost nothing.

After posting that I actually did a fresh test install of vb4.2.3 and installed only the vbsocial lite, selected the original recaptcha (I didn't even install this mod), and it didn't work. I think both the vbsocial and the recaptcha use jquery, and I think there's a conflict so that the recaptcha init stuff doesn't run. I haven't had a chance yet to try the "explict render" method (I think it was called), so I'm still hoping that solves the problem.

It does seem strange though that no one would have noticed before that recaptcha didn't work with vbsocial. Maybe there's something else going on.

bosanci28 07-24-2015 02:11 PM

Quote:

Originally Posted by kh99 (Post 2551037)
Well, just to be sure you understand, this mod just interfaces google's reCAPTCHA v2 with the vbulletin human verification system, and the fact is that the interface isn't a lot different than the original. I didn't implement the captcha and I copied the vbulletin interface code to start with, so I really can't take much credit for it, nor can I explain the details of how the captcha works.

You can read about reCaptcha v2 here: http://www.google.com/recaptcha/intro/index.html . In a nutshell, it uses some javascript magic to try to identify people as human, and if it can then the user only has to check the "I am not a robot" box and doesn't always have to solve a captcha. So hopefully it makes it easier for humans to get past it. I know the original reCaptcha had been "cracked" somehow, and to be honest I don't know if this addresses that problem or not. I do know that google has been telling sites that are still using the original to upgrade, so I imagine eventually they will discontinue support for the original.

Thanks for that info! Installed on v4.2.2 and works fine.
Thanks.

kh99 07-26-2015 08:51 AM

Quote:

Originally Posted by semprot (Post 2551375)
Awesome. It works. I wonder why VB does not update its recaptcha code :D

Suggestion : adding recaptcha language option.

I'm working on another version. I can add the language setting. I actually thought I had used the vbulletin language to set it, but I guess I was dreaming.

kh99 07-26-2015 10:13 AM

Actually you can do this yourself if you don't want to wait. Edit template humanverify_new_recapctha, and near the end is a <script> line. Add the part in red:

Code:

<script src="https://www.google.com/recaptcha/api.js?hl={vb:stylevar languagecode}" async defer></script>

or if you want to hard code a language, you can put the code in place of {vb:stylevar languagecode}. The language codes are here: https://developers.google.com/recaptcha/docs/language


All times are GMT. The time now is 03:06 AM.

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.03273 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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