vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - reCAPTCHA!vB (https://vborg.vbsupport.ru/showthread.php?t=151824)

magnus 02-28-2008 10:54 PM

Quote:

Originally Posted by CeesT (Post 1453169)
Thanks Magnus, have just installed it and it works fine.

Only the local-language and color does not work in the 'sendmessage.php' (in register.php this works fine), it has default red-color and english language in sendmessage.php, can I change this somewhere in the code ?

And could you give a recipe what to change for implementing this in 'search.php' ?

To add support for themes/language in sendmessage.php, perform the following template edit:

In contactus:

FIND:
HTML Code:

                        $imagereg
REPLACE WITH:
HTML Code:

                        <script type='text/javascript'>       
                                var RecaptchaOptions = {
                                        theme : '$vboptions[recaptcha_theme]',
                                        tabindex : $vboptions[recaptcha_tabindex],
                                        lang : '$vboptions[recaptcha_lang]'
                                };
                        </script>

                        <fieldset class='fieldset'>
                                <legend>$vbphrase[image_verification]</legend>
                                $imagereg
                        </fieldset>


That should do the trick. :)

I haven't done the code for search.php yet, it's on my list.

CeesT 02-29-2008 07:10 AM

Quote:

Originally Posted by magnus (Post 1453237)
That should do the trick. :)

That worked fine :) , thanks :up:

Dr.H 03-02-2008 02:50 AM

Hi I'm going to be trying to update my 3.5.4 forum to 3.7 beta but it will take a little while since all I have is ftp access and can't get ssh access from my host yet.
My question is.. is there any chance of this working with 3.5.4? I've turned off my registration until the upgrade but I have people hounding me to join so I wanted to have this security until the upgrade is done.

I looked at my register.php file and can't find:
Quote:

eval('$imagereg = "' . fetch_template('imagereg') . '";');
So I assume I'm out of luck?

magnus 03-02-2008 01:03 PM

Not necessarily. It may not be a quick install like with 3.6, however, with a bit of meddling I don't see why it would be all too difficult. Try searching for just "$imagereg =", see if that yields any results.

I'll see if I can download 3.5 later and run through register.php.

Dr.H 03-02-2008 07:02 PM

I tried searching the file for multiple parts of the line and no luck. It doesn't seem to contain the text. I will see if I can maybe do an upgrade to 3.6.8 before I start the beta.

Nitro212 03-04-2008 07:14 AM

uh is there a bug in the send message code? i was testing it after a few attempts of saying the words was wrong i refreshed and it sent the message.. i tried this a couple times after 2 or 3 bad attempts i refreshed and the message was sent :/

edit: actually if i leave the field empty it still sends it works fine for the register but not for the contatc us form

magnus 03-04-2008 11:39 AM

Quote:

Originally Posted by Nitro212 (Post 1456553)
uh is there a bug in the send message code? i was testing it after a few attempts of saying the words was wrong i refreshed and it sent the message.. i tried this a couple times after 2 or 3 bad attempts i refreshed and the message was sent :/

edit: actually if i leave the field empty it still sends it works fine for the register but not for the contatc us form

Ah hah! You are correct. It was a simple typo on my part, sorry.

In sendmessage.php:

FIND:
PHP Code:

if ($resp->is_valid

REPLACE WITH:
PHP Code:

if (!$resp->is_valid

I modified the original post to reflect this change. Thanks for pointing it out! :)

Jazzi 03-17-2008 01:04 AM

Thanks for your work on this mod - it installed and operated exactly as it should do...

However, I've had to uninstall it again. Why? In my personal opinion it would massively reduce signups to my forum - given that 8 out of 10 of the captcha images are totally impossible to decipher, and the audio alternative almost as bad.

I'm fully aware that neither of these issues aren't your fault of course - it's just a shame that something so obviously brilliant is also so fundamentally flawed.

invitezone 04-10-2008 03:51 PM

I have successfully added this mod to my board so thankyouverymuch for this.

I was just wondering if it was possible to add the function to the board login as well?
Is this possible?

im am fairly new to vbulletin and editing code etc so if it is coulkd you tell me how to do it please.
Thanks very much

magnus 04-11-2008 04:55 PM

Yes, it could be added to the board login as well as anywhere else, however, that would require much more work than the scope of this modification was intended for. I'm not even sure there's appropriate custom hooks, so there may possibly be yet more file edits.

So, while yes it can be done, it's really not something I'm planning on implementing nor describing how to do in any great detail, sorry. You best bet would be asking around in Requests For Paid Services.

invitezone 04-11-2008 05:15 PM

ok thanks a lot magnus, appreciate the reply

goku93 04-15-2008 06:52 AM

As can be installed on a forum vbulletin 3.7? Thanks
--------------
como lo puede instalar en un foro vbulletin 3.7 ?Gracias

magnus 04-15-2008 02:05 PM

Quote:

Originally Posted by goku93 (Post 1490993)
As can be installed on a forum vbulletin 3.7? Thanks
--------------
como lo puede instalar en un foro vbulletin 3.7 ?Gracias

As far as I know, vBulletin 3.7 has integrated support for reCAPTCHA which can be enabled via the AdminCP. So, there's no need for this hack on a vB3.7 installation.

goku93 04-17-2008 03:03 AM

I have not been found, and I tried a lot. : (

markblair 05-07-2008 05:53 AM

I setup reCaptcha on my vB 3.7 forum and the image verification does not appear to work in IE7. When trying to test the registration using IE7 nothing shows up where reCaptcha should be. Any idea on how to fix this? It works great using Firefox.

David_R 05-07-2008 06:33 AM

recaptcha words on wikipedia are great. can we have something like that ?

magnus 05-08-2008 12:22 AM

Quote:

Originally Posted by markblair (Post 1511292)
I setup reCaptcha on my vB 3.7 forum and the image verification does not appear to work in IE7. When trying to test the registration using IE7 nothing shows up where reCaptcha should be. Any idea on how to fix this? It works great using Firefox.


Wait.. what? You installed this hack on vB 3.7? Doesn't vB 3.7 come with reCAPTCHA included by default?

kansei 05-12-2008 09:41 PM

Quote:

Originally Posted by magnus (Post 1512173)
Wait.. what? You installed this hack on vB 3.7? Doesn't vB 3.7 come with reCAPTCHA included by default?

It does.

I'm wondering, did anyone who used this hack on 3.6 have trouble with the native recaptcha support on 3.7? 3.7 of course significantly changed the structure of the "human verification", making it more modular to support a few styles of verification. With that, it replaced the php file that was modified in this hack with a new version. I just can't get recaptcha working on my 3.5 upgraded to 3.6 upgraded to 3.7 forum but I tested and it works fine on a clean install.

pcxtreme 05-21-2008 05:23 PM

I am trying to use reCAPTCHA on a 3.6.7 vBulletin, but all I get is an empty "Image verification" space.
https://vborg.vbsupport.ru/attachmen...1&d=1211394082
What can be the cause of this misbehaviour?

[edit]: problem solved. GD was not enabled in vBulletin. Just enabling it made everything work!

David_R 05-29-2008 01:12 PM

Quote:

Originally Posted by Doctor Dan (Post 1441932)
A quick mod if you want to restore the "image verification" frame around the reCAPTCHA panel, just like how vBulletin's standard CAPTCHA panel appears:

In the template register find:

Code:

$imagereg

and replace it with:

Code:

<fieldset class="fieldset">
        <legend> $vbphrase[image_verification] </legend>
        $imagereg
</fieldset>


You can also center the reCAPTCHA panel within the frame by adding a "<center>" tag:

Code:

<fieldset class="fieldset">
        <legend> $vbphrase[image_verification] </legend>
        <center> $imagereg </center>
</fieldset>


- Dan

I have patched my register.php file but cannot find the words $imagereg

Instead I have found this:

Code:

if ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype'])
        {
                $imagereg = recaptcha_get_html($vbulletin->options['recaptcha_publickey'], $error);
        }
        else
        {
                $imagereg = '';
        }


KILLERMG 06-11-2008 01:03 PM

i have one problen in registration

Image verification could not be verified due to server issues. Please try again later.

vb 3.7.1 pl1

edgecutioner 06-12-2008 05:51 AM

Nice hack magnus!
*edgecutioner clicks install*

Quote:

Originally Posted by KILLERMG (Post 1546643)
i have one problen in registration

Image verification could not be verified due to server issues. Please try again later.

vb 3.7.1 pl1

AFAIK, 3.7 has reCAPTCHA integrated. just have to enable it via ACP

jmellors 06-15-2008 12:02 PM

how can i get this to work with 3.7.1?

kp^ 06-19-2008 10:14 PM

To those that have 3.7, it's broken..... Read here

http://www.vbulletin.com/forum/showthread.php?t=273320

n00b.gr 06-20-2008 08:29 AM

Hello! If we have vbulletin 3.7.1 which changes we have to do?

n00b.gr 06-20-2008 08:46 AM

and GD library must be installed?

Zachery 06-20-2008 10:02 AM

Can you please add something to your plugin to stop it from being installed into vBulletin 3.7 installations?

ETDC 07-07-2008 11:52 AM

^ Agreed. Wasted a lot of time today trying to install a plugin for a system that doesn't work in 3.7 anyway.

:)

Zachery 07-08-2008 12:33 PM

Quote:

Originally Posted by ETDC (Post 1569040)
^ Agreed. Wasted a lot of time today trying to install a plugin for a system that doesn't work in 3.7 anyway.

:)

You're aware its a default feature?

ETDC 07-08-2008 01:35 PM

Yes, but it doesn't work.

Zachery 07-09-2008 04:02 AM

No, it works just fine.

ETDC 07-09-2008 04:16 PM

Well, not on my boards it doesn't.

CeesT 07-09-2008 08:52 PM

Quote:

Originally Posted by ETDC (Post 1571137)
Well, not on my boards it doesn't.

The default (build-in VB-3.7) reCAPTCHA works fine, this plugin is not required anymore for VB as it is build in the VB-code now.....

ETDC 07-09-2008 09:31 PM

Managed to get it to "work" on one board. What's the deal with the sound though - are they playing satanic messages to the hard of hearing?... :down:

Masked Crusader 07-10-2008 09:12 PM

Alright, did all of the code edits in the register.php file, uploaded the XML and function PHP file, and NOTHING is there when I go into the registration page.

Underneath the header title "Image Verification" there is nothing but white space.

Any suggestions or help would be appreciated.

maniacop 07-13-2008 03:00 PM

Hello could somebody guide me how to enable this recaptcha thing??
i tought all you have todo was create an acount with them goto ACP-vbulletin options-Human verification and enter the registration info but it doesnt give me any options there to do this...

http://img90.imageshack.us/img90/561...icationjg0.jpg
http://img90.imageshack.us/img90/561...4fe5966582.jpg

using vBulletin 3.7.2 PL 1
Help please!

Zachery 07-15-2008 03:45 AM

THIS MODIFICATION SHOULD NOT BE USED WITH VBULLETIN 3.7 AS IT IS A DEFAULT FEATURE.

Please stop using it.

maniacop 07-15-2008 04:27 AM

Quote:

Originally Posted by Zachery (Post 1575619)
THIS MODIFICATION SHOULD NOT BE USED WITH VBULLETIN 3.7 AS IT IS A DEFAULT FEATURE.

Please stop using it.

Ok i understand that but thats my question how can i enable this??

Thank you.

Nevermind, i know how now... but thanks

Juvefan 07-19-2008 11:50 PM

How can i integrate this mod with quick register mod??
This is the php code of quick register with image verification

Code:

if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['quickregister_active'] == 1)
{
    if (($vbulletin->options['quickregister_imgver']) AND ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype']))
    {
        require_once(DIR . '/includes/functions_regimage.php');
        $imagehash = fetch_regimage_hash();
        eval('$imagereg = "' . fetch_template('imagereg') . '";');
    }
    else
    {
        $imagereg = '';
    }

    $show['guest'] = true;
    eval('$quickregister = "' . fetch_template('quick_register') . '";');
}


Zachery 07-20-2008 01:45 PM

THIS MODIFICATION SHOULD NOT BE USED WITH VBULLETIN 3.7 AS IT IS A DEFAULT FEATURE.

Please stop using it.


All times are GMT. The time now is 04:50 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.01515 seconds
  • Memory Usage 1,840KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (12)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