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)

jdebler 02-09-2007 12:11 PM

Quote:

Originally Posted by Eagle Creek (Post 1177968)
I think I like it BUT:

Isn't this the same as the CAPTCHA then???

I have seen it where there are actual simple objects that need to be identified.

Duck, Apple, House, Boat, etc...

I have seen a few instances of moving to that method.

HeloHi 02-09-2007 03:44 PM

I love this hack. I just recently starting having a problem with spam accounts being made, hope this stops it. Thanks :)

littlematts 02-09-2007 05:24 PM

First of all let me thank you antialiasis for your great mod you provided.

I installed your mod on my vbull forum vBulletin? v3.6.4 and it is working perfect with the registration page..

but the issue i face is with integration.. I am not able to integrate the same with Quick Register Ver: 1.6.3 installed along. The question itself is not showing up. I have tried updating the script as specified by you in integration details page but to no avail.

I am adding the modified page here.. I will be lot thankful if you could take some time to look if it is right way i have done it.. or suggest me a remedy to help me out of this delemma.

"Generate NoSpam! question" on global_start modified to:
Code:

if ($vbulletin->options['nospam_onoff'] AND !$vbulletin->userinfo['userid'])
{
  $nospamdo = true;
  switch (THIS_SCRIPT) {
      case 'register':
        $thetemplate =& $vbulletin->templatecache['register'];
        break;
      case 'sendmessage':
        $thetemplate =& $vbulletin->templatecache['contactus'];
        break;
      case 'search':
        $vbulletin->templatecache['search_forums'] = str_replace(array('$imagereg</td>', '($imagereg)'), array('$nospamfield\n\n$imagereg</td>', '($imagereg OR $vbulletin->options[\'nospam_onoff\'])'), $vbulletin->templatecache['search_forums']);
        break;
      case 'newreply':
        $thetemplate =& $vbulletin->templatecache['newreply'];
        break;
      case 'newthread':
        $thetemplate =& $vbulletin->templatecache['newthread'];
        break;
      default:
        if ($vbulletin->options['nospam_use_reg'] AND $vbulletin->options['quickregister_active']) {
            $questions = explode("\n", $vbulletin->options['nospam_questions']);
            $nospamnumber = array_rand($questions);
            $qanda = explode(":",$questions["$nospamnumber"]);
            $nospamquestion = $qanda[0];
        }
        $nospamdo = false;
  }

  if ($thetemplate)
  {
      $thetemplate = str_replace('$imagereg', '$nospamfield\n\n$imagereg', $thetemplate);
  }

  if ($nospamdo) {
      $questions = explode("\n", $vbulletin->options['nospam_questions']);
      $nospamnumber = array_rand($questions);
      $qanda = explode(":",$questions["$nospamnumber"]);
      $nospamquestion = $qanda[0];

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

and edited quick_register template is:
Code:

<if condition="$vboptions['quickregister_active'] AND $show['guest']">
<!-- Start Quick Register --><table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="6"><div align="center"><b>$vbphrase[quickregister_quickregister]</b></div></td>
</tr>
<tr>
<td class="alt1" colspan="6"> <div align="center">
<span class="smallfont"><script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_md5.js"></script>
<script type="text/javascript">
function verify_passwords(password1, password2)
{
// do various checks, this will save people noticing mistakes on next page
if (password1.value == '' || password2.value == '')
{
alert('Fill out both password fields');
return false;
}
else if (password1.value != password2.value)
{
alert('Entered passwords do not match');
return false;
}
else
{
md5hash(password1, document.forms.register.password_md5);
md5hash(password2, document.forms.register.passwordconfirm_md5);
return true;
}
return false;
}
</script>
<form action="$vboptions[bburl]/register.php" name="register" method="post" onsubmit="return verify_passwords(password, passwordconfirm);">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="addmember" />
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="agree" value="" />
<input type="hidden" name="password_md5" />
<input type="hidden" name="passwordconfirm_md5" />
        <if condition="$vboptions['quickregister_welcomemsg']">
    $vboptions[quickregister_welcomemsgtext]<br><br>
        </if>
    $vbphrase[quickregister_username]
    <input type="text" class="bginput" name="username" maxlength="15" value="" style="width:70px" />
    $vbphrase[quickregister_password]
    <input type="password" class="bginput" name="password" maxlength="15" value="" style="width:70px" />
    $vbphrase[quickregister_confirmpassword]
    <input type="password" class="bginput" name="passwordconfirm" maxlength="15" value="" style="width:70px" />
    $vbphrase[quickregister_email]
    <input type="text" class="bginput" name="email" maxlength="50" value="" style="width:70px" />
    $vbphrase[quickregister_confirmemail]
    <input type="text" class="bginput" name="emailconfirm" maxlength="50" value="" style="width:70px" /><br>
        <if condition="$vboptions['quickregister_dob']">
        $vbphrase[quickregister_birthday]
        <select name="month" id="bd_month"style="width:70px" />
                                                                <option value="-1">$vbphrase[quickregister_bdmonth]</option>
                                                                <option value="01">January</option>
                                                                <option value="02">February</option>
                                                                <option value="03">March</option>
                                                                <option value="04">April</option>
                                                                <option value="05">May</option>
                                                                <option value="06">June</option>
                                                                <option value="07">July</option>
                                                                <option value="08">August</option>
                                                                <option value="09">September</option>
                                                                <option value="10">October</option>
                                                                <option value="11">November</option>
                                                                <option value="12">December</option>
                                                        </select> &nbsp;
<select name="day" id="bd_day"style="width:70px" />
                                                                <option value="-1" >$vbphrase[quickregister_bdday]</option>
                                                                <option value="01" >1</option>
                                                                <option value="02" >2</option>
                                                                <option value="03" >3</option>
                                                                <option value="04" >4</option>
                                                                <option value="05" >5</option>
                                                                <option value="06" >6</option>
                                                                <option value="07" >7</option>
                                                                <option value="08" >8</option>
                                                                <option value="09" >9</option>
                                                                <option value="10" >10</option>
                                                                <option value="11" >11</option>
                                                                <option value="12" >12</option>
                                                                <option value="13" >13</option>
                                                                <option value="14" >14</option>
                                                                <option value="15" >15</option>
                                                                <option value="16" >16</option>
                                                                <option value="17" >17</option>
                                                                <option value="18" >18</option>
                                                                <option value="19" >19</option>
                                                                <option value="20" >20</option>
                                                                <option value="21" >21</option>
                                                                <option value="22" >22</option>
                                                                <option value="23" >23</option>
                                                                <option value="24" >24</option>
                                                                <option value="25" >25</option>
                                                                <option value="26" >26</option>
                                                                <option value="27" >27</option>
                                                                <option value="28" >28</option>
                                                                <option value="29" >29</option>
                                                                <option value="30" >30</option>
                                                                <option value="31" >31</option>
                                                        </select> &nbsp;
<input type="text" class="bginput" name="year" onFocus="value=''" value="$vbphrase[quickregister_bdyear]" size="4" maxlength="4" id="bd_year" style="width:50px" /></if>
  <if condition="$vboptions['quickregister_imgver'] AND $vboptions['regimagecheck']">
  &nbsp;<input type="text" class="bginput" name="imagestamp" size="16" onFocus="value=''" value="$vbphrase[quickregister_imagever]" maxlength="6" title="$vbphrase[quickregister_imageverhov]" />
      <input type="hidden" name="imagehash" value="$imagehash" />
    <img src="image.php?$session[sessionurl]type=regcheck&amp;imagehash=$imagehash" alt="$vbphrase[registration_image]" width="100" height="30" border="0" />
  </if>
<if condition="$vbulletin->options['nospam_onoff'] AND $vbulletin->options['nospam_use_reg']">
    <br />$nospamquestion <input type="text" class="bginput" name="nospam" value="Answer here" onFocus="value=''" size="20" /> <input type="hidden" name="nospamnumber" value="$nospamnumber" />
  </if>

<input type="submit" class="button" value="$vbphrase[quickregister_submit]" accesskey="s" /><input name="agree" id="cb_rules_agree" value="1" type="checkbox"><strong>$vbphrase[quickregister_agree] <a href="$vboptions[bburl]/register.php?" target="_blank">$vbphrase[quickregister_forumrules]</a></strong>&nbsp;

    </span></form>
        </div></td>
</tr>
</thead>
</table><br></if>
<!-- End Quick Register --></if>

i have disabled captcha image in vbull options.

buddy do you have any idea where i went wrong.. coz the quick register dsnt show the integrated no-spam question or the answer box in the page...which i feel mandatory to keep spammers away.. :(

hopefully waiting for your words of help..

regards
Matthew

rjmjr69 02-09-2007 05:45 PM

I dont see anywhere in the options to set it to specific pages?

antialiasis 02-09-2007 11:27 PM

littlematts: Hmm, the answer box isn't showing up either, you say? Then something must be wrong with the template edit you made. Did you definitely make it in all the styles? And did you definitely turn NoSpam! on and set it to being displayed at registration?

rjmjr69: It's the bottom four options on the NoSpam! settings in the vBulletin settings - whether to show it at registration, whether to show it for guest searches, whether to show it for Contact Us and whether to show it for guest posts.

CP, 02-10-2007 12:06 PM

Ok i just want this to be enabled on the registration page, not when each user wants to make a post.. how can i do this? cheers!

antialiasis 02-10-2007 01:23 PM

Make sure you have the newest version (3.0). Then go to vBulletin Settings in the Admin CP and find NoSpam! settings. There the bottom four options allow you to enable or disable NoSpam! on registrations, guest posts, Contact Us and guest searches.

littlematts 02-10-2007 09:28 PM

Quote:

Originally Posted by antialiasis (Post 1178794)
littlematts: Hmm, the answer box isn't showing up either, you say? Then something must be wrong with the template edit you made. Did you definitely make it in all the styles? And did you definitely turn NoSpam! on and set it to being displayed at registration?

rjmjr69: It's the bottom four options on the NoSpam! settings in the vBulletin settings - whether to show it at registration, whether to show it for guest searches, whether to show it for Contact Us and whether to show it for guest posts.

.. yups dude.. even the answer box is not showing up.. i added the exact code above the specified submit post code.

Have rechecked to make sure it is made for all styles << Done; it is :)

Turn on NoSpam << Yups dude, and it is working best for registration page

Set it to being displayed in registration << EEps.. unfortunately i am not able to find this option in vbulletin options menu for NoSpam settings.. but it is working fine as said for main registration page..

.. but still the problem persist.. the NoSpam not integrating with my "Quick registration" mod.. :(

i will be lot thankful if u could look into my modified code when u have some time to spare..

thanks lots for taking your time to read and reply for my query dude.. keep rocking

regards
littlematts

antialiasis 02-10-2007 10:16 PM

Hmm, that's odd.

Try removing the if tags from what you added into the quickregister template.

blogtorank 02-11-2007 01:40 AM

Thought I would share some of my fast but effective ready to go Spam preventions sayings where you have to add the

Quote:

Please type "" into the following box.:
So here is my .txt file with 150 of these ready to go so all you would have to do is just simply copy / paste these to your AdminCP area for this under Options :)

Enjoy! If the coder doesn't like it I'll take it down. However I thought this would help others out to have a few (150) more ready to go!


Edited:

BTW thanks coder for the 3.0!

littlematts 02-11-2007 07:05 AM

Quote:

Originally Posted by antialiasis (Post 1179475)
Hmm, that's odd.

Try removing the if tags from what you added into the quickregister template.

wow dude.. that was infact a fast response.. thanks looooots..

and u know wat.. tat suggestion made a smile on my face when implemented.. i removed the if condition and kept the block as if it will get executed without checking any condition. and yes.. the message box appeared but smile dint last when i made out the question is no where to be found.. i think removing the condition helped me coz.. the no spam version i use is 2.0 and it doesnt have option
PHP Code:

$vbulletin->options['nospam_use_reg'

in vbulletin option menu so it is like the AND condition never get satisfied..

so buddy.. we have answer box with the message "answer here" is here.. but the question is not in sight.. is it the issue with version 2.0 wile i use the integration note for ver3.0?!

always thank you from bottom of my heart to your kind support you providing me..

regards
Matthew

littlematts 02-11-2007 07:36 AM

I dont know if i am right.. but is the error (Question not getting displayed) due to non caching of nospam for quick register form?

like:
PHP Code:

case 'register':
         if (
$vbulletin->options['nospam_use_reg']) {
            
$thetemplate =& $vbulletin->templatecache['register'];
            
$nospamdo true;
         }
         break; 

for register template..

do we need one such case for quick register to get it cached for the same too..

eeps! did i confuse u?! hope not ;) :)
was jus trying to help to figure out along :)

regards
Matthew

familyhistory 02-11-2007 01:32 PM

Hi,

Just added this to my forum (better than CAPTCHA hopefully!)

Anyway, I have an issue with the search.
(I have logged out and cleared cookies)
When as a guest uses the quick search (top of forum) it comes up with:
Quote:

You answered the NoSpam! question incorrectly. Please reevaluate your answer or, if you found yourself unable to answer it, you can refresh for another question if the administrator has enabled multiple questions. If you find yourself repeatedly unable to answer the NoSpam! questions, please contact the forum administration.
Yet, when as a guest, I click advanced search it works ok!

Another major issue is that when I try to register and click "complete Registration", I get a server error from .........../register.php?do=addmember

Any help please,
Regards,
Dave

antialiasis 02-11-2007 05:19 PM

blogtorank: I appreciate the effort to help, but using presets of any sort completely defeats the point of NoSpam!. If people start using math problems or "Please type [word] into the following box" in that exact format en masse, it allows spambots to just be programmed with the rule and then extract the numbers/word from the question to insert it. The strength of NoSpam! lies in the impossibility of mechanically predicting for any given forum that uses the hack what the answer to the question might be, which is the reason NoSpam! does not come with any default questions.

littlematts: Um, obviously you shouldn't be surprised if integration instructions for 3.0 aren't working when you're using 2.0. o_O Just upgrade the hack, and that's all there is to it. Not caching the nospam template had nothing to with it; for one thing, templates still work even if they're not cached (but require an additional query), and for another, the nospam template is not used for the QuickRegister integration.

familyhistory: If you want guests to be able to search without NoSpam!, turn off NoSpam! for guest searches in the Admin CP. If you don't, then there appears to be a problem with NoSpam!'s automatic disabling of Quick Search. Is your forum definitely running vBulletin 3.6.x? And what sort of server error are you getting when you try to register? Just saying you get a server error doesn't tell me anything.

littlematts 02-11-2007 05:43 PM

Quote:

Originally Posted by antialiasis (Post 1180022)
blogtorank: I appreciate the effort to help, but using presets of any sort completely defeats the point of NoSpam!. If people start using math problems or "Please type [word] into the following box" in that exact format en masse, it allows spambots to just be programmed with the rule and then extract the numbers/word from the question to insert it. The strength of NoSpam! lies in the impossibility of mechanically predicting for any given forum that uses the hack what the answer to the question might be, which is the reason NoSpam! does not come with any default questions.

littlematts: Um, obviously you shouldn't be surprised if integration instructions for 3.0 aren't working when you're using 2.0. o_O Just upgrade the hack, and that's all there is to it. Not caching the nospam template had nothing to with it; for one thing, templates still work even if they're not cached (but require an additional query), and for another, the nospam template is not used for the QuickRegister integration.

familyhistory: If you want guests to be able to search without NoSpam!, turn off NoSpam! for guest searches in the Admin CP. If you don't, then there appears to be a problem with NoSpam!'s automatic disabling of Quick Search. Is your forum definitely running vBulletin 3.6.x? And what sort of server error are you getting when you try to register? Just saying you get a server error doesn't tell me anything.

thanks lots for the reply mate.. and sorry for any incon..

will make the upgrade now and be back with report..

keepin my fingers crossed..

regards
Matthew

littlematts 02-11-2007 06:06 PM

Hia dude..

I am back.. :D

tried upgrade to 3 and now the answer box appear without removing the "IF" condition.. ie; integration works.. but still the question is nowhere to be found :(

I tried it with removing :
PHP Code:

<if condition="$vbulletin->options['nospam_onoff'] AND $vbulletin->options['nospam_use_reg']">
    <
br />$nospamquestion 
  
</if> 

to see if the question appear or if any space limit is blocking it.. but to no avail.. the question is not getting displayed even now.. but to say it works perfect with main register page

Matthew



also tried with the main page calling code in the quick register page
ie; changed the code of quick register to look like :

PHP Code:

<if condition="$vbulletin->options['nospam_onoff'] AND $vbulletin->options['nospam_use_reg']">
<
table cellpadding="0" cellspacing="$stylevar[formspacer]border="0" width="400">
    <
tr>
        <
td colspan="2">$nospamquestion</td>
    </
tr>
    <
tr>
        <
td>
                        <
input type="hidden" name="nospamnumber" value="$nospamnumber/>
            <
input type="text" class="bginput" name="nospam" size="25" />
        </
td>
    </
tr>
    </
table>
</if> 

but still the question is missing from displayed.. do we need any change to the integration code to get the question displayed in quick register form?

sorry to bug u ...
thanks lots for your cooperation buddy

Matthew

antialiasis 02-11-2007 07:09 PM

Can you give me the code of your "Generate and insert NoSpam! question" plugin on global_start?

littlematts 02-11-2007 09:01 PM

Quote:

Originally Posted by antialiasis (Post 1180107)
Can you give me the code of your "Generate and insert NoSpam! question" plugin on global_start?

sure mate..

Here it is for the reference..

PHP Code:

if ($vbulletin->options['nospam_onoff'] AND !$vbulletin->userinfo['userid'])
{
   switch (
THIS_SCRIPT) {
      case 
'register':
         if (
$vbulletin->options['nospam_use_reg']) {
            
$thetemplate =& $vbulletin->templatecache['register'];
            
$nospamdo true;
         }
         break;
      case 
'sendmessage':
         if (
$vbulletin->options['nospam_use_contactus']) {
            
$thetemplate =& $vbulletin->templatecache['contactus'];
            
$nospamdo true;
         }
         break;
      case 
'search':
         if (
$vbulletin->options['nospam_use_search']) {
            
$vbulletin->templatecache['search_forums'] = str_replace(array('$imagereg</td>''($imagereg)'), array('$nospamfield\n\n$imagereg</td>''($imagereg OR ($vbulletin->options[\'nospam_onoff\'] AND $vbulletin->options[\'nospam_use_search\']))'), $vbulletin->templatecache['search_forums']);
            
$nospamdo true;
         }
         break;
      case 
'newreply':
         if (
$vbulletin->options['nospam_use_post']) {
            
$thetemplate =& $vbulletin->templatecache['newreply'];
            
$nospamdo true;
         }
         break;
      case 
'newthread':
         if (
$vbulletin->options['nospam_use_post']) {
            
$thetemplate =& $vbulletin->templatecache['newthread'];
            
$nospamdo true;
         }
         break;
      default:
         if (
$vbulletin->options['nospam_use_reg'] AND $vbulletin->options['quickregister_active']) {
            
$questions explode("\n"$vbulletin->options['nospam_questions']);
            
$nospamnumber array_rand($questions);
            
$qanda explode(":",$questions["$nospamnumber"]);
            
$nospamquestion $qanda[0];
         }
         
$nospamdo false;
   }

   if (
$thetemplate)
   {
      
$thetemplate str_replace('$imagereg''$nospamfield\n\n$imagereg'$thetemplate);
   }

   if (
$nospamdo) {
      
$questions explode("\n"$vbulletin->options['nospam_questions']);
      
$nospamnumber array_rand($questions);
      
$qanda explode(":",$questions["$nospamnumber"]);
      
$nospamquestion $qanda[0];

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


waiting for your valuable reply :)

Matthew

familyhistory 02-11-2007 09:10 PM

thanks for the reply antialiasis,

The forum version 3.6, site is here: http://www.forum.familyhistory.uk.com

Maybe you could see if there is a problem signing up. Maybe it may be something to do with my cache or cookies.....

Thanks,:)
Dave

Smoothie 02-11-2007 10:13 PM

Quote:

Originally Posted by familyhistory (Post 1180190)
thanks for the reply antialiasis,

The forum version 3.6, site is here: http://www.forum.familyhistory.uk.com

Maybe you could see if there is a problem signing up. Maybe it may be something to do with my cache or cookies.....

Thanks,:)
Dave

There's something up with your settings or templates because when you have enabled under vBulletin options-> "message searching options" -> Guest Search Image Verification, when a guest clicks search it redirects them to the advanced search page, there is no option when clicking search as a guest for the dropdown box to open when it's clicked. It has nothing to do with no spam settings.

antialiasis 02-12-2007 12:31 AM

littlematts, try replacing

PHP Code:

         if ($vbulletin->options['nospam_use_reg'] AND $vbulletin->options['quickregister_active']) {
            
$questions explode("\n"$vbulletin->options['nospam_questions']);
            
$nospamnumber array_rand($questions);
            
$qanda explode(":",$questions["$nospamnumber"]);
            
$nospamquestion $qanda[0];
         } 

with just

PHP Code:

         $questions explode("\n"$vbulletin->options['nospam_questions']);
         
$nospamnumber array_rand($questions);
         
$qanda explode(":",$questions["$nospamnumber"]);
         
$nospamquestion $qanda[0]; 

Then tell me if it works then.

familyhistory: Registration works fine for me. About the search, yes, I think Smoothie hits the nail on the head - it sounds like there's something up with your navbar template. Did you keep an old template unreverted after upgrading to 3.6 or something like that?

littlematts 02-12-2007 08:17 AM

Quote:

Originally Posted by antialiasis (Post 1180306)
littlematts, try replacing

PHP Code:

         if ($vbulletin->options['nospam_use_reg'] AND $vbulletin->options['quickregister_active']) {
            
$questions explode("\n"$vbulletin->options['nospam_questions']);
            
$nospamnumber array_rand($questions);
            
$qanda explode(":",$questions["$nospamnumber"]);
            
$nospamquestion $qanda[0];
         } 

with just

PHP Code:

         $questions explode("\n"$vbulletin->options['nospam_questions']);
         
$nospamnumber array_rand($questions);
         
$qanda explode(":",$questions["$nospamnumber"]);
         
$nospamquestion $qanda[0]; 

Then tell me if it works then.

familyhistory: Registration works fine for me. About the search, yes, I think Smoothie hits the nail on the head - it sounds like there's something up with your navbar template. Did you keep an old template unreverted after upgrading to 3.6 or something like that?


hia buddy.. tried with the same and following alteration but to no avail.. sorry for any mistaken trial ... coz i am not good in coding..

Trial 1:
PHP Code:

default:
          {
          
$questions explode("\n"$vbulletin->options['nospam_questions']);
         
$nospamnumber array_rand($questions);
         
$qanda explode(":",$questions["$nospamnumber"]);
         
$nospamquestion $qanda[0]; 
         } 

Result: No Luck.

Traial2:
PHP Code:

default:
         if 
$vbulletin->options['quickregister_active']) {
         
$questions explode("\n"$vbulletin->options['nospam_questions']);
         
$nospamnumber array_rand($questions);
         
$qanda explode(":",$questions["$nospamnumber"]);
         
$nospamquestion $qanda[0];
         }
         
$nospamdo false;
   } 

Result: No Luck

:( donno what issue with my case.. are u getting the result when tried testing?
do u want me to try any other combination buddy.. i will be only happy to.. coz the nospam mod is much useful than captcha verification as per my view..

regards
Matthew

phill2003 02-12-2007 10:38 AM

Quote:

Originally Posted by littlematts (Post 1178562)
First of all let me thank you antialiasis for your great mod you provided.

I installed your mod on my vbull forum vBulletin? v3.6.4 and it is working perfect with the registration page..

but the issue i face is with integration.. I am not able to integrate the same with Quick Register Ver: 1.6.3 installed along. The question itself is not showing up. I have tried updating the script as specified by you in integration details page but to no avail.



regards
Matthew

I had the same problem as you (if you look back in the thread I have posted a couple of times but got no joy) anyway I have fixed my issue and by the looks of things it may help you as you seem to be having the exact problem i was having...


To fix mine I inserted some code into the quickregister plugin.

in the quick register plugin at global start look for this
Code:

$show['guest'] = true;
and above that place this
Code:


if ($vbulletin->options['nospam_use_reg'] AND $vbulletin->options['quickregister_active']) {
            $questions = explode("\n", $vbulletin->options['nospam_questions']);
            $nospamnumber = array_rand($questions);
            $qanda = explode(":",$questions["$nospamnumber"]);
            $nospamquestion = $qanda[0];
        }


This when applied to my quick register plugin got the question to appear as well as the box for the answer :)

I hope this fixs your issue as the nospam hack is IMO one of if not the best hack on vbulletin.org and I was disappointed that it would not work on my quick register which also is a must have for increased registrations.

It might be an idea to whack this in the readme for others in the same situation :) if there are any.

blogtorank 02-12-2007 12:10 PM

Quote:

Originally Posted by antialiasis (Post 1180022)
blogtorank: I appreciate the effort to help, but using presets of any sort completely defeats the point of NoSpam!. If people start using math problems or "Please type [word] into the following box" in that exact format en masse, it allows spambots to just be programmed with the rule and then extract the numbers/word from the question to insert it. The strength of NoSpam! lies in the impossibility of mechanically predicting for any given forum that uses the hack what the answer to the question might be, which is the reason NoSpam! does not come with any default questions.

Gotcha, and thought to pass these onto others to add-in with their existing ones :) Thanks for explanation as well!

Eagle Creek 02-12-2007 12:44 PM

Quote:

I think I like it BUT:
Quote:

Or you can go with inserting a simple image with HTML and ask what is shown on the image.
Isn't this the same as the CAPTCHA then???
antialiasis, what about this?
Why can't spambots read this and they can read a normal image?

antialiasis 02-12-2007 03:50 PM

Because CAPTCHA images are computer-generated images containing letters and/or numbers with varying amount of distortion. Computerized pattern recognition programs can be programmed to read the distorted letters in CAPTCHA images without much trouble, but identifying an object in an image is a dramatically more difficult task requiring far more elaborate, advanced AI.

Say you took your avatar and asked in NoSpam! what that image shows. The average human should without too much trouble be able to answer "eagle". However, a computer doesn't have years of experience of looking at pictures of animals and eagles with a mind-numbingly elaborate neural network that specializes in recognizing objects such as animals in visual data, and thus it will not have any idea what the heck your avatar is. Letters are simple patterns that a bot can be programmed to recognize; recognizing 3-D objects in 2-D images from any angle is something that we humans have been specializing ourselves in for millions of years of evolutionary history and a varying number of years of personal experience. Not to mention that the bot would have to keep a database of rules to recognize an absolutely astronomical number of objects in order to be able to take on an arbitrary image with no clue whatsoever as to what it contains. Artificial intelligence just can't do it, at least not yet.

littlematts, you did it wrong on both trials. :/ Replace exactly what I told you with exactly what I told you. Or do what phill2003 did, since it worked for him. It works fine with my original instructions on my test forum; maybe it's a matter of different PHP versions or something. =/

littlematts 02-12-2007 08:19 PM

Quote:

Originally Posted by phill2003 (Post 1180525)
I had the same problem as you (if you look back in the thread I have posted a couple of times but got no joy) anyway I have fixed my issue and by the looks of things it may help you as you seem to be having the exact problem i was having...


To fix mine I inserted some code into the quickregister plugin.

in the quick register plugin at global start look for this
Code:

$show['guest'] = true;
and above that place this
Code:


if ($vbulletin->options['nospam_use_reg'] AND $vbulletin->options['quickregister_active']) {
            $questions = explode("\n", $vbulletin->options['nospam_questions']);
            $nospamnumber = array_rand($questions);
            $qanda = explode(":",$questions["$nospamnumber"]);
            $nospamquestion = $qanda[0];
        }


This when applied to my quick register plugin got the question to appear as well as the box for the answer :)

I hope this fixs your issue as the nospam hack is IMO one of if not the best hack on vbulletin.org and I was disappointed that it would not work on my quick register which also is a must have for increased registrations.

It might be an idea to whack this in the readme for others in the same situation :) if there are any.


:up: :) :up: :) :up: :)

I dont know.. if a million thanks will reply for this suggestionu gave me.. coz it simply worked!! THANKS mate.. Thanks lotttts.. phill2003

I am soo happy to see people here are soo kind enough to support others to guide them out of trouble..

and my thanks to antialiasis too for the great mod and support.. infact i got to say he tried his best to get me out of this delemma..

antialiasis, i think we should change the integraton details in txt file provided along.. ask users to use ver3 along with the integration method suggested by phill2003

Thank you both.. my joy of success find no limit dudes..

You guys simply rocks..

Matthew

blankoboy 02-13-2007 04:37 AM

I was just going to suggest that adding more than one answer for a question would be a great feature to make this mod really shine. But...low and behold antialiasis already had this feature implemented (along with case insensitive option). You are the man and this mod has my vote for MOTM. Fantastic. :up: :up:

Vbulletin really ought to have this implemented as standard.

Veeb0rg 02-13-2007 11:26 AM

is there a way to get this to work with 3.0.7 vb?

Eagle Creek 02-13-2007 11:34 AM

Quote:

Originally Posted by antialiasis (Post 1180723)
Because CAPTCHA images are computer-generated images containing letters and/or numbers with varying amount of distortion. Computerized pattern recognition programs can be programmed to read the distorted letters in CAPTCHA images without much trouble, but identifying an object in an image is a dramatically more difficult task requiring far more elaborate, advanced AI.

Say you took your avatar and asked in NoSpam! what that image shows. The average human should without too much trouble be able to answer "eagle". However, a computer doesn't have years of experience of looking at pictures of animals and eagles with a mind-numbingly elaborate neural network that specializes in recognizing objects such as animals in visual data, and thus it will not have any idea what the heck your avatar is. Letters are simple patterns that a bot can be programmed to recognize; recognizing 3-D objects in 2-D images from any angle is something that we humans have been specializing ourselves in for millions of years of evolutionary history and a varying number of years of personal experience. Not to mention that the bot would have to keep a database of rules to recognize an absolutely astronomical number of objects in order to be able to take on an arbitrary image with no clue whatsoever as to what it contains. Artificial intelligence just can't do it, at least not yet.

HI,

I understand the system of images being read etc.. (very nice explanaiton btw!). But what I don't understand is this. You say:
Quote:

Or you can go with inserting a simple image with HTML and ask what is shown on the image.
Then you still have exactly the same, dont you? You present a simple image like .JPG and then it can be read? Or am I wrong understanding what you are writing :).
I will definetly going to use this hack ;).

phill2003 02-13-2007 02:03 PM

Quote:

Originally Posted by Eagle Creek (Post 1181420)
HI,


Then you still have exactly the same, dont you? You present a simple image like .JPG and then it can be read? .


No because you could use a picture of a naked chick and ask how many tits she has. the capture image wants to know what the letters and numbers are and programmes can be made to decypher that, but when you ask how hairy the biff is or how bog are the baps no programme on earth (I presume) is capable of that....

limey 02-13-2007 10:51 PM

I can't seem to get this to work with the Quick Register add on for vb 3.64.

This part of code is not in the global start section from what I can see.
Code:

$show['guest'] = true;

antialiasis 02-13-2007 11:28 PM

Veeb0rg: I'm afraid I have no experience with 3.0.x whatsoever, sorry. :/ Another coder is free to port it back if they like, though.

Eagle Creek:
Quote:

Then you still have exactly the same, dont you? You present a simple image like .JPG and then it can be read? Or am I wrong understanding what you are writing :).
No, because the simple image would contain an object that has to be recognized, not letters that can be read by applying computerized rules.

limey: If you are trying to use phill2003's solution, remember that you should be looking for that in the QuickRegister plugin, not the NoSpam! one.

Eagle Creek 02-14-2007 12:47 AM

Now I fully understand. Thanks for the explaination :).

limey 02-14-2007 04:24 AM

Thanks antialiasis...alot!

chkdgate 02-14-2007 05:36 AM

I don't know if this has been answered somewhere in the 355+ posts but will this mod also work with Allow Unregistered Users to use 'Contact Us' under contact details? Even though my settings are Yes, but verify image, I still get loads of spam. I would love to install this if that's the case.

antialiasis 02-14-2007 06:13 AM

Yes, it works with guests using Contact Us.

chkdgate 02-14-2007 07:08 AM

Awesome. Downloaded it and will install tomorrow. It's late. Thank you for this because I'm getting sick and tired of getting Penis Enlargement ads and Viagra email attacks from my site. No joke.:mad:

Veeb0rg 02-14-2007 09:20 AM

Quote:

Originally Posted by antialiasis (Post 1181928)
Veeb0rg: I'm afraid I have no experience with 3.0.x whatsoever, sorry. :/ Another coder is free to port it back if they like, though.

thanks for the reply.. I'm just tryin to get some sort of protection on this board i admin while i'm upgrading it/moving it to a new server. the spambots are out of control

d1150488 02-14-2007 05:53 PM

I can't get this to appear at all, i've tried several of the fixes, including the manual template edits. I tried restoring the tempate and product and re-tried, but with no luck :(

I've checked i've got the nospam template, i've got the reference in the reg template. I've got the hooks enabled, i've gone over and over the code, and i'm completely confused as to why it shouldn't work. I've had a good read through this thread, and i just can't find a fix :(


All times are GMT. The time now is 04:33 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.02512 seconds
  • Memory Usage 2,030KB
  • 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
  • (7)bbcode_code_printable
  • (11)bbcode_php_printable
  • (19)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
  • (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