Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Warning Hack V1.5 Details »»
Warning Hack V1.5
Version: 1.00, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #162  
Old 07-19-2004, 06:58 AM
bilco105 bilco105 is offline
 
Join Date: Jun 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PranK
Is there a timelimit on warning points? Theres no need for warning points to stick around for a year or two.
I don't beleive this is an option at the moment, I think it comes with v2.

But its deffinetly possible to add it into the current version
Reply With Quote
  #163  
Old 07-20-2004, 11:23 AM
pocka pocka is offline
 
Join Date: Jul 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moderate can give warn to user?
Reply With Quote
  #164  
Old 07-21-2004, 07:33 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed the original hack and the 1.5 upgrade, and for the moment, I have one small problem.

When I add a warning to a user, the drop-down menu from which one selects the warning to be applied, is too small to properly show the letters in the box.



I tried to figure out how to change that, but I am not good at this thing. So, I just replaced class="bginput" with class="smallfont" and it shows OK, but is this proper?

Also, the PM send to the user seems wierd. I believe that both the Warning Selection (Spamming) should be shown, as well as the moderator Comments (whatever additional comments the mod wants to write). See picture below



The strange characters is because I wrote "Don't do that again", the apostrophe seems to create havoc.

Another question. I have modified my postbit and postbit_legacy to show the Warnings Level of each poster. I would like to have there some thing like :

Warnings Level : 5/20

I tried to include something like :

PHP Code:
$user[warning_level] / $warn_options[points_before_banned
but it shows only :

Warnings Level : 5/

without the points_before_banned. Is that because that variable is not a global variable? How can I add it?

Could you please help?

Finally, I'll be adding another post below, with things I would like to see in this hack, after discussing it with my moderators and experimenting with it for a while.

Tnx for a nice hack, clicking install.
Reply With Quote
  #165  
Old 07-22-2004, 02:37 AM
ThaEbilSlaya ThaEbilSlaya is offline
 
Join Date: Jun 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello i had v1.0 on my site and i just recently today upgraded to the new version.

But before i upgraded and even with the new upgrade a normal registered user is able to see the warn info in post on the forums.

I am not very familiar with any of the coding etc i just follw directions i did every as said for the v1.0 and also everything for the new upgrade but it still shows for a normal registered user that has no mod access.

Can anyone help me out or point me in the right direction to try and correct this problem.

Thank You
Reply With Quote
  #166  
Old 07-22-2004, 04:36 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ThaEbilSlaya
Hello i had v1.0 on my site and i just recently today upgraded to the new version.

But before i upgraded and even with the new upgrade a normal registered user is able to see the warn info in post on the forums.

I am not very familiar with any of the coding etc i just follw directions i did every as said for the v1.0 and also everything for the new upgrade but it still shows for a normal registered user that has no mod access.

Can anyone help me out or point me in the right direction to try and correct this problem.

Thank You
How exactly do you want this handled?

The code below will show the "Warn Username" only to the moderators of a particular forum and the administrator. It will show "View Username warnings" to all moderators and the administrator. If you have more than one administrators, you need to play with the last if, let me know if you need help.

Use it at your own risk, I am not exactly an expert in this thing:

In postbit template, find

HTML Code:
<if condition="$show['postcount']">#<a
Above that, insert the code below, instead of the code suggested in the hack.

HTML Code:
<!-- checks for warning system -->
<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[username]</a> ? 
</if>
<if condition="$post[usergroupid]!=6 AND $bbuserinfo[groupid] == 7">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if>
<if condition="$post[usergroupid]!=6 AND $bbuserinfo[userid] == 1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?</if>
<!-- end of warning system -->
I hope this is what you want.

John
Reply With Quote
  #167  
Old 07-22-2004, 06:12 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zero Tolerance,

As I ... promised above, here is the outcome of our experiments with the hack and the discussion with our moderators:

First of all, the hack is great and we all think it is a great addition to any forum. In the interest of seeing this hack becoming even better, we would like to see the following improvements, which will make the mods and admins life easier:

1. Each offence should have a points rating (as it does now), but should also include a "maturity" period. In other words, a period after which the points will automatically be removed from the user's record.
2. Each offence should have a check-box, which will define it as an "Instant Ban" offence. In that way, each forum can decide which offences carry the heavy penalty, of instant banning the member.
3. Each offence which is an "Instant Ban" offence, should also have a "Ban Duration" field. In that way, the admins can decide that offence A deserves a ban, but only for one month, while offence B is serious enough to deserve a permanent ban. So I assume the "Ban Duration" should accept values in days/weeks/months (whatever) plus the word "Permanent". A drop-down menu with 1,2,3,4 weeks, 1,2,3,4,5,6 months, and Permanent values, maybe.
4. Of course, cron jobs should exist, which will remove the points which mature from the member's record, and the bans which expire, automatically.
5. We would appreciate if the PM message could be in a more "customizable" format, so that we can tailor it to our needs. A template maybe?
6. The phrases and params used, should made "global" so that they can be used anywhere in the vB. For example, I have the Warn Points of each user shown in postbit, but I cannot use the "$warn_options[points_before_banned]" there.
7. In the hack's setup (in Admin CP), the admin should be able to define which groups will be able to see the "Warn User" and "View User's Warnings" links. For example, in our site, I have set it up so moderators can warn a user only in the forums they moderate, but they can see every user warnings. Registered users can see the Warnings of other users, as a number only in the forumbit, they cannot see the "Warn XYZ" or the "View XYZ's Warnings" links, so obviously they cannot warn anyone, nor can they see details of how that member earned those points.
8. In the PM send to the user, we would like to see the followings:

- Who warned the member.
- For which post (it might be a good idea if the post could be copied in the offence's record, since the moderator might want to remove it from the forums. Of course, the moderator has to first warn the member and then delete or edit the post).
- Date and time.
- What the offence was (the description of the warning).
- How many points were awarded and what is the current total of the member.
- When these points will be removed.
- If the offence implied an "Instant Ban" and for how long.
- What comments the moderator has added.
- The e-mail of the admin or the super moderator, if the user has objections.

I guess this is pretty much what we would like to see in this excellent hack.

Finally, one other issue, for some reason, the redirecting screen does not always redirect. I am not sure what happens, but that page does not come up like any other redirecting page in vB, it comes up with header and navbar etc. and it just doesn't redirect. Any ideas?

Kind regards, and again thanks for the lovely hack.

John
Reply With Quote
  #168  
Old 07-23-2004, 07:55 PM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a good hack but if you made the additions in the above post, it would be a great hack (using current version of it), you you upgrade it can you make an update installation also?
Reply With Quote
  #169  
Old 07-24-2004, 05:57 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet, works great on 3.0.3
Reply With Quote
  #170  
Old 07-26-2004, 10:26 AM
hello hello is offline
 
Join Date: Jul 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It all works for me but for another admin it just loads a blank page as she is going to warn someone please can someone tell me how to fix this.
Reply With Quote
  #171  
Old 07-26-2004, 10:37 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@hello - the Version here is more than buggy by now. Use this one and it works : https://vborg.vbsupport.ru/showpost....8&postcount=74
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08314 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete