The Arcive of vBulletin Modifications Site. |
|
Spam Decimator Details »»
|
|||||||||||||||||||||||||
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
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Great!
|
|
#3
|
|||
|
|||
|
screens please
|
|
#4
|
|||
|
|||
|
Uploaded...albeit, the screens are from an earlier version that hasn't changed all that much since.
|
|
#5
|
|||
|
|||
|
<font color="DarkOrange">*tagged</font>
|
|
#6
|
|||
|
|||
|
Quote:
thx.. i already installed before u added screens very usefull hack clicked instaled. |
|
#7
|
|||
|
|||
|
great:up:
|
|
#8
|
||||
|
||||
|
Thanks!
regards macc |
|
#9
|
||||
|
||||
|
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]&threadid=$post[threadid]&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>";
}
|
|
#10
|
||||
|
||||
|
hello!
where to put this code in above post? regards macc |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|