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)

HondaATC 09-17-2006 11:42 PM

Anyway to make this work on 3.5.4?

antialiasis 09-17-2006 11:59 PM

Flip to page three of this thread, download the product XML attached to post #36 and then make the template edit as dartho instructs a couple of posts below. :)

HondaATC 09-18-2006 12:28 AM

Quote:

Originally Posted by dartho
There in may lay the problem - there is no "$imagereg" See template code below:

I added in a $nospamfield just above this, and it all came togther - thanks!

Code:

                        <if condition="$show['regimagecheck']">
                        <fieldset class="fieldset">
                                <legend>$vbphrase[image_verification]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                $vbphrase[enter_text_image_right]
                                        </td>
                                        <td rowspan="2"><img src="image.php?$session[sessionurl]type=regcheck&amp;imagehash=$imagehash" alt="$vbphrase[registration_image]" width="201" height="61" border="0" /></td>
                                </tr>
                                <tr>
                                        <td><input type="text" class="bginput" name="imagestamp" size="50" maxlength="6" /><input type="hidden" name="imagehash" value="$imagehash" /></td>
                                </tr>
                                </table>
                        </fieldset>
                        </if>



Which template do I need to edit this into? Sorry, didn't see the name of it specified on page 3. Thanks ;)

pr0team.net 09-18-2006 02:05 AM

easy for spambots :)
it's not alternative to captcha this is 100 % better than captcha for spambots trust me.

SpanishHarlem 09-18-2006 04:43 AM

Thank's for this. I really hope it help's keep the spammers out

moonclamp 09-18-2006 03:25 PM

Is it possible for someone to input the answer via a checkbox or radio button? If someone has a selection they'll be less likely to make spelling mistakes.

Also, could this easily be added to the bit where a member verifies there age, before they even agree to the rules?

Does this work on the guests contact form and search pages?

remasnet 09-18-2006 05:43 PM

Great idea I will install it
Thnx

antialiasis 09-18-2006 11:07 PM

Quote:

Originally Posted by HondaATC
Which template do I need to edit this into? Sorry, didn't see the name of it specified on page 3. Thanks ;)

It's the register template.

Quote:

Originally Posted by moonclamp
Is it possible for someone to input the answer via a checkbox or radio button? If someone has a selection they'll be less likely to make spelling mistakes.

Also, could this easily be added to the bit where a member verifies there age, before they even agree to the rules?

Does this work on the guests contact form and search pages?

Hmm, I'd have to mess around a little for all of those. I'll look into it.

adwade 09-20-2006 07:59 AM

I was wondering if this MOD could be used another place in vBulletin besides just the registeration process? Namely,

-------------------------------------------------------------------------
Ref: Tipem's comment...
Surprisingly enough, I've tried this and it's worked (not involving verification images or captcha).

On your web form, have a "verify" input text box. Above that say: "Enter in 'V f r 4 R $' without spaces or quotes in the text box below" (and the verification code can be static).

And whaddya know -- no spam from email web forms. Eventually spam bots might figure this out, but it can be a quick fix. To make it even more difficult, you could say "Enter in 'V-4-R-$-s' with no spaces, quotes, or dashes in the text box below." Because a spam bot isn't human, they cannot comprehend this. It's all about fooling bots. The key is not to do it a methodical way, not a hidden or "tricky" way -- just an "odd" way that only humans can comprehend.

Simple.
taken from http://www.sitepoint.com/forums/showthread.php?t=417095
-------------------------------------------------------------------------

Upon reading that, I wondered if this MOD could be used on the 'contact us' form as well as the new user registeration perhaps? If so, where would one add the code in vBulletin to do so?

GREAT MOD by the way, one of my favorites!

antialiasis 09-20-2006 10:45 PM

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.


All times are GMT. The time now is 06:16 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.01549 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_code_printable
  • (3)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