vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Making a SpamCatcher (https://vborg.vbsupport.ru/showthread.php?t=154856)

Knippschild 08-10-2007 01:51 PM

Making a SpamCatcher
 
Well instead of harassing users at registration/login/search, I decided to only do the registration CAPTCHA and detection of spam material in the users first two posts.

Here's how it works, when a new user makes their first two posts, the contents of their message are REGEX'd for certain patterns and keywords.

I'm still rather new to vBulletin modifications, but I know PHP quite well.

I'm not 100% positive how to use data managers, but when I did, nothing happened. Here's what I want to happen

When they are considered a spam bot, their post is set to unapproved and the user is banned, and put in a special usergroup (so we can track possible false-positives)

The current method that does work is a direct SQL query (setting visible = 0 where postid = $post['postid']). But this does not update the "Last Post:"

Any advice?

I had a thought, what if I changed my hook to

_process rather than _complete, then I modify the $post array so that

$post['visible'] = 0;

I'm not sure if I could do this or if I would be forced to use a datamanager, But i'm very unfamiliar with datamans as of yet.

Needsome help.


All times are GMT. The time now is 06:10 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.01030 seconds
  • Memory Usage 1,700KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete