![]() |
Warning Hack V1.5
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 |
Best warning system ever for vB3. Simple install and extremely effective!
/me hits install EDIT: SCREENIES HERE! |
i have erwins version installed is there a way to easily upgrade from it ?
|
This isnt an upgrade from it im afraid, this is a completely new version
I too had erwins version installed, i just manually removed it by reversing the install steps Update: File has been re-uploaded, anyone that installed before this post, just re-download, and re-upload Warn.php - Zero Tolerance |
on vb2 i had mikes version installed is this hack as good as the vb2 versions
|
No idea, ive never had vb2, lol
But i assure you its all you need for a warning system, imo a lot betetr than Erwins - Zero Tolerance |
check this please to get what am chatting about ps i'll pm coz i want to know about your rpg an all
https://vborg.vbsupport.ru/showthrea...highlight=mike |
this is really awesome, but what usergroup are users banned into, or can you choose which usergroup they are banned into?
|
screenies please
|
Great hack will be very usefull!!
|
ok i see in warn.php they are moved to usergroup 8 by default. I changed this to my banned usergroup.
|
Quote:
|
one last thing. I have it set to ban my users for 5 days, but when I go to view banned users, it says permenent, and when I use the Unban Banned Users function, it doesn't unban the user who was banned as a result of the warning system
|
this is just like gforce's good old hack, thanx heaps ZT.
I was wonderin if you could display the warning level on the postbit, you know how i like to do things lol. Muhc quicker to reference the points if you can just see it from the thread. thx heaps for it. Can you make it so members can view warnings but not warn? It's kinda pointless if the members can't see where they are on the wraning scale and all start +++++ing when they are banned. Edit: I got a database error when issuing a warning. Code:
Database error in vBulletin 3.0.0: |
Also, please hurry up and figure out how I can change permissions so those who I specify cannot see the Warn User link!!! :)
|
I do have a problem where an exclamation point in the Notification PM is not being parsed correctly.
|
Quote:
Code:
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[musername]'s Warnings</a> Code:
<if condition="$bbuserinfo['usergroupid'] == '6'"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[musername]'s Warnings</a> ?</if> |
How can I allow multiple usergroups, Administrators, Moderators, and Super Moderators?
|
just guessing but try this
HTML Code:
<if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])"><a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[musername]</a> ? <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[musername]'s Warnings</a> ?</if> |
sounds good, any screenshots?
|
Error on Pm input? Then you have modified the table structure, but no worries, that can be, shall we say, rectified
Find: PHP Code:
PHP Code:
As for unbanning, it only unbans those "auto" banned by the system, and running the unbaned users only unbans those past the time lmit specified when they were banned - Zero Tolerance |
Ok i've attached some screenies to my first post (right below the first post) to keep you all happy. ;)
|
Cool, I'll install this tonight and tell you my results.
Oook, I tested this on my test dumby and it works great and all, buuuuut, one small thing. He doesn't get auto banned. I might of missed something, but once it reaches 5, it stays at five and test (my dumby account) can still post and everything. EDIT: Ok, I fixed that problem. The thing is usergroup 8 were my RPG Moderators so they were being moved there. I edited warn.php. PHP Code:
Now, when I click the unban button... they don't move them back to the registered group. |
My only Problem, is that Only Admins and Moderators can view the user warnings. I want tha all the users to see it, and all other users (no admin or moderators) are getting the No permission screen :squareeyed:
Help please ! |
Very nice hack!
A good addition might be if you put in two values. E.g. 5 Warnings -> user is banned for 14 days and ~15 Warnings -> User is permanently banned. |
Quote:
yeh thats a great idea ie after 5 warnings they get a temporary ban and after 10 warnings a permenant ban thats an excellent idea |
Having the warnings viewable by the user (all) would make this into an awesome hack for me. Thanks for your coding!
|
is there a way to display the warning level to all users in the postbit and profile?
|
i think all the suggestions so far were options in the old vb2 hacks
with the exception of the idea in this post |
If you want members to be able to view others warnings, please make this edit within Warn.php
Find: PHP Code:
PHP Code:
Var for warning level in posts? PHP Code:
Nice suggestions so far, ill include them in version 1.5, keep em coming - Zero Tolerance |
Now all my users can see the warnings.
Thanx ;) |
i thought this might be useful its a list of what was in the warning hacks prior to vb3
Quote:
|
Quote:
|
is there any reason why i can't run both eriwn and this hack?
|
Quote:
that would just be a waste of database space i'd remove erwins the warning link the rest of the links don't require erwins hack |
g-force2k2's hack was great. I hope this one is just as good.
|
it most definitely is just as good
|
does this come with.. the opition to make a member post all invisble?
|
I'm going to install this hack, but not now.
So far, from what I can gather, you're still in the process of updating it. (that's the 'vibe' I'm getting from the replies) Also, I am waiting in hopes that you add the warning points level on the postbit, as on vB2 it was awesome to see and let others see. Saves some hassle. |
A question: will it break the system if I enter decimal numbers? I want to add warnings to lame messages, and make it give like 0.1 points...will it work?
|
All times are GMT. The time now is 07:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|