vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Moderators Functions - Spam Decimator (https://vborg.vbsupport.ru/showthread.php?t=183244)

RaidenDAWG2 06-21-2008 10:00 PM

Spam Decimator
 
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

goranbaxy 06-22-2008 06:24 PM

Great!

cafenetland 06-22-2008 06:34 PM

screens please

RaidenDAWG2 06-22-2008 06:38 PM

Quote:

Originally Posted by cafenetland (Post 1556236)
screens please

Uploaded...albeit, the screens are from an earlier version that hasn't changed all that much since.

KURTZ 06-22-2008 06:40 PM

<font color="DarkOrange">*tagged</font>

cafenetland 06-22-2008 06:49 PM

Quote:

Originally Posted by RaidenDAWG2 (Post 1556240)
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.

Il Pompa 06-22-2008 06:52 PM

great:up:

macc 06-22-2008 07:00 PM

Thanks!

regards

macc

MPDev 06-22-2008 09:24 PM

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>";
}


macc 06-22-2008 10:12 PM

hello!

where to put this code in above post?

regards

macc


All times are GMT. The time now is 11:32 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.05959 seconds
  • Memory Usage 1,744KB
  • 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)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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