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.


All times are GMT. The time now is 11:26 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.01180 seconds
  • Memory Usage 1,751KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (4)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
  • (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