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)

ETDC 10-05-2007 09:39 PM

Quote:

Originally Posted by Traxdata (Post 1353682)
Most effective and important hack since ever.

Couldn't agree more. I could live without the rest but not this one.

Sticky!

hjmaier 10-09-2007 06:01 AM

Some of my members reported, that they don't get the No-Spam input fields during registration using Firefox (actual version). With IE it works for them. They say, that they have no plug in installed. Strangely, only some of the users get this error. For example, if i try to register using firefox it works fine.

Does anyone have similiar experiences?

Best regards
hj

tedp 10-11-2007 01:02 PM

Great mod on 3.6.8

Thank you

Ted

caliman 11-05-2007 12:23 AM

I love this mod.
I have an old version.
The new version says it will work on other pages, would that include my phpportal's feedback page? That would be awesome.

Also, please note, spammers have figured out math questions like the one shown in the example. Use something else. Trust me. I had to change mine. Since then, no spam.

class101 11-05-2007 12:34 AM

Quote:

Originally Posted by caliman (Post 1375934)
Also, please note, spammers have figured out math questions like the one shown in the example. Use something else. Trust me. I had to change mine. Since then, no spam.

Interesting doctor, looks like theses specimens have a brain :)

caliman 11-05-2007 02:56 PM

Indeed!

SOL-R 11-06-2007 07:22 PM

Hi, I installed this on my test board but I am getting two questions. It is the same question but a duplicate right below the first one.

Did I install it wrong or ??? Thoughts?

Thanks

R.

guptadogg 11-10-2007 04:42 AM

it shows the ? on the quick register mod, on my homepage, but even If I put in the correct answer to quick register takes me to regular register where i have to put in all the info back again

class101 11-10-2007 10:35 AM

I have allowed anonymous posting in my blog and would like to add te nospam question in addition to the visual captcha already present, adding $nospamfield in the blog_comment_editor template worked fine, I see the nospam field , however no check is made inside, I do not anwser the question and the post is still allowed, any idea what is wrong ?

class101 11-10-2007 11:31 AM

Ok here is how I got it working on my custom page , here its blog_post

all is made in the plugin manager, no template edit required finally because from the plugin wich is caching the templates ,it's positioning the Nospam box just up the visual captcha.

1) Edit the Nospam plugin called "Generate and insert NoSpam! question"

FIND


PHP Code:

     default:
           
$nospamdo false

ADD BEFORE

PHP Code:

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

2) Edit the Nospam plugin called "Cache the NoSpam! template"

FIND

PHP Code:

      case 'sendmessage':
         if (
$vbulletin->options['nospam_use_contactus']) {
            
$actiontemplates['contactus'][] = 'nospam';
         }
      break; 

ADD AFTER

PHP Code:

      case 'blog_post':
         if (
$vbulletin->options['nospam_onoff']) {
            
$actiontemplates['blog_comment_editor'][] = 'nospam';
         }
      break; 

3) And finally create the new plugin that will check response validity, name it as you wish, select the hook location called "blog_post_updatecomment_start" and enter this new code

PHP Code:

$vbulletin->input->clean_array_gpc('p', array(
      
'nospamnumber' => TYPE_UINT,
      
'nospam' => TYPE_STR,
));

if (
$vbulletin->options['nospam_onoff'] AND !$vbulletin->userinfo['userid'])
{
   
$nospamnumber $vbulletin->GPC['nospamnumber'];
   
$questions explode("\n"$vbulletin->options['nospam_questions']);
   
$qanda explode(":"strtolower($questions["$nospamnumber"]));
   unset(
$qanda[0]);

   function 
trim_array(&$answer)
   {
      
$answer trim($answer);
   }

   
array_walk($qanda'trim_array');

   if (!
in_array(strtolower(trim($vbulletin->GPC['nospam'])), $qanda))
   {
      eval(
standard_error(fetch_error('nospam_wrong_answer')));
   }


There is just the visual option settings not implemented in the admincp vboption, it will just check if nospam is on or off and if the user is guest like Nospam does on other pages but does the job very well hehe now I can allow guest blog comments without caring if the vb visual captcha gets break , hope that helps


All times are GMT. The time now is 12:53 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.03146 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)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