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)

Smoothie 07-12-2007 05:13 AM

Installed, not having much luck changing themes. Is that theme dropdown suppose to work?

Edit: Ok, I tried the 3 themes and the only that shows for me is that butt-ugly red one. :p

magnus 07-12-2007 10:53 AM

If you're having a problem with themes, chances are the automatic template edit isn't taking effect. Simply make the edit manually.

In the register template:
  • FIND:
    HTML Code:

                            $imagereg
    REPLACE WITH::
    HTML Code:

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

                            $imagereg


And, just for good measure you might want to disable the automatic template edit plugin. In AdminCP > Plugins & Products > Plugin Manager look for Automatically modify register template (located under reCAPTCHA!vB) and uncheck the box, then click "Save Active Status".

That should do it!

Alibass 07-12-2007 04:35 PM

@magnus

Thank you for posting instructions here on how to make captcha work for guest using "Contact Us" form.

Works great and thanks again. :)

kayakbabe 08-10-2007 07:22 AM

Would be absolutely great if this could also be used by registred users for things like replies, quick replies, new threads, etc. Even better if it could be used for registered users with less than x postings to their credit. So that it will help drive those manual spammers away.

magnus 08-10-2007 12:36 PM

Why would you want registered users to be subjected to CAPTCHA's?

pitzerwm 09-07-2007 06:44 AM

I think that I followed all of the instructions but when I click on "register" it does go to /register.php but its blank. I replace it with the original and its ok. I did the upload etc. and added the keys to the product in the appropriate spaces. I have double and triple checked my typing. Any suggestions?

Thanks

// Check Reg Image
if ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype'])
{
$resp = recaptcha_check_answer ($vbulletin->options['recaptcha_privatekey'],
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"];

if (!$resp->is_valid)
{
$userdata->error('register_imagecheck');
}
}

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

magnus 09-07-2007 11:13 AM

Quote:

Originally Posted by pitzerwm (Post 1334074)
I think that I followed all of the instructions but when I click on "register" it does go to /register.php but its blank. I replace it with the original and its ok. I did the upload etc. and added the keys to the product in the appropriate spaces. I have double and triple checked my typing. Any suggestions?

Thanks

You're missing a close bracket ')' in the following block (highlighted in red):
Code:

// Check Reg Image
        if ($vbulletin->options['regimagecheck'] AND $vbulletin->options['regimagetype'])
        {
                $resp = recaptcha_check_answer ($vbulletin->options['recaptcha_privatekey'],
                $_SERVER["REMOTE_ADDR"],
                $_POST["recaptcha_challenge_field"],
                $_POST["recaptcha_response_field"]);
               
                if (!$resp->is_valid)
                {
                $userdata->error('register_imagecheck');
                }
        }

Also, why are you typing out the code changes manually? Just copy and paste them from the original post to make sure there are no typo's and to retain proper formatting.

pitzerwm 09-07-2007 04:01 PM

Thanks for your help, I knew that it was something stupid. Works great now. I guess that it was midnight, that I didn't think to cut & paste.

Caerydd 09-08-2007 02:17 PM

Love this method, love this hack, works flawlessly so far, and much more in keeping with my board ^^

Go you!

magnus 09-09-2007 01:52 PM

Quote:

Originally Posted by Caerydd (Post 1334850)
Love this method, love this hack, works flawlessly so far, and much more in keeping with my board ^^

Go you!

Glad you like it! :)


All times are GMT. The time now is 05:00 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.01280 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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