Version: 1.00, by Zero Tolerance
Developer Last Online: Nov 2023
Version: 3.0.3
Rating:
Released: 05-19-2004
Last Update: 07-12-2004
Installs: 161
No support by the author.
Version 1.5 Note: You must have v1 installed to upgrade, the upgrade process is small so there was no need to write out a fresh install.
It has come to my attention that a "decent" warning system isn't available here on vbulletin.org, which is quite a shame, and because forums like mine, and probably yours need a simple yet advanced warning system to keep things under wraps
Anyway, i thought i might aswell release what i made, prior to me getting off my ass... lol
Administration Features:
View Warning Logs
- Displays all warnings, warned user, warned by, link to the warned post, date, warning type, and the comment specified when the warning was given, and a remove warning link
(Remove will remove the log and also put the members warning level back down in accordance to how much it was increased by the selected warning removed)
Unban Banned Members
- A simple page that you should visit every few days, it will automatically ban any auto banned users by the warning system where there ban time has expired
Warning Options
- Here you can set the following:
-- Number of warn points before member is auto banned
-- Number of days a member is auto banned for
-- View Warnign Types
-- Add Warning Type
-- Add warning type has the following fields:
---- Name/Description/Warn Points Given
Forum Features:
Every post has "Warn [Name]" and "View [Names] Warnings"
These are only accessiable by a member group which is allowed to "moderate" (Moderating groups are auto detected)
Clicking the Warn link will bring you to a page where you view the user your warning, a link to review the warned post, members current warning level, and below the warning types, has a drop down menu to select the warning type, and a text field to put your comment for why this warning is been issued
Upon completing the warning form, the warned user will be Pm'ed from the person who warned them, with the comment put down and a link to the post
View Warnings link will display logs of only that specified user's warnings, the same features as the admin cp warning logs, only just for this user
Members can access only 1 page of the warning system, which is "View My Warnings", this link is added to the quick links drop down menu
Here they simple view there warnings, just like a moderator would, only without the remove warning link
V1.5 Features:
Protectable Usergroups:
No user's in these defined groups can be warned, or banned.
Root Admin Force Protection:
Userid 1 cannot be warned, canned be banned, this is not optional, this is forced for security.
New Unban Members Set Up:
Now displays all currently banned user's, what time they were banned, what time they are supposed to be unbanned. You may unban the user even if there time has not expired (You will be notificed if they have not served the time issued upon ban, but not stopped). Upon unbanning, you choose the members 'new' warning level and the user's usergroup to move them into
Set banned usergroup:
You can now easily choose from a drop down menu which usergroup user's are sent to if after been warned they are banned.
V1.5 Bug Fixes:
- User locations in 'Users online' shown as unknown if they are warning/viewing warnings (Priority: Medium)
- Unban members system renovated and now fully works (Priotity: Maximum)
- No mysql errors upon sending a pm if the PM table had been altered (Priotity: Maximum)
- New protectable usergroups to stop any group of your choice been banned (Priotity: Maximum)
- Last time visited didn't appear when error page occured (Priotity: Low)
- Un-used global in PM function (Priority: Low)
I hope you enjoy the system, my staff teamare very pleased with it and find it of great use, enjoy the hack
- Zero Tolerance
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Could you make it possible for the next release to add warning permissions by usergroup? That would help so only mods, supermods and admins could warn users.
This feature is already there, I think, in version 1.5, in the form of protected groups. Also, my hack takes this into consideration, as far as which members see the "Warn XYZ" link.
One feature I thought would be interesting, is the history of the warnings a user has received. As the hack was until now, a user might have received 100 warnings, which have matured, and were not displayed anywhere. I am sure the moderators would like to know the past history, so I did some changes to include the past history in the whole thing.
The records in the warnings table, are no longer deleted, when the maturity period expires or the mods/admins remove a warning, they are just marked as "Inactive". In that way when a mod/admin asks to see the warnings of a user, he sees not only the ones which are currently active, but also the ones which got matured (and thus removed automatically) or deleted. The inactive warnings are shown with lighter letters than the active ones, when one asks to see the warnings., so they are easily distinguished.
The new feature requires changes in Warn.php, in includes/cron/kill_warns.php and in some templates. It also requires that you add another field in your warnings table. This time, I provided accurate step-by-step instructions, in the attached text file, but remember that they are based on my files released in this post.
I've also included a screenshot of how the inactive warnings look like.
Guys, if some of you are using my modified hack, please post a note here, as I have no idea if you do like me adding features or you would prefer me to go do some other things.
Small update (Tuesday, October 12th): If you do the mods included in this post, to use the historical aspect of warnings, the included admin_warn.php is better, so you might want to use that as well.
If you have done the mods suggested in https://vborg.vbsupport.ru/showpost....&postcount=303, you may change the template warn_addwarn, with this new one, it just improves on the functionality, opening all links in new browser windows.
This should be the contents of your warn_addwarn template:
PHP Code:
<form action="Warn.php" method="post">
<input type="hidden" name="do" value="DoWarnUser">
<input type="hidden" name="id" value="{$_GET['id']}">
<input type="hidden" name="post" value="{$_GET['post']}">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="2">Warning User $user[username]<div class="smallfont">All links below, will open a new browser window, close it to return here.</div></td>
</tr>
<tr>
<td class="alt1">User Info:</td>
<td class="alt1">
<a href="member.php?u=$_GET[id]" onclick="window.open('member.php?u=$_GET[id]}','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">User Profile for $user[username] - User ID: $_GET[id]</a><br />
<if condition="$user[warning_level]>0">
<Font color="red">User Current Warning Level: {$user['warning_level']}</font><br />
<a href="Warn.php?do=ViewWarnings&id=$user[userid]" onclick="window.open('Warn.php?do=ViewWarnings&id=$user[userid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">View Existing Warnings for $user[username]</a>
</if>
</td>
</tr>
<tr>
<td class="alt2">Warned Post:</td>
<td class="alt2">
<a href="showthread.php?p=$_GET[post]" onclick="window.open('showthread.php?p=$_GET[post]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank">Review Warned Post, Post ID: $_GET[post]</a>
...as I have no idea if you do like me adding features or you would prefer me to go do some other things.
I, for one, look at each of your mods with great anticipation. You've been able to take this hack to another level. Keep up the good work. I know that I'll be giving you a ton of feedback once I start really messing with this hack on my test server.
does anyone know who i would go about getting the amount of warning points to go in the profile?
ive seen it on a forum so basically you dont have to click view warnings cos it shows amount of warning points in red bold text
any ideas?
dean
Dean,
You have to modify the memberinfo template to have the warning points shown in there. But you can also have it in each and every post of every member, by altering the postbit/postbit_legacy template.