very similer to Armageddon but it resets all post counts to 0 I tested it and it work just open note pad copy the code bellow and past it and save it as postkill.php. (I have to thank the Armageddon item without it I whould have never figured my item out)
<?php
/**********************************************************************************
* SMFShop item - Takes additional fields when adding to admin panel *
***********************************************************************************
* SMFShop: Shop MOD Item for Simple Machines Forum *
* =============================================================================== *
* Software Version: SMFShop 3.0 (Build 12) *
* $Date:: 2007-01-18 19:26:55 +1100 (Thu, 18 Jan 2007) $ *
* $Id:: postkiller.php 2007-08-25 10:06:55 pspmasterPRO $ *
* SMF Shop Software by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* SMF Shop Copyright by: DanSoft Australia (http://www.dansoftaustralia.net/)*
* Support, News, Updates at: http://www.dansoftaustralia.net/ *
* *
* Forum software by: Simple Machines (http://www.simplemachines.org) *
* Copyright 2006-2007 by: Simple Machines LLC (http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (http://www.lewismedia.com) *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version of the license can always be found at *
* http://www.simplemachines.org. *
* enjoy- pspmasterPRO (site webmaster) *
* This PHP script idea was taken from many scripts so I don't take full credit *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');
class item_postkiller extends itemTemplate {
function getItemDetails() {
$this->authorName = "pspmasterPRO";
$this->authorWeb = "http://pspmasterpro.pphnet.us";
$this->authorEmail = "E-mail hidden lolz";
$this->name = "PostKiller!";
$this->desc = "This item will reset everyones posts counts to 0 hahahah";
$this->price = 9999999999;
$this->require_input = false;
$this->can_use_item = true;
}
function onUse() {
global $db_prefix, $ID_MEMBER, $item_info;
$result = db_query("UPDATE {$db_prefix}members
SET posts = 0", __FILE__, __LINE__);
return "The power of pspmasterPRO just stole everyones post counts hahahahah.";
}
}
?>