Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

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

Category: Moderators Functions - Version: 3.7.1 Rating:
Released: 06-21-2008 Last Update: 06-21-2008 Installs: 206
Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

This is an updated version of my previous extension, Spam Decimator 1.0.x. This is for vB versions 3.7.0 and up. It may work with 3.6.8PL2 and up, but I cannot confirm this.

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)

-NEW! Delete any spam comments and log them as well.

-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 and import the product file, and voila! you're done and ready to take on any spammer who comes your way.

***NOTE: if template hooks do not work for you, see the install file included in the package for instructions.

Other Stuff

**UPDATED!!!

Tested and functioning with vBulletin 3.7.1. I make no guarantees about compatibility with other versions.

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

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.

1.5.0 - Added post count limit to be decimatable, added plugin to control display of Decimator button. Fixed minor issues, rewrote several functions for improved performance.

1.5.1 - Fixed bugs, added vBulletin blog comment compatibility.

-RD

Show Your Support

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

Comments
  #2  
Old 06-22-2008, 06:24 PM
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great!
Reply With Quote
  #3  
Old 06-22-2008, 06:34 PM
cafenetland cafenetland is offline
 
Join Date: Jan 2008
Location: Sweden
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screens please
Reply With Quote
  #4  
Old 06-22-2008, 06:38 PM
RaidenDAWG2 RaidenDAWG2 is offline
 
Join Date: Mar 2005
Location: THE Ohio State University
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cafenetland View Post
screens please
Uploaded...albeit, the screens are from an earlier version that hasn't changed all that much since.
Reply With Quote
  #5  
Old 06-22-2008, 06:40 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="DarkOrange">*tagged</font>
Reply With Quote
  #6  
Old 06-22-2008, 06:49 PM
cafenetland cafenetland is offline
 
Join Date: Jan 2008
Location: Sweden
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaidenDAWG2 View Post
Uploaded...albeit, the screens are from an earlier version that hasn't changed all that much since.

thx..

i already installed before u added screens

very usefull hack

clicked instaled.
Reply With Quote
  #7  
Old 06-22-2008, 06:52 PM
Il Pompa Il Pompa is offline
 
Join Date: May 2008
Location: Italy
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great:up:
Reply With Quote
  #8  
Old 06-22-2008, 07:00 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!

regards

macc
Reply With Quote
  #9  
Old 06-22-2008, 09:24 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I noticed this didn't work using additional usergroups; only primary. So I made a couple minor changes to cache the $decimators and the users memgroupids.

Code:
global $candecimate;
global $vbulletin;
global $decimators, $allowedids;

if($vbulletin->options['sd_enabled'])
{
    $candecimate = false;
    
    if ( !$decimators )
    {
        $modgroups = explode(",", $vbulletin->options['modgroupid']);
        $supergroups = explode(",", $vbulletin->options['supermodid']);
        $admingroups = explode(",", $vbulletin->options['adminid']);
        $decimators = array_merge($admingroups,$modgroups,$supergroups);

        $ids = $vbulletin->userinfo['usergroupid'];
        if ( $vbulletin->userinfo['membergroupids'] != "" ) $ids .= ",". $vbulletin->userinfo['membergroupids'];
        
        $allowedids = explode( ",", $ids );
    }
        
    if(!in_array($post['usergroupid'], $decimators))
    {
          foreach( $allowedids AS $allowedid )
          {
              if(in_array($allowedid, $decimators))
              {
                    if($vbulletin->options['sd_postmax'] > 0)
                    {
                        if($post['posts'] < $vbulletin->options['sd_postmax'])
                        {
                             $candecimate = true;
                        }
                    }
                    else
                    {
                        $candecimate = true;
                    }
              }
          }
    }
}
else
{
    $candecimate = false;
}

if($candecimate)
{
    $template_hook['postbit_controls'] .= "<a href=\"#\" onclick=\"window.open('decimator.php?userid=$post[userid]&amp;threadid=$post[threadid]&amp;postid=$post[postid]','spam_decimator','statusbar=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=800,height=600'); return false;\"><img src=\"images/misc/spambutton.gif\" alt=\"Spam Decimator\" border=\"0\"></a>";
}
Reply With Quote
  #10  
Old 06-22-2008, 10:12 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello!

where to put this code in above post?

regards

macc
Reply With Quote
Reply


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 11:45 PM.


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.09180 seconds
  • Memory Usage 2,302KB
  • Queries Executed 23 (?)
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
  • (2)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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