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.
It doesn't matter how many members you have, iwhat makes the difference is how many warnings you have issued. And yes, as far as I know they will all show in one page (haven't looked in that). Now for paging, I am not sure if my knowledge will allow me to do that, I'll give it a try tomorrow morning. If I'll come up with something, I'll let you know. I'll have to create at least 30 or 40 warnings in my test system to test that, so it might take some time.
In the nopostrelatedwarnings instructions, I cannot find
PHP Code:
print_label_row("Maintain historical warnings list?<dfn>If set to No, warnings which expire or are removed, will be deleted and will not show in the user's account. <b>If this is changed from Yes to No, historical records will be deleted.</b></dfn>", '<select name="historical" class="bginput">'.$hoption.'</select>');"
Anywhere, even though I have been through every single instruction again?
In the nopostrelatedwarnings instructions, I cannot find
PHP Code:
print_label_row("Maintain historical warnings list?<dfn>If set to No, warnings which expire or are removed, will be deleted and will not show in the user's account. <b>If this is changed from Yes to No, historical records will be deleted.</b></dfn>", '<select name="historical" class="bginput">'.$hoption.'</select>');"
Anywhere, even though I have been through every single instruction again?
That's why people version their software. LoL
Please keep in mind one thing I keep saying from the beginning. I maintain this hack, for my own usage, so some times, I do some changes which do not get to the public. Then, when someone else asks for some additional thing, the old part creeps up out of nowhere.
In any case, here are the files that I use, they have all the options. You may try them.
It worked perfectly. I ended up using anonymous email after all as some of my mods have email addresses they don't want made public. For folks using Zero Tolerance's version this is what was done:
Find:
Code:
// Send PM!! =D
$messageb="You have been warned for the post: }/showthread.php?p={$_POST['post']}]Your Post. Your warning level is now: {$level}. This action was taken for the following reason: {$_POST['comment']}. Please reply back if you have a dispute. {$bbuserinfo[username]}";
$messageb=ParseInput($messageb);
$title="You have been warned";
$to=$user['userid'];
$from=$bbuserinfo['userid'];
SendPM($messageb,$title,$to,$from);
// Redirect
X is the email address of the anonymous warning account you create. I made mine a do_not_reply email and direct users in the template to refer to their PM and View My Warnings page if they want to discuss the warning with the person who issued it.
Y is the username for the account.
All my old warning types are no longer visable with some changes? Without going to much trouble, is there any warning type DB update I missed that may cause this?
All my old warning types are no longer visable with some changes? Without going to much trouble, is there any warning type DB update I missed that may cause this?
PS: Many more thanks sv1
No, there are no changes which may cause your old warnings to vanish. Check them out with an SQL Query, something like " select * from `warnings` ".
Or to be more precise, there might be something. The fact that I am using "active" and "inactive" warnings, in other words, I keep historical records. Check your warnings with the SQL above. If they are there, and they do not appear in the View Warnings, I'll explain what you have to do to see them again.
No the warn_type, if set to Yes, means it is a post-related warning, if set to No, it is a non-post related one. If you upgraded to the latest version I posted, you have to go to the AdminCP and edit your warning types accordingly.
For the warnings not showing, the thing is, there is a column in the warnings table, called warned_status. If this is empty in your records, they may not show up in the View Warnings. You have to fill them in with the letter 'A'. In other words, run this query: