Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Spam Decimator Version 1.0.5 Details »»
Spam Decimator Version 1.0.5
Version: 1.0.5, by RaidenDAWG2 RaidenDAWG2 is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 08-06-2005 Last Update: 06-21-2008 Installs: 121
Uses Plugins Template Edits
Additional Files  
No support by the author.

First of all, credit for the idea goes to zsdave, with his Spam Killer 3000 hack (https://vborg.vbsupport.ru/showthread.php?t=76503)

That being said, this is a slightly more powerful 3.5 version of that rewritten from scratch.

Features Include:

-Ban a spammer with two clicks.

-Delete all threads by a user (soft or permanent, ACP configurable)

-Delete all posts by a user (again, soft or permanent, choice is yours)

-Permit or deny mod/super mod access through ACP

-Email the spammer saying pretty much haha, caught you sucker (default email can be configured using ACP)

-Email the webmaster informing him/her of the attack

-Option to move all soft deleted threads to a specified forum (for safe keeping in case IP addresses or whatnot are later needed for legal proceedings or whatever)

Most everything here works with vB native functions (i.e. delete_thread, etc.), so forum, thread, and post counters are automatically updated.

Install

Installing is quite simple. Simply upload the included files (three of them, decimator.php, includes/functions_decimator.php, and images/misc/spambutton.gif) preserving hierarchy, do precisely ONE template edit (a copy and paste job if there ever was one ), and import the product file, and voila! you're done and ready to take on any spammer who comes your way.

Other Stuff

**UPDATED!!!

Spam Decimator 2.0.0 is slated for a late June 2008 release, with a features list to follow.\

Spam Decimator 1.5.1 for 3.7.x is posted as a vB 3.7 add on.

Thanks to everyone here at vB.org for being a fine community to be a part of. Thanks to Marco for helping me out in one of the changed variables for 3.5 threads, really helped a lot . Thanks to my staff over at Pigskin Heaven for putting up with me while I was working on this.

That's basically it. Enjoy, and as always, click install

Changes:
1.0.1 - Fixed problems with xml product file, validated for use with vB 3.5 Gold release.

1.0.2 - Fixed mod/super mod access bug as well as fixed templates for non-vB default styles.

1.0.3 - Fixed all known remaining bugs, rewrote email system to properly parse emails using native vB functions.

1.0.4 - Attempted to fix bug I can't find...updated main template.

1.0.5 - Fixed no mod access bug.

-RD

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 05-30-2008, 07:24 PM
RaidenDAWG2 RaidenDAWG2 is offline
 
Join Date: Mar 2005
Location: THE Ohio State University
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've (finally) released the 1.5.0 upgrade. Long story short, it makes use of some better backend code, as well as implementing some new options such as the long overdue multiple usergroups per permission level and a new postbit modification that utilizes a plugin that checks the user's postcount as well as permissions.

I'll take feature requests for Version 2.0 (due out late next month) through June 5th in this thread.
Reply With Quote
  #203  
Old 05-30-2008, 08:24 PM
Fraxter Fraxter is offline
 
Join Date: Jul 2007
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaidenDAWG2 View Post
I've (finally) released the 1.5.0 upgrade. Long story short, it makes use of some better backend code, as well as implementing some new options such as the long overdue multiple usergroups per permission level and a new postbit modification that utilizes a plugin that checks the user's postcount as well as permissions.

I'll take feature requests for Version 2.0 (due out late next month) through June 5th in this thread.
Thanks for the update. I will test it on 3.7, if i find any bugs i will report they.

regards
Reply With Quote
  #204  
Old 05-31-2008, 01:11 PM
MindStar MindStar is offline
 
Join Date: Jan 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaidenDAWG2 View Post
I've (finally) released the 1.5.0 upgrade. Long story short, it makes use of some better backend code, as well as implementing some new options such as the long overdue multiple usergroups per permission level and a new postbit modification that utilizes a plugin that checks the user's postcount as well as permissions.

I'll take feature requests for Version 2.0 (due out late next month) through June 5th in this thread.
I would really appreciate it if you could configure it to use the postbit hooks rather than having to edit templates; it would be one less edit to have to make each time the vB core team release a(nother) critical update that messes with the master templates
Reply With Quote
  #205  
Old 05-31-2008, 03:36 PM
RaidenDAWG2 RaidenDAWG2 is offline
 
Join Date: Mar 2005
Location: THE Ohio State University
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MindStar View Post
I would really appreciate it if you could configure it to use the postbit hooks rather than having to edit templates; it would be one less edit to have to make each time the vB core team release a(nother) critical update that messes with the master templates
Consider it done, I was researching how to pull that off last night as a matter of fact.
Reply With Quote
  #206  
Old 06-02-2008, 11:46 AM
MindStar MindStar is offline
 
Join Date: Jan 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaidenDAWG2 View Post
Consider it done, I was researching how to pull that off last night as a matter of fact.
Excellent. I'm sure you'll get more Installs and fewer support queries
Reply With Quote
  #207  
Old 06-06-2008, 08:31 AM
GuaRRand GuaRRand is offline
 
Join Date: Oct 2005
Posts: 337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried to upload the product, but i got this error

Code:
Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
	(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
	('1', '5', 'Decimator Postbit', 'postbit_display_start', 'global $candecimate;\r\nglobal $vbulletin;\r\nif($vbulletin->options[\'sd_enabled\'])\r\n{\r\n$candecimate = false;\r\n$modgroups = explode(\",\", $vbulletin->options[\'modgroupid\']);\r\n$supergroups = explode(\",\", $vbulletin->options[\'supermodid\']);\r\n$admingroups = explode(\",\", $vbulletin->options[\'adminid\']);\r\n$decimators = array_merge($admingroups,$modgroups,$supergroups);\r\nif(!in_array($post[\'usergroupid\'], $decimators))\r\n{\r\n      if(in_array($vbulletin->userinfo[\'usergroupid\'], $decimators))\r\n      {\r\n             if($post[\'posts\'] < $vbulletin->options[\'sd_postmax\'])\r\n{\r\n             $candecimate = true;\r\n}\r\n      }\r\n}\r\n}\r\nelse\r\n{\r\n$candecimate = false;\r\n}', 'spamdecimator');

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date         : Friday, June 6th 2008 @ 11:30:26 AM
Script       : http://chikens.net/admincp/plugin.php
Referrer     : http://chikens.net/admincp/plugin.php?do=productadd
IP Address   : 62.58.80.115
Username     : xxxxxxxxxxxxxxx
Classname    : xxxxxxxxxxxxxx
Reply With Quote
  #208  
Old 06-06-2008, 05:19 PM
RaidenDAWG2 RaidenDAWG2 is offline
 
Join Date: Mar 2005
Location: THE Ohio State University
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will get you a fix for that...unfortunately, I used a later version to export the XML file, which caused that particular error...

Really need to get this moved to the 3.6.x add-on's now.

-RD
Reply With Quote
  #209  
Old 06-19-2008, 05:36 AM
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if this has been reported, but you have a real problem in this. The $candecimate variable will not show up if you have a zero (0) value set for the maximum posts. Also after that fixed I realized that if it was at zero, it would throw an error from decimator.php. Both of my fixes are tested on 3.6.8.

I had to change the plugin to this:

PHP Code:
global $candecimate$vbulletin;
if(
$vbulletin->options['sd_enabled'])
{
    
$candecimate false;
    
$modgroups explode(","$vbulletin->options['modgroupid']);
    
$supergroups explode(","$vbulletin->options['supermodid']);
    
$admingroups explode(","$vbulletin->options['adminid']);
    
$decimators array_merge($admingroups,$modgroups,$supergroups);
    
    if(!
in_array($post['usergroupid'], $decimators))
    {
          if(
in_array($vbulletin->userinfo['usergroupid'], $decimators))
          {
            if(
$vbulletin->options['sd_postmax'] == '0')
            {
                
$candecimate true;
            }
            else
            {
                if(
$post['posts'] < $vbulletin->options['sd_postmax'])
                {
                    
$candecimate true;
                }
            }
          }
    }
}
else
{
    
$candecimate false;

and then in decimator.php find this:

PHP Code:
if($spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            } 
and change to this:

PHP Code:
if($vbulletin->options['sd_postmax'] > '0')
        {
            if(
$spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            }
        } 
Hope this helps others.
Reply With Quote
  #210  
Old 06-19-2008, 03:01 PM
Crono_86 Crono_86 is offline
 
Join Date: Jun 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaidenDAWG2 View Post
In this next week I hope.



I can do the current post's IP address with very little problem. Consider it added in the next update.
Was this feature added in?
Reply With Quote
  #211  
Old 06-19-2008, 08:34 PM
RaidenDAWG2 RaidenDAWG2 is offline
 
Join Date: Mar 2005
Location: THE Ohio State University
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by whitemike View Post
Not sure if this has been reported, but you have a real problem in this. The $candecimate variable will not show up if you have a zero (0) value set for the maximum posts. Also after that fixed I realized that if it was at zero, it would throw an error from decimator.php. Both of my fixes are tested on 3.6.8.

I had to change the plugin to this:

PHP Code:
global $candecimate$vbulletin;
if(
$vbulletin->options['sd_enabled'])
{
    
$candecimate false;
    
$modgroups explode(","$vbulletin->options['modgroupid']);
    
$supergroups explode(","$vbulletin->options['supermodid']);
    
$admingroups explode(","$vbulletin->options['adminid']);
    
$decimators array_merge($admingroups,$modgroups,$supergroups);
    
    if(!
in_array($post['usergroupid'], $decimators))
    {
          if(
in_array($vbulletin->userinfo['usergroupid'], $decimators))
          {
            if(
$vbulletin->options['sd_postmax'] == '0')
            {
                
$candecimate true;
            }
            else
            {
                if(
$post['posts'] < $vbulletin->options['sd_postmax'])
                {
                    
$candecimate true;
                }
            }
          }
    }
}
else
{
    
$candecimate false;

and then in decimator.php find this:

PHP Code:
if($spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            } 
and change to this:

PHP Code:
if($vbulletin->options['sd_postmax'] > '0')
        {
            if(
$spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            }
        } 
Hope this helps others.
Stupid me...it'll be fixed in the update.

Quote:
Originally Posted by Crono_86 View Post
Was this feature added in?
It can be pretty easily.

Smitty, if you see this, I'll have your feature done this weekend and I'll post an update of 1.5 with it included. Sorry it's taken me this long man.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08546 seconds
  • Memory Usage 2,360KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (6)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete