The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Advanced Warning System (AWS) Details »» | |||||||||||||||||||||||||
Advanced Warning System Version 3.5.0
The AWS version for vB 3.5 has been released. You can download it and get support in this thread: https://vborg.vbsupport.ru/showthread.php?p=770032 Advanced Warning System Version 3.4.16 (latest stable release for vB 3.0.x) LATEST ANNOUNCEMENT The AWS has its own Premium Forum here at vBulletin.org, so please use that for questions and discussion on this hack. The Permium Forum is located at : https://vborg.vbsupport.ru/forumdisplay.php?f=105 This Warning System owes its existence to Zero Tolerance's Warning Hack (https://vborg.vbsupport.ru/showthread.php?t=65336). I liked the idea, so I installed Zero's hack in my forums site. However, as in most cases, I was not fully satisfied with the way it worked, so I started customizing it. Other people in the thread above, asked questions, which I had already answered by my customizing work, so I answered, giving away those parts of the code, that I had modified. In the long run, I almost hijacked the thread and the hack from Zero, so I guess I owe him an apology. However, the mods I did have compiled a new, more complete warning system, with much more functionality. Several members from that thread, asked if this could be released as a new hack, so after discussing it with Zero, here it is. What it does? Well, it is a Warning System, which means it allows you (the administrative team of your site, in other words the admins, the supermods and the mods), to define offences, which the members of your forum should NOT commit. But as we all know, there are instances where members do not follow the rules. In that case, this warning system, allows you to issue a warning to the member who commited the offence. The warning has some points associated with it, as well as a period over which it is valid. When a member gathers enough points, he is banned from your forums, for a predefined period of time. That's mostly it, but below, you can find a short list of features: Full warning system with: - post- and non-post-related warnings - hierarchical warning schema - hidden or real warners - customizable maximum warning points - automatically bans members who reached the maximum warning points - customizable ban days - customizable ban user group and permanent ban user group - customizable restore user group, where users are restored after they get unbanned - customizable option for who can see the warning level of the members - automatically issued warnings for posts which contain censored words - automatically issued warnings for private messages which contain censored words - supports incremental banning periods - supports multiple warnings for the same post - warned members are notified either by Private Message or e-mail when they are warned and when one of the warnings they have received is either deleted or expired - maintains historical listings of issued warnings (even if deleted or expired) - customizable warning types - each warning type has predefined warning points associated with it - each warning type has predefined maturity period, after which it is automatically deleted - reports for admin, mods and members - cron job included to automatically remove matured warnings - uses vBulletin's cron job, to automatically unban banned users - all options are setable in your AdminCP - user warning points and number of bans viewable in your AdminCP User Manager. - statistics show warning per type, warnings per warner, bans per user. - Allows you to warn a user from your AdminCP/User Manager. - Large "Warn" sign, in posts which have received a warning, for mods, supermods and admins, to easily distinguish those posts. - Ability to remove user's avatar, signature or usage of the Private Messaging system, depending on the warning points he has collected. - Supports non-standard admins, supermods and mods user groups. - Allows you to save a copy of the warning send to the warned user, in a predefined forum. - Allows you to issue "Alerts" (warnings without warning points, for first-time offenders) - Allows you to add private or public notes for a user, either post-specific or not. Notes appear in the postbit, above each user's message. - etc. Admitedly, this is not an easy hack to install. It requires 20 new templates and modifications to some existing ones too. It requires five new tables and modifications to some others. It requires several new phrases. I've tried to make the installation, as easy as I could, by automating certain tasks in an automatic installer. The installer will add the new templates for you, add the new tables required and change the existing ones, and will add the required new phrases. You will have to manually edit the existing templates and the php files though. I also included an upgrade script, which will upgrade those who are using Zero Tolerance's warning hack (version 1.5) to this one. An uninstaller is also included, which removes what the installer installs. Please keep in mind, that this is a very difficult hack to install. For this reason, I strongly recommend that you back up your database before starting the installation. I also suggest that you keep copies of each file and template you edit, so that you can always revert to a previous stable condition. Finally, I strongly suggest that you always run the latest release. The zip file always contains both the instructions and the files required to install the latest version. If you have installed a previous version and want to upgrade to the latest, there is a text file attached, in the zip with upgrade instructions. Follow them. In this thread, you will also find a more detailed document describing the features of this hack, as well as a document describing its version evolution. Also keep in mind that the installer, will add the AWS templates only to your default style. If you want to use them in another one, you may try this Zero Tolerance's hack, which copies the templates to other styles you may have. Another thing, the installation instructions were written when vB was at release 3.0.3, so you may expect to find some differences, with the latest files and templates. As far as I can tell, I haven't faced any such case, but I post this reservation here, since I do not have the time to recheck all the instructions for compliance with the latest vB release. The hack has been installed and is working fine with the vBulletin version shown at the top of this thread. Finally, if you are using more than one style, the installer will install the templates only in the default one. If you want to use the rest of your styles, here is a hack, that will do this for you. This hack can also be integrated with Zero Tolerance's vBChat. However, since I am using a heavily-modified version of vBChat, I haven't included instructions, on how to patch the original vBChat files, in the documentation. If you are interested in having AWS issue automatic warnings when one of your user enters a censored word in a vBChat message, or if you want your moderators to be able to warn a user, who misbehaves in vBChat, please post a thread in this forum and I'll help you through. This is my first officially released hack, so please don't be to harsh with me, if I broke any rules or made any mistakes. The mods have been tested extensively, both by me and two volunteers (thank you gentlemen), but I am only human. Closing, let me thank Zero Tolerance, who got me started in this, and who owns a big part of the code of this hack. I definnitely couldn't have done it, without his code. Special Note For those who upgrade from Zero Tolerance's hack to my AWS, even though I have included a script which will do some of the work automatically, not everything is done by that script. Read the installation instructions carefully. You have to run the upgrade script first and then do several things manually. If you just run the upgrade script and just upload the files, the AWS will not work properly. If you have any questions, please do not hesitate to post here. Also, let me add here, that version 3.3.0 wouldn't have been possible without the contribution of Revan. And a couple of warnings: PLEASE DOWNLOAD THE LATEST ZIP FILE FROM HERE, BEFORE YOU START INSTALLING THIS HACK. JUST BECAUSE YOU DOWNLOADED IT A COUPLE OF DAYS AGO, THAT DOES NOT MEAN IT IS THE LATEST VERSION. MAKE SURE YOU DOWNLOAD THE ZIP, JUST BEFORE YOU START INSTALLING THIS HACK. LATEST VERSION Version 3.4.16 (released Thursday August 25th, 2005 GMT 18:18) A couple of bugs fixed in this version. One is related to the Notes feature, and it allowed plain users to see the notes entered, if the "Who can view warning points" setting was set to "All". Features.txt a new version of this file has been uploaded on April 4th2 005 GMT 09:30, which covers the latest additions to the hack. The original Features.txt file hasn't been updated since the first release of this hack, so it was time for an update. John Show Your Support
|
Comments |
#642
|
||||
|
||||
In my members warning section within there profile, the choose warning options is blank and none show up.
I have added warning to the system? Any ideas? Also..... My postbit_legacy template is differant from the basic one, can someone help us put the correct code in this template please. My Original Template: Code:
<td class="alt1"> <if condition="$show['messageicon'] OR $post['title']"> <!-- icon and title --> <div class="smallfont"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if> <if condition="$post['title']"><strong>$post[title]</strong></if> Code:
<td class="alt1"> <TABLE width=100%><TR> <TD width=90%><if condition="$show['messageicon'] OR $post['title']"> <!-- icon and title --> <div class="smallfont"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if> <if condition="$post['title']"><strong>$post[title]</strong></if> </div> </td><TD width=10% align="$stylevar[right]"> <if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0"> <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a> </if> </td></tr></table> <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> |
#643
|
|||
|
|||
Quote:
We cross-posted, please send me a larger part of your template, what you posted is not enough for me to help you. Rgds Rgds |
#644
|
||||
|
||||
Just installed this last night and I absolutely LOVE it!!! Instructions were excellent, and it installed without a single problem! Took me 2 hours to do it, lol, but it works perfect, I think...
The only issue I may have is that none of my moderators can see the WARN image. I can see it everytime I come across a post where the member was warned, but they can't see it at all, even posts they warned in their own forums. Is this the way it's designed to work? If not, where should I look to correct this, and if it is designed that way, is there something I can do to enable the mods to see it? Thanks! *edit* I'm running vB3.0.5, if it matters. |
#645
|
|||
|
|||
Quote:
If the sign does not appear for your mods, while it appears for you (I assume you are the admin), check the postbit template (or postbit_legacy). This is the code that you should have in postbit (assuming your mods, supermods and admins are usergroups 6,5 and 7): HTML Code:
<!-- Show warned sign --> <if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0"> <td><A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]" onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a></td> </if> <!-- End of show warned sign --> Oh, next release the Warn Sign behaviour changes a bit. Again, the management team will be able to see the sign and click on it to see the warnings the post has received, but if the "Who can see the warning level and bans" is set to "All" then the rest of the gang can see the sign (i.e. they can tell the post was warned), but they can't view the warnings. Rgds |
#646
|
||||
|
||||
I dont see any warn sign and Im admin?
Id this right? |
#647
|
||||
|
||||
Okay, that was my problem. Apparently it's not going to work properly because I have 6 usergroups between the mods, super mods, and admin. I'm guessing I should add the other three usergroups to each of the instances in postbit (actually legacy postbit) where that occurs?
|
#648
|
||||
|
||||
Actually, now that I look at it, it may be a little more complicated than that. I've got everyone seeing the image now, but they don't all share the same abilities. My staff user groups are as follows: 6 & 13 are admins, 5 & 21 are super mods, and 7 & 20 are mods. With that in mind, what changes should I make to the legacy postbit?
*edit* One more question; is this supposed to allow any moderator to issue a warning anywhere, or only in their own forums? |
#649
|
|||
|
|||
Quote:
To answer your second question, the mods can warn only in the forums they can moderate. |
#650
|
||||
|
||||
That's pretty much what I figured, but my coding skills don't really exist, I'm an engine man. lol. What is the proper syntax for adding two user groups together like you are suggesting? I'm not asking for the whole code, but do I write "$bbuserinfo[usergoupid]==6, $bbuserinfo[usergoupid]==13" or "$bbuserinfo[usergoupid]==6 and $bbuserinfo[usergoupid]==13", etc. ? What's the proper way to write it out so that the browser recognizes those two go together?
|
#651
|
||||
|
||||
Jeez, now I'm getting this when I try and warn someone from admincp
Database error in vBulletin 3.0.5: Invalid SQL: insert into warnings values('','8449','1','1105418299','test','','1','N ','A','','') mysql error: Column count doesn't match value count at row 1 mysql error number: 1136 Date: Monday 10th of January 2005 08:38:19 PM Script: http://www.letsgokings.com/bbs/Warn.php Referer: http://www.letsgokings.com/bbs/Warn....n=user&id=8449 Username: RinkRat IP Address: 66.214.41.130 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|