Version: 1.00, by Beorn
Developer Last Online: Feb 2006
Version: 2.3.x
Rating:
Released: 05-30-2003
Last Update: Never
Installs: 66
No support by the author.
Hello all. This is a sort of alternative to g-force2k2's Warnings System Hack. He gets all credit for the idea.
Before anyone starts to accuse me of trying to steal his glory, let me explain. The admin of a well sized board that I super-mod asked me to revise g-force2k2's warning system (it was already installed). I downloaded it, looked through it, and decided that I couldn't: he requested that people respect his hack, and not modify it. So, I didn't, and decided to take a swing at it. Since people don't like change, I made it look the same as the original, but work differently.
Features:
Expireable warnings. Each warning type has a default length and value. (can turn this off too)
Warning values can be selected by issuer as per severity of the offense. This can be disabled by the administrator; the default value of warning will be used.
Warning lengths can be selected by issuer as per severity of the offense. This can be disabled by the administrator; the default length of warning will be used.
Relatively quick install: a few file mods, template mods, and then running a script.
Email on warning option (Never, Issuer's choice, Always)
PM on warning option (Never, Issuer's choice, Always)
Email on banning option (yes, no)
Changeable banning threshold
Which usergroups can warn, which can view the sum, which can view all the warnings
Mostly template driven
Add, remove, edit warnings
Add, remove, edit warning types
Stronger admin interface.
That's all I can think of now....
Stats:
Queries added per page: 0
Queries modified: 3 (indirectly: $templatesused needs to be modified)
Queries extra per day: 3+ceil(TheNumberOfUsersWithPointsExpiringToday/10)
Files to modify: 3
Files to add: 3
Install time: 10-15 minutes
Stipulations
Support requests will take a bit (a day or two) to reply due to a somewhat tight schedule.
Please click Install if you use it
DO NOT install this if you have g-force2k2's hack in place. USE THE UPGRADE if you have g-force2k2's hack installed
The package is attached. Screenshots are zipped next. Please click install if you use it.
If you are upgrading from g-force2k2's verison, use MWS-Upgrade.txt, and warn-upgrade.php.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
The only thing that I can think may be causing it is a few queries running that shouldn't be.
Open global.php. Find:
PHP Code:
if($today > $last_warn_update && $WarnOnOff) {
Add after it, but put in your e-mail address:
PHP Code:
mail("my@emailaddress.com","Updating","Updating warnings at timestamp: ".time());
Upload the file, browse your forums for 5 minutes, then reupload the file without that line. If that is where the problem is, you should get a bunch of e-mails. If not, you won't. Let me know what the result is.
08-15-03 at 01:20 PM Beorn said this in Post #76 I'm not sure what the problem is. Change the while line to the about 20 lines provided in the hacking instructions...
if i am to understand correctly i would change this code
PHP Code:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}