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)

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.


All times are GMT. The time now is 11:40 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.01918 seconds
  • Memory Usage 1,817KB
  • 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
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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