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 - NoSpam! - an alternative to CAPTCHA images (https://vborg.vbsupport.ru/showthread.php?t=124828)

msu2k 10-29-2006 12:27 PM

Great hack! Can we get a similiar hack for the Contact Us form please?

m_k 10-29-2006 01:22 PM

wow thanks!

working like a charm on ver 3.5.4 after i used the version you posted here --> https://vborg.vbsupport.ru/showpost....6&postcount=36

and the template modification here --> https://vborg.vbsupport.ru/showpost....6&postcount=40

great hack :-)

m_k 10-29-2006 03:01 PM

installed on second forum, but had to be a bit creative to get it working with the AquaSoft template :-)

buro9 10-29-2006 03:37 PM

This is so simple, and so genius... installed.

PoetJA-1975 10-29-2006 10:06 PM

Quote:

Originally Posted by PoetJA-1975
Very nice share = Jacquii clicks INSTALL
Thanx -

I do have a question though - http://JPiCForum.info - You'll see I am making use of the QuickRegister on the JPiC portal... How can I get this to work for that?

I'm also using image verification for non-members on the Contact Us page - It would be excellent if NoSpam! work for that page as well.

At anyrate - Thanx = wonderful modification - EASY install :)

Jacquii.

----Bump----

Is this hack supported?
Looking forward to answers for MY concerns ;)

Jacquii.

adwade 10-29-2006 10:11 PM

He addressed part of it back on page 4...

Quote:

Originally Posted by antialiasis
Well, as a quick non-tested solution for now to add it to the contact us form:

1. Edit the "Cache the NoSpam! template" plugin to say:

Code:

if (THIS_SCRIPT == 'register' OR THIS_SCRIPT == 'sendmessage')
{
  $globaltemplates[] = 'nospam';
}

2. Copy the entire text of the "Check if NoSpam! question has been answered correctly" into another plugin located at the sendmessage_docontactus_start hook

3. Make a new plugin on the sendmessage_contactus_start hook with the following code:

Code:

if ($vbulletin->options['nospam_onoff'])
{
  $vbulletin->templatecache['contactus'] = str_replace('$imagereg', '$nospamfield\n\n$imagereg', $vbulletin->templatecache['contactus']);
  $questions = explode("\n", $vbulletin->options['nospam_questions']);
  $nospamnumber = array_rand($questions);
  $qanda = explode(":",$questions["$nospamnumber"]);
  $nospamquestion = $qanda[0];

  eval('$nospamfield = "' . fetch_template('nospam') . '";');
}

And that should be it. Again, note that it's not tested.

and later went on to say it'd be incorporated in a future release...

Quote:

Originally Posted by antialiasis
Well, to copy the text of a plugin into another one, you go to "Plugin Manager" in the Admin CP menu (under Plugins and Products, close to the bottom), find the plugin with the right name (using the browser's search function is probably the easiest way to do this), click its name, copy the "Plugin PHP Code" and then click "Add New Plugin" (the link under "Plugin Manager") and paste it into the "Plugin PHP Code" instead. Select the hook with the specified name in the "Hook Location" drop-down, and I suggest also selecting "NoSpam!" in the "Product" drop-down. Lastly, set "Plugin is Active" to Yes. To just add a new plugin with predefined text, do everything from the part where I tell you to click "Add New Plugin" again.

If you still find it confusing, it won't be long before this is all in the product itself anyway.


dsmoke 10-30-2006 04:58 PM

will this work with 3.5.4? thanks

PoetJA-1975 10-30-2006 09:55 PM

Tried the template mods on page 4 - to work for the Contact Us page and the Quick Registration... Please help for 3.5.4 - Thanx

Jacquii.

schanulleke 11-04-2006 06:00 PM

Quote:

Originally Posted by antialiasis
I am working on a version that works with all places where CAPTCHA is used in vBulletin - it's working fine for guest posts and contact forms, but I'm having problems with the guest search for some reason. I'm hoping to get it out soon.

I am looking forward to that. ;)

user02934123123 11-08-2006 05:31 AM

This hack has worked beautifully and solved in one motion my problems with spammers using scanning software that can read CAPCHA images. Many thanks.


All times are GMT. The time now is 01:54 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.01746 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (4)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