PDA

View Full Version : Advanced Warning System (AWS)


Pages : [1] 2 3 4 5

sv1cec
11-20-2004, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=72288), 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 (https://vborg.vbsupport.ru/showthread.php?t=72288), that will do this for you.

This hack can also be integrated with Zero Tolerance's vBChat (https://vborg.vbsupport.ru/forumdisplay.php?f=107). 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

MindTrix
11-21-2004, 11:14 AM
Looks nice, well done. I need something like this because i think i need to get firmer on my members, their just going awall lol. So you can define via usergroups who can give warnings etc?

alkatraz
11-21-2004, 12:14 PM
awesome !
thx

jluerken
11-21-2004, 01:08 PM
Great hack, many thanks.

1. How can I use the installer to add the templates to another than the default skin?

2. Is there an uninstall function?

burrelly
11-21-2004, 01:36 PM
Parse error: parse error in /home/virtual/site5/fst/var/www/html/admincp/upgrade_warn.php on line 41

sv1cec
11-21-2004, 01:43 PM
Looks nice, well done. I need something like this because i think i need to get firmer on my members, their just going awall lol. So you can define via usergroups who can give warnings etc?
The three usergroups which can warn, are the admins, supermods and mods. If you use the hierarchical schema, the mods can warn the users, the supermods can warn users and mods and the admins can warn everybody. No same-level warning allowed, in other words a mod cannot warn another mod.

sv1cec
11-21-2004, 01:47 PM
Great hack, many thanks.

1. How can I use the installer to add the templates to another than the default skin?

2. Is there an uninstall function?
I do not know about additional skins, sorry, I do not have any other skin in my forums site, so I have no idea. I'll check with Zero Tolerance if he can help us out on this.

And sorry, no uninstaller. You can delete the tables and all templates starting with "warn" but the phrases, the existing templates and the files have to be reverse-edited.

Rgds

burrelly
11-21-2004, 01:49 PM
That error is from the upgrade script!

If i remove the } on line 41 it does the template addition by get data base errors when it tried to run the sql queries

jluerken
11-21-2004, 01:52 PM
I do not know about additional skins, sorry, I do not have any other skin in my forums site, so I have no idea. I'll check with Zero Tolerance if he can help us out on this.
Rgds

Ok, would be nice. Actually this hack can only be used with my default skin but I am running 3 others also :D

burrelly
11-21-2004, 01:52 PM
Database error in vBulletin 3.0.3:
Invalid SQL: delete from template (title>='warn' AND title<'warn_z')
mysql error: You have an error in your SQL syntax near '(title>='warn' AND title<'warn_z')' at line 1
mysql error number: 1064
Date: Sunday 21st of November 2004 03:52:21 PM
Script: http://www.mysite.com/admincp/upgrade_warn.php
Referer: http://www.mysite.com/admincp/upgrade_warn.php
Username: Burrelly

burrelly
11-21-2004, 02:03 PM
Are there any file updates for the upgrade?

Help file doesent tell you what ones to use for the upgrade!!

sv1cec
11-21-2004, 02:39 PM
Are there any file updates for the upgrade?

Help file doesent tell you what ones to use for the upgrade!!
Please download the new zip, I've corrected the mistake in the upgrade script.

What do you mean file updates? If you are refering to the php files, and the standard templates, you will have to undo them yourself.

Sorry, that's the best I can do for the upgrade. Creating an uninstall script for Zero's hack is not something I will do right now.

Rgds

burrelly
11-21-2004, 02:54 PM
Database error in vBulletin 3.0.3:
Invalid SQL: insert into warnings values('','5','1','1101055996','You Have Been Warned!','504','2')
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
Date: Sunday 21st of November 2004 04:53:16 PM
Script: http://www.mysite.com/Warn.php
Referer: http://www.mysite.com/Warn.php?do=WarnUser&id=5&post=504

When i try to warn members using the link above the users posts!

Warning: Invalid argument supplied for foreach() in /home/virtual/site5/fst/var/www/html/includes/functions.php on line 1815

When i try to warn using link at top of profile

jluerken
11-21-2004, 02:59 PM
Please download the new zip, I've corrected the mistake in the upgrade script.

What do you mean file updates? If you are refering to the php files, and the standard templates, you will have to undo them yourself.

Sorry, that's the best I can do for the upgrade. Creating an uninstall script for Zero's hack is not something I will do right now.

Rgds
Ok here is a way to add the template to other styles.
I used PHPMyAdmin to do so:


INSERT INTO vb3_template VALUES (3646,7,'warn_addwarn','<form action=\\\"Warn.php\\\" method=\\\"post\\\">\r\n<input type=\\\"hidden\\\" name=\\\"do\\\" value=\\\"DoWarnUser\\\">\r\n<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"{$_GET[\'id\']}\\\">\r\n<input type=\\\"hidden\\\" name=\\\"post\\\" value=\\\"{$_GET[\'post\']}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">User Info:</td>\r\n <td class=\\\"alt1\\\">\r\n\r\n<a href=\\\"member.php?u=$_GET\\\" onclick=\\\"window.open(\'member.php?u=$_GET}\',\'\',\'width=1 000, height=500, resizable=yes, scrollbars=yes\'); return false;\\\" target=\\\"_blank\\\">User Profile for $user[username] - User ID: $_GET</a><br />\r\n\" . (($user[warning_level]>0) ? (\"\r\n<Font color=\\\"red\\\">User Current Warning Level: {$user[\'warning_level\']}</font> \r\n\") : (\"\")).\"\r\n\" . (($user[warning_bans]>0) ? (\"\r\n<Font color=\\\"red\\\"> - User Number of Bans: {$user[\'warning_bans\']}</font>\") : (\"\")).\"<br />\r\n\r\n\" . (($user[warning_level]>0) ? (\"\r\n<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>\r\n\") : (\"\")).\"\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">Warned Post:</td>\r\n <td class=\\\"alt2\\\">\r\n\r\n<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>\r\n\r\n\" . (($warning_multiwarns1<>\'\') ? (\"\r\n<br><Font color=\\\"red\\\">$warning_multiwarns1</font><br>\r\n<A HREF=\\\"Warn.php?do=ViewPostWarnings&post=$_GET[post]\\\" onclick=\\\"window.open(\'Warn.php?do=ViewPostWarnings&post=$_GET[post]\',\'\',\'width=1000, height=500, resizable=yes, scrollbars=yes\'); return false;\\\" target=\\\"_blank\\\">$warning_multiwarns2</a>\") : (\"\")).\"</td>\r\n\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">Warning Selection:</td>\r\n <td class=\\\"alt1\\\"><select name=\\\"warningid\\\" class=\\\"smallfont\\\">\r\n <optgroup label=\\\"Choose A Warning\\\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">\r\n Moderator Comments:</td>\r\n <td class=\\\"alt2\\\"><input type=\\\"text\\\" name=\\\"comment\\\" size=\\\"50\\\" class=\\\"bginput\\\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"tfoot\\\" align=\\\"center\\\" colspan=\\\"2\\\"><input type=\\\"submit\\\" value=\\\" Add Warning \\\" class=\\\"bginput\\\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','<form action=\"Warn.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"do\" value=\"DoWarnUser\">\r\n<input type=\"hidden\" name=\"id\" value=\"{$_GET[\'id\']}\">\r\n<input type=\"hidden\" name=\"post\" value=\"{$_GET[\'post\']}\">\r\n<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">User Info:</td>\r\n <td class=\"alt1\">\r\n\r\n<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 />\r\n<if condition=\"$user[warning_level]>0\">\r\n<Font color=\"red\">User Current Warning Level: {$user[\'warning_level\']}</font> \r\n</if>\r\n<if condition=\"$user[warning_bans]>0\">\r\n<Font color=\"red\"> - User Number of Bans: {$user[\'warning_bans\']}</font></if><br />\r\n\r\n<if condition=\"$user[warning_level]>0\">\r\n<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>\r\n</if>\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">Warned Post:</td>\r\n <td class=\"alt2\">\r\n\r\n<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>\r\n\r\n<if condition=\"$warning_multiwarns1<>\'\'\">\r\n<br><Font color=\"red\">$warning_multiwarns1</font><br>\r\n<A HREF=\"Warn.php?do=ViewPostWarnings&post=$_GET[post]\" onclick=\"window.open(\'Warn.php?do=ViewPostWarnings&post=$_GET[post]\',\'\',\'width=1000, height=500, resizable=yes, scrollbars=yes\'); return false;\" target=\"_blank\">$warning_multiwarns2</a></if></td>\r\n\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">Warning Selection:</td>\r\n <td class=\"alt1\"><select name=\"warningid\" class=\"smallfont\">\r\n <optgroup label=\"Choose A Warning\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">\r\n Moderator Comments:</td>\r\n <td class=\"alt2\"><input type=\"text\" name=\"comment\" size=\"50\" class=\"bginput\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"tfoot\" align=\"center\" colspan=\"2\"><input type=\"submit\" value=\" Add Warning \" class=\"bginput\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3647,7,'warn_addwarn_nopost','<form action=\\\"Warn.php\\\" method=\\\"post\\\">\r\n<input type=\\\"hidden\\\" name=\\\"do\\\" value=\\\"DoWarnUserNoPost\\\">\r\n<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"{$_GET[\'id\']}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">User Info:</td>\r\n <td class=\\\"alt1\\\">\r\n\r\n <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 />\r\n\" . (($user[warning_level]>0) ? (\"\r\n<Font color=\\\"red\\\">User Current Warning Level: {$user[\'warning_level\']}</font>\") : (\"\")).\"\r\n\" . (($user[warning_bans]>0) ? (\"\r\n<Font color=\\\"red\\\"> - User Number of Bans: {$user[\'warning_bans\']}</font>\") : (\"\")).\"\r\n<br />\r\n\r\n\" . (($user[warning_level]>0) ? (\"\r\n<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>\r\n\") : (\"\")).\"\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">Warning Selection:<br><div class=\\\"smallfont\\\">(not post-related)</div></td>\r\n <td class=\\\"alt1\\\"><select name=\\\"warningid\\\" class=\\\"smallfont\\\">\r\n <optgroup label=\\\"Choose A Warning\\\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">\r\n Moderator Comments:<br><div class=\\\"smallfont\\\">(Please be very specific, since no offensive<br>item is linked to this warning.)</div></td>\r\n <td class=\\\"alt2\\\"><input type=\\\"text\\\" name=\\\"comment\\\" size=\\\"50\\\" class=\\\"bginput\\\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"tfoot\\\" align=\\\"center\\\" colspan=\\\"2\\\"><input type=\\\"submit\\\" value=\\\" Add Warning \\\" class=\\\"bginput\\\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','<form action=\"Warn.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"do\" value=\"DoWarnUserNoPost\">\r\n<input type=\"hidden\" name=\"id\" value=\"{$_GET[\'id\']}\">\r\n<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">User Info:</td>\r\n <td class=\"alt1\">\r\n\r\n <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 />\r\n<if condition=\"$user[warning_level]>0\">\r\n<Font color=\"red\">User Current Warning Level: {$user[\'warning_level\']}</font></if>\r\n<if condition=\"$user[warning_bans]>0\">\r\n<Font color=\"red\"> - User Number of Bans: {$user[\'warning_bans\']}</font></if>\r\n<br />\r\n\r\n<if condition=\"$user[warning_level]>0\">\r\n<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>\r\n</if>\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">Warning Selection:<br><div class=\"smallfont\">(not post-related)</div></td>\r\n <td class=\"alt1\"><select name=\"warningid\" class=\"smallfont\">\r\n <optgroup label=\"Choose A Warning\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">\r\n Moderator Comments:<br><div class=\"smallfont\">(Please be very specific, since no offensive<br>item is linked to this warning.)</div></td>\r\n <td class=\"alt2\"><input type=\"text\" name=\"comment\" size=\"50\" class=\"bginput\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"tfoot\" align=\"center\" colspan=\"2\"><input type=\"submit\" value=\" Add Warning \" class=\"bginput\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3648,7,'warn_em','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions Rules. The reason you have been warned is because :\r\n\r\n$warn_type[warn_desc]\r\n(Warning Type = \'$warn_type[warn_name]\') \r\n\r\nFor this violation, you have been given $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen here:\r\n\r\n$vboptions[bburl]/showthread.php?p=$_POST[post].\r\n\r\nThe admin/moderator who warned you, entered this comment: \r\n\r\n=======================================\r\ n$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click here:\r\n\r\n$vboptions[bburl]/Warn.php?do=ViewMyWarnings\r\n\r\nPlease reply back if you have a dispute.\r\n\r\n----------------\r\n\r\n$vboptions[bbtitle] Team','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because :\r\n\r\n$warn_type[warn_desc]\r\n(Warning Type = \'$warn_type[warn_name]\') \r\n\r\nFor this violation, you have been given $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen here:\r\n\r\n$vboptions[bburl]/showthread.php?p=$_POST[post].\r\n\r\nThe admin/moderator who warned you, entered this comment: \r\n\r\n=======================================\r\ n$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click here:\r\n\r\n$vboptions[bburl]/Warn.php?do=ViewMyWarnings\r\n\r\nPlease reply back if you have a dispute.\r\n\r\n----------------\r\n\r\n$vboptions[bbtitle] Team','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3649,7,'warn_error','<table class=\\\"tborder\\\" cellpadding=\\\"6\\\" cellspacing=\\\"1\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n <tr>\r\n <td class=\\\"tcat\\\">\r\n <a style=\\\"float:right\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'forumhome_error\')\\\"><img id=\\\"collapseimg_forumhome_error\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat.gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n <div align=\'center\'>Error</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_forumhome_error\\\" style=\\\"\\\">\r\n <tr>\r\n <td class=\\\"thead\\\" width=\\\"100%\\\">An Error Has Occured!</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>An error has occured, the following message has been left below:<br/><br/>{$message}</td>\r\n</tr>\r\n<tr>\r\n<td class=\\\"tfoot\\\" width=\\\"100%\\\" align=\'center\'>[ <a href=\'javascript:history.go(-1)\'>Back</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<table class=\"tborder\" cellpadding=\"6\" cellspacing=\"1\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n <tr>\r\n <td class=\"tcat\">\r\n <a style=\"float:right\" href=\"#top\" onclick=\"return toggle_collapse(\'forumhome_error\')\"><img id=\"collapseimg_forumhome_error\" src=\"$stylevar[imgdir_button]/collapse_tcat.gif\" alt=\"\" border=\"0\" /></a>\r\n <div align=\'center\'>Error</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\"collapseobj_forumhome_error\" style=\"\">\r\n <tr>\r\n <td class=\"thead\" width=\"100%\">An Error Has Occured!</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>An error has occured, the following message has been left below:<br/><br/>{$message}</td>\r\n</tr>\r\n<tr>\r\n<td class=\"tfoot\" width=\"100%\" align=\'center\'>[ <a href=\'javascript:history.go(-1)\'>Back</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3650,7,'warn_pm','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: \r\n\r\n[b][i] $warn_type[warn_desc] \r\n(Warning Type = $warn_type[warn_name]) \r\n\r\nFor this violation, you have been given : $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen /showthread.php?p=$_POST[post]\\\"]here (\\\"$vboptions$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: [b] $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click /Warn.php?do=ViewMyWarnings\\\"]here (\\\"$vboptions,\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: \r\n\r\n[b] $warn_type[warn_desc] \r\n(Warning Type = $warn_type[warn_name]) \r\n\r\nFor this violation, you have been given : $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen /showthread.php?p=$_POST[post]\"]here (\"$vboptions$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: [b] $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click /Warn.php?do=ViewMyWarnings\"]here (\"$vboptions[bburl).\r\n\r\nPlease reply back if you have a dispute.','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3651,7,'warn_redirect','<META HTTP-EQUIV=\\\"REFRESH\\\" CONTENT=\\\"1; URL={$url}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"6\\\" cellspacing=\\\"1\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n <tr>\r\n <td class=\\\"tcat\\\">\r\n <a style=\\\"float:right\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'forumhome_redirect\')\\\"><img id=\\\"collapseimg_forumhome_redirect\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat.gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n <div align=\'center\'>Redirecting..</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_forumhome_redirect\\\" style=\\\"\\\">\r\n <tr>\r\n <td class=\\\"thead\\\" width=\\\"100%\\\">Please Wait..</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>{$message}<br/><br/>Your browser is now redirecting you</td>\r\n</tr>\r\n<tr>\r\n<td class=\\\"tfoot\\\" width=\\\"100%\\\" align=\'center\'>[ <a href=\'{$url}\'>Click here if you are not redirected</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1; URL={$url}\">\r\n<table class=\"tborder\" cellpadding=\"6\" cellspacing=\"1\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n <tr>\r\n <td class=\"tcat\">\r\n <a style=\"float:right\" href=\"#top\" onclick=\"return toggle_collapse(\'forumhome_redirect\')\"><img id=\"collapseimg_forumhome_redirect\" src=\"$stylevar[imgdir_button]/collapse_tcat.gif\" alt=\"\" border=\"0\" /></a>\r\n <div align=\'center\'>Redirecting..</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\"collapseobj_forumhome_redirect\" style=\"\">\r\n <tr>\r\n <td class=\"thead\" width=\"100%\">Please Wait..</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>{$message}<br/><br/>Your browser is now redirecting you</td>\r\n</tr>\r\n<tr>\r\n<td class=\"tfoot\" width=\"100%\" align=\'center\'>[ <a href=\'{$url}\'>Click here if you are not redirected</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3652,7,'warn_viewb_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"10\\\" align=\\\"right\\\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<tr>\r\n <td class=\"tfoot\" colspan=\"10\" align=\"right\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3653,7,'warn_viewb_row','<tr>\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"alt1\\\"><div class=\\\"smallfont\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></div></td>\") : (\"\")).\"\r\n <td class=\\\"alt1\\\"><div class=\\\"smallfont\\\" align=\\\"center\\\">\" . (($warn[warned_post]!=0) ? (\"<a href=\\\"showthread.php?p=$warn[warned_post]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Post ID<br>$warn[warned_post]<br>Review<br>Post</a>\") : (\"\")).\"\" . (($warn[warned_post]==0) ? (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Not a post-related warning\") : (\"\")).\"</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] at $warn[time]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warned_reason]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">Inactive</font>\") : (\"Active\")).\"</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warn_permban\']!=\'Yes\' AND $warn[\'warned_status\']!=\'I\') ? (\"\r\n<a href=\'Warn.php?do=RemoveWarning&id=$warn[wid]\'>Remove Warning</a>\") : (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"Non-removable Warning\")).\"</td>\r\n</tr>','<tr>\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"alt1\"><div class=\"smallfont\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>$warn[wusername]</a></div></td></if>\r\n <td class=\"alt1\"><div class=\"smallfont\" align=\"center\"><if condition=\"$warn[warned_post]!=0\"><a href=\"showthread.php?p=$warn[warned_post]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Post ID<br>$warn[warned_post]<br>Review<br>Post</a></if><if condition=\"$warn[warned_post]==0\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Not a post-related warning</if></div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] at $warn[time]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warned_reason]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\">Inactive</font><else />Active</if></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warn_permban\']!=\'Yes\' AND $warn[\'warned_status\']!=\'I\'\">\r\n<a href=\'Warn.php?do=RemoveWarning&id=$warn[wid]\'>Remove Warning</a><else /><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>Non-removable Warning</if></td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3654,7,'warn_viewb_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"10\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Post</td>\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Comment</td>\r\n <td class=\\\"thead\\\">Status</td>\r\n <td class=\\\"thead\\\">Remove</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"10\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Post</td>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Comment</td>\r\n <td class=\"thead\">Status</td>\r\n <td class=\"thead\">Remove</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3655,7,'warn_viewc_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"9\\\" align=\\\"right\\\"><a href=\\\"javascript:window.top.close();\\\"><IMG SRC=\\\"images/closeOFF.gif\\\"></A></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<tr>\r\n <td class=\"tfoot\" colspan=\"9\" align=\"right\"><a href=\"javascript:window.top.close();\"><IMG SRC=\"images/closeOFF.gif\"></A></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3656,7,'warn_viewc_row','<tr>\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"alt1\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></td>\") : (\"\")).\"\r\n\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] at $warn[time]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n</tr>','<tr>\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"alt1\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[wusername]</a></td></if>\r\n\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] at $warn[time]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3657,7,'warn_viewc_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"9\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For Post ID: $_GET[post]<div class=\\\"smallfont\\\">(Grey lines are inactive warnings)</div>\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"9\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For Post ID: $_GET[post]<div class=\"smallfont\">(Grey lines are inactive warnings)</div>\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3658,7,'warn_viewtype_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"7\\\" align=\\\"right\\\">Warning limit before being banned: $warn_options[points_before_banned] points. Initial banning period: $warn_options[banned_limit] days.</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n','<tr>\r\n <td class=\"tfoot\" colspan=\"7\" align=\"right\">Warning limit before being banned: $warn_options[points_before_banned] points. Initial banning period: $warn_options[banned_limit] days.</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3659,7,'warn_viewtype_row','<tr>\r\n <td class=\\\"alt1\\\"><b>{$warn[\'warn_name\']}</b></td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_desc\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_points\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_maturity\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_permban\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_type\']}</td>\r\n</tr>','<tr>\r\n <td class=\"alt1\"><b>{$warn[\'warn_name\']}</b></td>\r\n <td class=\"alt1\">{$warn[\'warn_desc\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_points\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_maturity\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_permban\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_type\']}</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3660,7,'warn_viewtype_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"6\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_listtype\')\\\"><img id=\\\"collapseimg_warn_listtype\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Warning Types\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_listtype\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n <td class=\\\"thead\\\">Warning Name</td>\r\n <td class=\\\"thead\\\">Warning Description</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Post-related</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"6\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_listtype\')\"><img id=\"collapseimg_warn_listtype\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Warning Types\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_listtype\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <td class=\"thead\">Warning Name</td>\r\n <td class=\"thead\">Warning Description</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Post-related</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3661,7,'warn_view_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"9\\\" align=\\\"right\\\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table><br/>','<tr>\r\n <td class=\"tfoot\" colspan=\"9\" align=\"right\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table><br/>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3662,7,'warn_view_row','<tr>\r\n\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"smallfont\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></td>\") : (\"\")).\"\r\n\r\n <td class=\\\"alt1\\\"><div class=\\\"smallfont\\\" align=\\\"center\\\">\" . (($warn[warned_post]!=0) ? (\"<a href=\\\"showthread.php?p=$warn[warned_post]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Post ID<br> $warn[warned_post]<br>Review<br>Post</a>\") : (\"\")).\"\" . (($warn[warned_post]==0) ? (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Not a post-related warning\") : (\"\")).\"</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] At $warn[time]</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"<div class=\\\"smallfont\\\">$warn[warned_reason]</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">Inactive</font>\") : (\"Active\")).\"</td>\r\n</tr>','<tr>\r\n\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"smallfont\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[wusername]</a></td></if>\r\n\r\n <td class=\"alt1\"><div class=\"smallfont\" align=\"center\"><if condition=\"$warn[warned_post]!=0\"><a href=\"showthread.php?p=$warn[warned_post]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Post ID<br> $warn[warned_post]<br>Review<br>Post</a></if><if condition=\"$warn[warned_post]==0\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Not a post-related warning</if></div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] At $warn[time]</div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if><div class=\"smallfont\">$warn[warned_reason]</div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\">Inactive</font><else />Active</if></td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3663,7,'warn_view_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"9\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Post</td>\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Comment</td>\r\n <td class=\\\"thead\\\">Status</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"9\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Post</td>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Comment</td>\r\n <td class=\"thead\">Status</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');


How to modify this?

Change the beginning of the lines to meet your db
INSERT INTO vb3_template VALUES (3646,7,'

where 3646 in my example is the first free number. Check table 'template' for the latest ID and change the above lines so that it is always last ID+1

The 7 is my style where I want the templates to be added.
Check your admincp Style Manager to find out the correct ID.

Please backup your database before you to so and close the forum!
After adding the template manually to the DB using this way you have to create a fake table from your adminCP Style Manager so that the board cache is updated. You can delte this one again with PHPMyAdmin.

cu

sv1cec
11-21-2004, 03:32 PM
Database error in vBulletin 3.0.3:
Invalid SQL: insert into warnings values('','5','1','1101055996','You Have Been Warned!','504','2')
mysql error: Column count doesn't match value count at row 1
mysql error number: 1136
Date: Sunday 21st of November 2004 04:53:16 PM
Script: http://www.mysite.com/Warn.php
Referer: http://www.mysite.com/Warn.php?do=WarnUser&id=5&post=504

When i try to warn members using the link above the users posts!

Warning: Invalid argument supplied for foreach() in /home/virtual/site5/fst/var/www/html/includes/functions.php on line 1815

When i try to warn using link at top of profile
Have you uploaded the files to your web server? The insert statement does not have all the values required.

Try uploading all the files in the proper directories, especially warn.php and admincp/admin_warn.php. Your error shows me that you are using the wrong warn.php file.

Rgds

sv1cec
11-21-2004, 03:35 PM
Ok here is a way to add the template to other styles.
I used PHPMyAdmin to do so:


INSERT INTO vb3_template VALUES (3646,7,'warn_addwarn','<form action=\\\"Warn.php\\\" method=\\\"post\\\">\r\n<input type=\\\"hidden\\\" name=\\\"do\\\" value=\\\"DoWarnUser\\\">\r\n<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"{$_GET[\'id\']}\\\">\r\n<input type=\\\"hidden\\\" name=\\\"post\\\" value=\\\"{$_GET[\'post\']}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">User Info:</td>\r\n <td class=\\\"alt1\\\">\r\n\r\n<a href=\\\"member.php?u=$_GET\\\" onclick=\\\"window.open(\'member.php?u=$_GET}\',\'\',\'width=1 000, height=500, resizable=yes, scrollbars=yes\'); return false;\\\" target=\\\"_blank\\\">User Profile for $user[username] - User ID: $_GET</a><br />\r\n\" . (($user[warning_level]>0) ? (\"\r\n<Font color=\\\"red\\\">User Current Warning Level: {$user[\'warning_level\']}</font> \r\n\") : (\"\")).\"\r\n\" . (($user[warning_bans]>0) ? (\"\r\n<Font color=\\\"red\\\"> - User Number of Bans: {$user[\'warning_bans\']}</font>\") : (\"\")).\"<br />\r\n\r\n\" . (($user[warning_level]>0) ? (\"\r\n<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>\r\n\") : (\"\")).\"\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">Warned Post:</td>\r\n <td class=\\\"alt2\\\">\r\n\r\n<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>\r\n\r\n\" . (($warning_multiwarns1<>\'\') ? (\"\r\n<br><Font color=\\\"red\\\">$warning_multiwarns1</font><br>\r\n<A HREF=\\\"Warn.php?do=ViewPostWarnings&post=$_GET[post]\\\" onclick=\\\"window.open(\'Warn.php?do=ViewPostWarnings&post=$_GET[post]\',\'\',\'width=1000, height=500, resizable=yes, scrollbars=yes\'); return false;\\\" target=\\\"_blank\\\">$warning_multiwarns2</a>\") : (\"\")).\"</td>\r\n\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">Warning Selection:</td>\r\n <td class=\\\"alt1\\\"><select name=\\\"warningid\\\" class=\\\"smallfont\\\">\r\n <optgroup label=\\\"Choose A Warning\\\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">\r\n Moderator Comments:</td>\r\n <td class=\\\"alt2\\\"><input type=\\\"text\\\" name=\\\"comment\\\" size=\\\"50\\\" class=\\\"bginput\\\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"tfoot\\\" align=\\\"center\\\" colspan=\\\"2\\\"><input type=\\\"submit\\\" value=\\\" Add Warning \\\" class=\\\"bginput\\\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','<form action=\"Warn.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"do\" value=\"DoWarnUser\">\r\n<input type=\"hidden\" name=\"id\" value=\"{$_GET[\'id\']}\">\r\n<input type=\"hidden\" name=\"post\" value=\"{$_GET[\'post\']}\">\r\n<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">User Info:</td>\r\n <td class=\"alt1\">\r\n\r\n<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 />\r\n<if condition=\"$user[warning_level]>0\">\r\n<Font color=\"red\">User Current Warning Level: {$user[\'warning_level\']}</font> \r\n</if>\r\n<if condition=\"$user[warning_bans]>0\">\r\n<Font color=\"red\"> - User Number of Bans: {$user[\'warning_bans\']}</font></if><br />\r\n\r\n<if condition=\"$user[warning_level]>0\">\r\n<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>\r\n</if>\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">Warned Post:</td>\r\n <td class=\"alt2\">\r\n\r\n<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>\r\n\r\n<if condition=\"$warning_multiwarns1<>\'\'\">\r\n<br><Font color=\"red\">$warning_multiwarns1</font><br>\r\n<A HREF=\"Warn.php?do=ViewPostWarnings&post=$_GET[post]\" onclick=\"window.open(\'Warn.php?do=ViewPostWarnings&post=$_GET[post]\',\'\',\'width=1000, height=500, resizable=yes, scrollbars=yes\'); return false;\" target=\"_blank\">$warning_multiwarns2</a></if></td>\r\n\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">Warning Selection:</td>\r\n <td class=\"alt1\"><select name=\"warningid\" class=\"smallfont\">\r\n <optgroup label=\"Choose A Warning\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">\r\n Moderator Comments:</td>\r\n <td class=\"alt2\"><input type=\"text\" name=\"comment\" size=\"50\" class=\"bginput\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"tfoot\" align=\"center\" colspan=\"2\"><input type=\"submit\" value=\" Add Warning \" class=\"bginput\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3647,7,'warn_addwarn_nopost','<form action=\\\"Warn.php\\\" method=\\\"post\\\">\r\n<input type=\\\"hidden\\\" name=\\\"do\\\" value=\\\"DoWarnUserNoPost\\\">\r\n<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"{$_GET[\'id\']}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">User Info:</td>\r\n <td class=\\\"alt1\\\">\r\n\r\n <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 />\r\n\" . (($user[warning_level]>0) ? (\"\r\n<Font color=\\\"red\\\">User Current Warning Level: {$user[\'warning_level\']}</font>\") : (\"\")).\"\r\n\" . (($user[warning_bans]>0) ? (\"\r\n<Font color=\\\"red\\\"> - User Number of Bans: {$user[\'warning_bans\']}</font>\") : (\"\")).\"\r\n<br />\r\n\r\n\" . (($user[warning_level]>0) ? (\"\r\n<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>\r\n\") : (\"\")).\"\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">Warning Selection:<br><div class=\\\"smallfont\\\">(not post-related)</div></td>\r\n <td class=\\\"alt1\\\"><select name=\\\"warningid\\\" class=\\\"smallfont\\\">\r\n <optgroup label=\\\"Choose A Warning\\\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">\r\n Moderator Comments:<br><div class=\\\"smallfont\\\">(Please be very specific, since no offensive<br>item is linked to this warning.)</div></td>\r\n <td class=\\\"alt2\\\"><input type=\\\"text\\\" name=\\\"comment\\\" size=\\\"50\\\" class=\\\"bginput\\\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"tfoot\\\" align=\\\"center\\\" colspan=\\\"2\\\"><input type=\\\"submit\\\" value=\\\" Add Warning \\\" class=\\\"bginput\\\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','<form action=\"Warn.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"do\" value=\"DoWarnUserNoPost\">\r\n<input type=\"hidden\" name=\"id\" value=\"{$_GET[\'id\']}\">\r\n<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">User Info:</td>\r\n <td class=\"alt1\">\r\n\r\n <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 />\r\n<if condition=\"$user[warning_level]>0\">\r\n<Font color=\"red\">User Current Warning Level: {$user[\'warning_level\']}</font></if>\r\n<if condition=\"$user[warning_bans]>0\">\r\n<Font color=\"red\"> - User Number of Bans: {$user[\'warning_bans\']}</font></if>\r\n<br />\r\n\r\n<if condition=\"$user[warning_level]>0\">\r\n<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>\r\n</if>\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">Warning Selection:<br><div class=\"smallfont\">(not post-related)</div></td>\r\n <td class=\"alt1\"><select name=\"warningid\" class=\"smallfont\">\r\n <optgroup label=\"Choose A Warning\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">\r\n Moderator Comments:<br><div class=\"smallfont\">(Please be very specific, since no offensive<br>item is linked to this warning.)</div></td>\r\n <td class=\"alt2\"><input type=\"text\" name=\"comment\" size=\"50\" class=\"bginput\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"tfoot\" align=\"center\" colspan=\"2\"><input type=\"submit\" value=\" Add Warning \" class=\"bginput\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3648,7,'warn_em','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions Rules. The reason you have been warned is because :\r\n\r\n$warn_type[warn_desc]\r\n(Warning Type = \'$warn_type[warn_name]\') \r\n\r\nFor this violation, you have been given $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen here:\r\n\r\n$vboptions[bburl]/showthread.php?p=$_POST[post].\r\n\r\nThe admin/moderator who warned you, entered this comment: \r\n\r\n=======================================\r\ n$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click here:\r\n\r\n$vboptions[bburl]/Warn.php?do=ViewMyWarnings\r\n\r\nPlease reply back if you have a dispute.\r\n\r\n----------------\r\n\r\n$vboptions[bbtitle] Team','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because :\r\n\r\n$warn_type[warn_desc]\r\n(Warning Type = \'$warn_type[warn_name]\') \r\n\r\nFor this violation, you have been given $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen here:\r\n\r\n$vboptions[bburl]/showthread.php?p=$_POST[post].\r\n\r\nThe admin/moderator who warned you, entered this comment: \r\n\r\n=======================================\r\ n$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click here:\r\n\r\n$vboptions[bburl]/Warn.php?do=ViewMyWarnings\r\n\r\nPlease reply back if you have a dispute.\r\n\r\n----------------\r\n\r\n$vboptions[bbtitle] Team','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3649,7,'warn_error','<table class=\\\"tborder\\\" cellpadding=\\\"6\\\" cellspacing=\\\"1\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n <tr>\r\n <td class=\\\"tcat\\\">\r\n <a style=\\\"float:right\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'forumhome_error\')\\\"><img id=\\\"collapseimg_forumhome_error\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat.gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n <div align=\'center\'>Error</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_forumhome_error\\\" style=\\\"\\\">\r\n <tr>\r\n <td class=\\\"thead\\\" width=\\\"100%\\\">An Error Has Occured!</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>An error has occured, the following message has been left below:<br/><br/>{$message}</td>\r\n</tr>\r\n<tr>\r\n<td class=\\\"tfoot\\\" width=\\\"100%\\\" align=\'center\'>[ <a href=\'javascript:history.go(-1)\'>Back</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<table class=\"tborder\" cellpadding=\"6\" cellspacing=\"1\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n <tr>\r\n <td class=\"tcat\">\r\n <a style=\"float:right\" href=\"#top\" onclick=\"return toggle_collapse(\'forumhome_error\')\"><img id=\"collapseimg_forumhome_error\" src=\"$stylevar[imgdir_button]/collapse_tcat.gif\" alt=\"\" border=\"0\" /></a>\r\n <div align=\'center\'>Error</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\"collapseobj_forumhome_error\" style=\"\">\r\n <tr>\r\n <td class=\"thead\" width=\"100%\">An Error Has Occured!</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>An error has occured, the following message has been left below:<br/><br/>{$message}</td>\r\n</tr>\r\n<tr>\r\n<td class=\"tfoot\" width=\"100%\" align=\'center\'>[ <a href=\'javascript:history.go(-1)\'>Back</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3650,7,'warn_pm','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: \r\n\r\n[b][i] $warn_type[warn_desc] \r\n(Warning Type = $warn_type[warn_name]) \r\n\r\nFor this violation, you have been given : $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen /showthread.php?p=$_POST[post]\\\"]here (\\\"$vboptions$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: [b] $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click /Warn.php?do=ViewMyWarnings\\\"]here (\\\"$vboptions,\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: \r\n\r\n[b] $warn_type[warn_desc] \r\n(Warning Type = $warn_type[warn_name]) \r\n\r\nFor this violation, you have been given : $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen /showthread.php?p=$_POST[post]\"]here (\"$vboptions$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: [b] $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click /Warn.php?do=ViewMyWarnings\"]here (\"$vboptions[bburl).\r\n\r\nPlease reply back if you have a dispute.','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3651,7,'warn_redirect','<META HTTP-EQUIV=\\\"REFRESH\\\" CONTENT=\\\"1; URL={$url}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"6\\\" cellspacing=\\\"1\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n <tr>\r\n <td class=\\\"tcat\\\">\r\n <a style=\\\"float:right\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'forumhome_redirect\')\\\"><img id=\\\"collapseimg_forumhome_redirect\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat.gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n <div align=\'center\'>Redirecting..</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_forumhome_redirect\\\" style=\\\"\\\">\r\n <tr>\r\n <td class=\\\"thead\\\" width=\\\"100%\\\">Please Wait..</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>{$message}<br/><br/>Your browser is now redirecting you</td>\r\n</tr>\r\n<tr>\r\n<td class=\\\"tfoot\\\" width=\\\"100%\\\" align=\'center\'>[ <a href=\'{$url}\'>Click here if you are not redirected</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1; URL={$url}\">\r\n<table class=\"tborder\" cellpadding=\"6\" cellspacing=\"1\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n <tr>\r\n <td class=\"tcat\">\r\n <a style=\"float:right\" href=\"#top\" onclick=\"return toggle_collapse(\'forumhome_redirect\')\"><img id=\"collapseimg_forumhome_redirect\" src=\"$stylevar[imgdir_button]/collapse_tcat.gif\" alt=\"\" border=\"0\" /></a>\r\n <div align=\'center\'>Redirecting..</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\"collapseobj_forumhome_redirect\" style=\"\">\r\n <tr>\r\n <td class=\"thead\" width=\"100%\">Please Wait..</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>{$message}<br/><br/>Your browser is now redirecting you</td>\r\n</tr>\r\n<tr>\r\n<td class=\"tfoot\" width=\"100%\" align=\'center\'>[ <a href=\'{$url}\'>Click here if you are not redirected</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3652,7,'warn_viewb_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"10\\\" align=\\\"right\\\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<tr>\r\n <td class=\"tfoot\" colspan=\"10\" align=\"right\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3653,7,'warn_viewb_row','<tr>\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"alt1\\\"><div class=\\\"smallfont\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></div></td>\") : (\"\")).\"\r\n <td class=\\\"alt1\\\"><div class=\\\"smallfont\\\" align=\\\"center\\\">\" . (($warn[warned_post]!=0) ? (\"<a href=\\\"showthread.php?p=$warn[warned_post]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Post ID<br>$warn[warned_post]<br>Review<br>Post</a>\") : (\"\")).\"\" . (($warn[warned_post]==0) ? (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Not a post-related warning\") : (\"\")).\"</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] at $warn[time]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warned_reason]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">Inactive</font>\") : (\"Active\")).\"</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warn_permban\']!=\'Yes\' AND $warn[\'warned_status\']!=\'I\') ? (\"\r\n<a href=\'Warn.php?do=RemoveWarning&id=$warn[wid]\'>Remove Warning</a>\") : (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"Non-removable Warning\")).\"</td>\r\n</tr>','<tr>\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"alt1\"><div class=\"smallfont\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>$warn[wusername]</a></div></td></if>\r\n <td class=\"alt1\"><div class=\"smallfont\" align=\"center\"><if condition=\"$warn[warned_post]!=0\"><a href=\"showthread.php?p=$warn[warned_post]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Post ID<br>$warn[warned_post]<br>Review<br>Post</a></if><if condition=\"$warn[warned_post]==0\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Not a post-related warning</if></div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] at $warn[time]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warned_reason]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\">Inactive</font><else />Active</if></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warn_permban\']!=\'Yes\' AND $warn[\'warned_status\']!=\'I\'\">\r\n<a href=\'Warn.php?do=RemoveWarning&id=$warn[wid]\'>Remove Warning</a><else /><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>Non-removable Warning</if></td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3654,7,'warn_viewb_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"10\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Post</td>\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Comment</td>\r\n <td class=\\\"thead\\\">Status</td>\r\n <td class=\\\"thead\\\">Remove</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"10\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Post</td>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Comment</td>\r\n <td class=\"thead\">Status</td>\r\n <td class=\"thead\">Remove</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3655,7,'warn_viewc_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"9\\\" align=\\\"right\\\"><a href=\\\"javascript:window.top.close();\\\"><IMG SRC=\\\"images/closeOFF.gif\\\"></A></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<tr>\r\n <td class=\"tfoot\" colspan=\"9\" align=\"right\"><a href=\"javascript:window.top.close();\"><IMG SRC=\"images/closeOFF.gif\"></A></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3656,7,'warn_viewc_row','<tr>\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"alt1\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></td>\") : (\"\")).\"\r\n\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] at $warn[time]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n</tr>','<tr>\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"alt1\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[wusername]</a></td></if>\r\n\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] at $warn[time]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3657,7,'warn_viewc_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"9\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For Post ID: $_GET[post]<div class=\\\"smallfont\\\">(Grey lines are inactive warnings)</div>\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"9\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For Post ID: $_GET[post]<div class=\"smallfont\">(Grey lines are inactive warnings)</div>\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3658,7,'warn_viewtype_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"7\\\" align=\\\"right\\\">Warning limit before being banned: $warn_options[points_before_banned] points. Initial banning period: $warn_options[banned_limit] days.</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n','<tr>\r\n <td class=\"tfoot\" colspan=\"7\" align=\"right\">Warning limit before being banned: $warn_options[points_before_banned] points. Initial banning period: $warn_options[banned_limit] days.</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3659,7,'warn_viewtype_row','<tr>\r\n <td class=\\\"alt1\\\"><b>{$warn[\'warn_name\']}</b></td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_desc\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_points\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_maturity\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_permban\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_type\']}</td>\r\n</tr>','<tr>\r\n <td class=\"alt1\"><b>{$warn[\'warn_name\']}</b></td>\r\n <td class=\"alt1\">{$warn[\'warn_desc\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_points\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_maturity\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_permban\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_type\']}</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3660,7,'warn_viewtype_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"6\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_listtype\')\\\"><img id=\\\"collapseimg_warn_listtype\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Warning Types\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_listtype\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n <td class=\\\"thead\\\">Warning Name</td>\r\n <td class=\\\"thead\\\">Warning Description</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Post-related</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"6\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_listtype\')\"><img id=\"collapseimg_warn_listtype\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Warning Types\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_listtype\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <td class=\"thead\">Warning Name</td>\r\n <td class=\"thead\">Warning Description</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Post-related</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3661,7,'warn_view_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"9\\\" align=\\\"right\\\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table><br/>','<tr>\r\n <td class=\"tfoot\" colspan=\"9\" align=\"right\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table><br/>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3662,7,'warn_view_row','<tr>\r\n\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"smallfont\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></td>\") : (\"\")).\"\r\n\r\n <td class=\\\"alt1\\\"><div class=\\\"smallfont\\\" align=\\\"center\\\">\" . (($warn[warned_post]!=0) ? (\"<a href=\\\"showthread.php?p=$warn[warned_post]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Post ID<br> $warn[warned_post]<br>Review<br>Post</a>\") : (\"\")).\"\" . (($warn[warned_post]==0) ? (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Not a post-related warning\") : (\"\")).\"</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] At $warn[time]</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"<div class=\\\"smallfont\\\">$warn[warned_reason]</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">Inactive</font>\") : (\"Active\")).\"</td>\r\n</tr>','<tr>\r\n\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"smallfont\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[wusername]</a></td></if>\r\n\r\n <td class=\"alt1\"><div class=\"smallfont\" align=\"center\"><if condition=\"$warn[warned_post]!=0\"><a href=\"showthread.php?p=$warn[warned_post]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Post ID<br> $warn[warned_post]<br>Review<br>Post</a></if><if condition=\"$warn[warned_post]==0\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Not a post-related warning</if></div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] At $warn[time]</div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if><div class=\"smallfont\">$warn[warned_reason]</div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\">Inactive</font><else />Active</if></td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3663,7,'warn_view_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"9\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Post</td>\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Comment</td>\r\n <td class=\\\"thead\\\">Status</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"9\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Post</td>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Comment</td>\r\n <td class=\"thead\">Status</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');


How to modify this?

Change the beginning of the lines to meet your db
INSERT INTO vb3_template VALUES (3646,7,'

where 3646 in my example is the first free number. Check table 'template' for the latest ID and change the above lines so that it is always last ID+1

The 7 is my style where I want the templates to be added.
Check your admincp Style Manager to find out the correct ID.

Please backup your database before you to so and close the forum!
After adding the template manually to the DB using this way you have to create a fake table from your adminCP Style Manager so that the board cache is updated. You can delte this one again with PHPMyAdmin.

cu
Thanks for the tip, I'll check it out and try to incorporate it in the installation file.

Rgds

sv1cec
11-21-2004, 03:40 PM
Ok here is a way to add the template to other styles.
I used PHPMyAdmin to do so:


INSERT INTO vb3_template VALUES (3646,7,'warn_addwarn','<form action=\\\"Warn.php\\\" method=\\\"post\\\">\r\n<input type=\\\"hidden\\\" name=\\\"do\\\" value=\\\"DoWarnUser\\\">\r\n<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"{$_GET[\'id\']}\\\">\r\n<input type=\\\"hidden\\\" name=\\\"post\\\" value=\\\"{$_GET[\'post\']}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">User Info:</td>\r\n <td class=\\\"alt1\\\">\r\n\r\n<a href=\\\"member.php?u=$_GET\\\" onclick=\\\"window.open(\'member.php?u=$_GET}\',\'\',\'width=1 000, height=500, resizable=yes, scrollbars=yes\'); return false;\\\" target=\\\"_blank\\\">User Profile for $user[username] - User ID: $_GET</a><br />\r\n\" . (($user[warning_level]>0) ? (\"\r\n<Font color=\\\"red\\\">User Current Warning Level: {$user[\'warning_level\']}</font> \r\n\") : (\"\")).\"\r\n\" . (($user[warning_bans]>0) ? (\"\r\n<Font color=\\\"red\\\"> - User Number of Bans: {$user[\'warning_bans\']}</font>\") : (\"\")).\"<br />\r\n\r\n\" . (($user[warning_level]>0) ? (\"\r\n<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>\r\n\") : (\"\")).\"\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">Warned Post:</td>\r\n <td class=\\\"alt2\\\">\r\n\r\n<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>\r\n\r\n\" . (($warning_multiwarns1<>\'\') ? (\"\r\n<br><Font color=\\\"red\\\">$warning_multiwarns1</font><br>\r\n<A HREF=\\\"Warn.php?do=ViewPostWarnings&post=$_GET[post]\\\" onclick=\\\"window.open(\'Warn.php?do=ViewPostWarnings&post=$_GET[post]\',\'\',\'width=1000, height=500, resizable=yes, scrollbars=yes\'); return false;\\\" target=\\\"_blank\\\">$warning_multiwarns2</a>\") : (\"\")).\"</td>\r\n\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">Warning Selection:</td>\r\n <td class=\\\"alt1\\\"><select name=\\\"warningid\\\" class=\\\"smallfont\\\">\r\n <optgroup label=\\\"Choose A Warning\\\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">\r\n Moderator Comments:</td>\r\n <td class=\\\"alt2\\\"><input type=\\\"text\\\" name=\\\"comment\\\" size=\\\"50\\\" class=\\\"bginput\\\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"tfoot\\\" align=\\\"center\\\" colspan=\\\"2\\\"><input type=\\\"submit\\\" value=\\\" Add Warning \\\" class=\\\"bginput\\\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','<form action=\"Warn.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"do\" value=\"DoWarnUser\">\r\n<input type=\"hidden\" name=\"id\" value=\"{$_GET[\'id\']}\">\r\n<input type=\"hidden\" name=\"post\" value=\"{$_GET[\'post\']}\">\r\n<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">User Info:</td>\r\n <td class=\"alt1\">\r\n\r\n<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 />\r\n<if condition=\"$user[warning_level]>0\">\r\n<Font color=\"red\">User Current Warning Level: {$user[\'warning_level\']}</font> \r\n</if>\r\n<if condition=\"$user[warning_bans]>0\">\r\n<Font color=\"red\"> - User Number of Bans: {$user[\'warning_bans\']}</font></if><br />\r\n\r\n<if condition=\"$user[warning_level]>0\">\r\n<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>\r\n</if>\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">Warned Post:</td>\r\n <td class=\"alt2\">\r\n\r\n<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>\r\n\r\n<if condition=\"$warning_multiwarns1<>\'\'\">\r\n<br><Font color=\"red\">$warning_multiwarns1</font><br>\r\n<A HREF=\"Warn.php?do=ViewPostWarnings&post=$_GET[post]\" onclick=\"window.open(\'Warn.php?do=ViewPostWarnings&post=$_GET[post]\',\'\',\'width=1000, height=500, resizable=yes, scrollbars=yes\'); return false;\" target=\"_blank\">$warning_multiwarns2</a></if></td>\r\n\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">Warning Selection:</td>\r\n <td class=\"alt1\"><select name=\"warningid\" class=\"smallfont\">\r\n <optgroup label=\"Choose A Warning\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">\r\n Moderator Comments:</td>\r\n <td class=\"alt2\"><input type=\"text\" name=\"comment\" size=\"50\" class=\"bginput\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"tfoot\" align=\"center\" colspan=\"2\"><input type=\"submit\" value=\" Add Warning \" class=\"bginput\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3647,7,'warn_addwarn_nopost','<form action=\\\"Warn.php\\\" method=\\\"post\\\">\r\n<input type=\\\"hidden\\\" name=\\\"do\\\" value=\\\"DoWarnUserNoPost\\\">\r\n<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"{$_GET[\'id\']}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">User Info:</td>\r\n <td class=\\\"alt1\\\">\r\n\r\n <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 />\r\n\" . (($user[warning_level]>0) ? (\"\r\n<Font color=\\\"red\\\">User Current Warning Level: {$user[\'warning_level\']}</font>\") : (\"\")).\"\r\n\" . (($user[warning_bans]>0) ? (\"\r\n<Font color=\\\"red\\\"> - User Number of Bans: {$user[\'warning_bans\']}</font>\") : (\"\")).\"\r\n<br />\r\n\r\n\" . (($user[warning_level]>0) ? (\"\r\n<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>\r\n\") : (\"\")).\"\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt1\\\">Warning Selection:<br><div class=\\\"smallfont\\\">(not post-related)</div></td>\r\n <td class=\\\"alt1\\\"><select name=\\\"warningid\\\" class=\\\"smallfont\\\">\r\n <optgroup label=\\\"Choose A Warning\\\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"alt2\\\">\r\n Moderator Comments:<br><div class=\\\"smallfont\\\">(Please be very specific, since no offensive<br>item is linked to this warning.)</div></td>\r\n <td class=\\\"alt2\\\"><input type=\\\"text\\\" name=\\\"comment\\\" size=\\\"50\\\" class=\\\"bginput\\\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\\\"tfoot\\\" align=\\\"center\\\" colspan=\\\"2\\\"><input type=\\\"submit\\\" value=\\\" Add Warning \\\" class=\\\"bginput\\\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','<form action=\"Warn.php\" method=\"post\">\r\n<input type=\"hidden\" name=\"do\" value=\"DoWarnUserNoPost\">\r\n<input type=\"hidden\" name=\"id\" value=\"{$_GET[\'id\']}\">\r\n<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<tr>\r\n <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>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">User Info:</td>\r\n <td class=\"alt1\">\r\n\r\n <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 />\r\n<if condition=\"$user[warning_level]>0\">\r\n<Font color=\"red\">User Current Warning Level: {$user[\'warning_level\']}</font></if>\r\n<if condition=\"$user[warning_bans]>0\">\r\n<Font color=\"red\"> - User Number of Bans: {$user[\'warning_bans\']}</font></if>\r\n<br />\r\n\r\n<if condition=\"$user[warning_level]>0\">\r\n<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>\r\n</if>\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt1\">Warning Selection:<br><div class=\"smallfont\">(not post-related)</div></td>\r\n <td class=\"alt1\"><select name=\"warningid\" class=\"smallfont\">\r\n <optgroup label=\"Choose A Warning\">\r\n $warnopts\r\n </optgroup>\r\n </select></td>\r\n</tr>\r\n<tr>\r\n <td class=\"alt2\">\r\n Moderator Comments:<br><div class=\"smallfont\">(Please be very specific, since no offensive<br>item is linked to this warning.)</div></td>\r\n <td class=\"alt2\"><input type=\"text\" name=\"comment\" size=\"50\" class=\"bginput\">\r\n </td>\r\n</tr>\r\n<tr>\r\n <td class=\"tfoot\" align=\"center\" colspan=\"2\"><input type=\"submit\" value=\" Add Warning \" class=\"bginput\"></td>\r\n</tr>\r\n</table>\r\n</form>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3648,7,'warn_em','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions Rules. The reason you have been warned is because :\r\n\r\n$warn_type[warn_desc]\r\n(Warning Type = \'$warn_type[warn_name]\') \r\n\r\nFor this violation, you have been given $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen here:\r\n\r\n$vboptions[bburl]/showthread.php?p=$_POST[post].\r\n\r\nThe admin/moderator who warned you, entered this comment: \r\n\r\n=======================================\r\ n$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click here:\r\n\r\n$vboptions[bburl]/Warn.php?do=ViewMyWarnings\r\n\r\nPlease reply back if you have a dispute.\r\n\r\n----------------\r\n\r\n$vboptions[bbtitle] Team','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because :\r\n\r\n$warn_type[warn_desc]\r\n(Warning Type = \'$warn_type[warn_name]\') \r\n\r\nFor this violation, you have been given $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen here:\r\n\r\n$vboptions[bburl]/showthread.php?p=$_POST[post].\r\n\r\nThe admin/moderator who warned you, entered this comment: \r\n\r\n=======================================\r\ n$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click here:\r\n\r\n$vboptions[bburl]/Warn.php?do=ViewMyWarnings\r\n\r\nPlease reply back if you have a dispute.\r\n\r\n----------------\r\n\r\n$vboptions[bbtitle] Team','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3649,7,'warn_error','<table class=\\\"tborder\\\" cellpadding=\\\"6\\\" cellspacing=\\\"1\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n <tr>\r\n <td class=\\\"tcat\\\">\r\n <a style=\\\"float:right\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'forumhome_error\')\\\"><img id=\\\"collapseimg_forumhome_error\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat.gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n <div align=\'center\'>Error</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_forumhome_error\\\" style=\\\"\\\">\r\n <tr>\r\n <td class=\\\"thead\\\" width=\\\"100%\\\">An Error Has Occured!</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>An error has occured, the following message has been left below:<br/><br/>{$message}</td>\r\n</tr>\r\n<tr>\r\n<td class=\\\"tfoot\\\" width=\\\"100%\\\" align=\'center\'>[ <a href=\'javascript:history.go(-1)\'>Back</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<table class=\"tborder\" cellpadding=\"6\" cellspacing=\"1\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n <tr>\r\n <td class=\"tcat\">\r\n <a style=\"float:right\" href=\"#top\" onclick=\"return toggle_collapse(\'forumhome_error\')\"><img id=\"collapseimg_forumhome_error\" src=\"$stylevar[imgdir_button]/collapse_tcat.gif\" alt=\"\" border=\"0\" /></a>\r\n <div align=\'center\'>Error</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\"collapseobj_forumhome_error\" style=\"\">\r\n <tr>\r\n <td class=\"thead\" width=\"100%\">An Error Has Occured!</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>An error has occured, the following message has been left below:<br/><br/>{$message}</td>\r\n</tr>\r\n<tr>\r\n<td class=\"tfoot\" width=\"100%\" align=\'center\'>[ <a href=\'javascript:history.go(-1)\'>Back</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3650,7,'warn_pm','Dear $user[username],\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: \r\n\r\n[b][i] $warn_type[warn_desc] \r\n(Warning Type = $warn_type[warn_name]) \r\n\r\nFor this violation, you have been given : $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen /showthread.php?p=$_POST[post]\\\"]here (\\\"$vboptions$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: [b] $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click /Warn.php?do=ViewMyWarnings\\\"]here (\\\"$vboptions,\r\n\r\nYou have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because: \r\n\r\n[b] $warn_type[warn_desc] \r\n(Warning Type = $warn_type[warn_name]) \r\n\r\nFor this violation, you have been given : $warn_type[warn_points] point(s).\r\n\r\nThe post for which you are warned can be seen /showthread.php?p=$_POST[post]\"]here (\"$vboptions$_POST[comment]\r\n=======================================\r\n\r\ nYour total Warning Level at the moment is: [b] $level point(s).\r\n\r\nIf you reach the maximum of $warn_options[points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.\r\n\r\nTo see details about all the warnings you have received, until now, please click /Warn.php?do=ViewMyWarnings\"]here (\"$vboptions[bburl).\r\n\r\nPlease reply back if you have a dispute.','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3651,7,'warn_redirect','<META HTTP-EQUIV=\\\"REFRESH\\\" CONTENT=\\\"1; URL={$url}\\\">\r\n<table class=\\\"tborder\\\" cellpadding=\\\"6\\\" cellspacing=\\\"1\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n <tr>\r\n <td class=\\\"tcat\\\">\r\n <a style=\\\"float:right\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'forumhome_redirect\')\\\"><img id=\\\"collapseimg_forumhome_redirect\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat.gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n <div align=\'center\'>Redirecting..</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_forumhome_redirect\\\" style=\\\"\\\">\r\n <tr>\r\n <td class=\\\"thead\\\" width=\\\"100%\\\">Please Wait..</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>{$message}<br/><br/>Your browser is now redirecting you</td>\r\n</tr>\r\n<tr>\r\n<td class=\\\"tfoot\\\" width=\\\"100%\\\" align=\'center\'>[ <a href=\'{$url}\'>Click here if you are not redirected</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"1; URL={$url}\">\r\n<table class=\"tborder\" cellpadding=\"6\" cellspacing=\"1\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n <tr>\r\n <td class=\"tcat\">\r\n <a style=\"float:right\" href=\"#top\" onclick=\"return toggle_collapse(\'forumhome_redirect\')\"><img id=\"collapseimg_forumhome_redirect\" src=\"$stylevar[imgdir_button]/collapse_tcat.gif\" alt=\"\" border=\"0\" /></a>\r\n <div align=\'center\'>Redirecting..</div></td>\r\n </tr>\r\n</thead>\r\n<tbody id=\"collapseobj_forumhome_redirect\" style=\"\">\r\n <tr>\r\n <td class=\"thead\" width=\"100%\">Please Wait..</td>\r\n </tr>\r\n<tr>\r\n<td class=\'alt2\' align=\'center\' width=\'100%\'>{$message}<br/><br/>Your browser is now redirecting you</td>\r\n</tr>\r\n<tr>\r\n<td class=\"tfoot\" width=\"100%\" align=\'center\'>[ <a href=\'{$url}\'>Click here if you are not redirected</a> ]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3652,7,'warn_viewb_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"10\\\" align=\\\"right\\\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<tr>\r\n <td class=\"tfoot\" colspan=\"10\" align=\"right\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3653,7,'warn_viewb_row','<tr>\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"alt1\\\"><div class=\\\"smallfont\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></div></td>\") : (\"\")).\"\r\n <td class=\\\"alt1\\\"><div class=\\\"smallfont\\\" align=\\\"center\\\">\" . (($warn[warned_post]!=0) ? (\"<a href=\\\"showthread.php?p=$warn[warned_post]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Post ID<br>$warn[warned_post]<br>Review<br>Post</a>\") : (\"\")).\"\" . (($warn[warned_post]==0) ? (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Not a post-related warning\") : (\"\")).\"</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] at $warn[time]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warned_reason]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">Inactive</font>\") : (\"Active\")).\"</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warn_permban\']!=\'Yes\' AND $warn[\'warned_status\']!=\'I\') ? (\"\r\n<a href=\'Warn.php?do=RemoveWarning&id=$warn[wid]\'>Remove Warning</a>\") : (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"Non-removable Warning\")).\"</td>\r\n</tr>','<tr>\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"alt1\"><div class=\"smallfont\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>$warn[wusername]</a></div></td></if>\r\n <td class=\"alt1\"><div class=\"smallfont\" align=\"center\"><if condition=\"$warn[warned_post]!=0\"><a href=\"showthread.php?p=$warn[warned_post]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Post ID<br>$warn[warned_post]<br>Review<br>Post</a></if><if condition=\"$warn[warned_post]==0\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Not a post-related warning</if></div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] at $warn[time]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warned_reason]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\">Inactive</font><else />Active</if></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warn_permban\']!=\'Yes\' AND $warn[\'warned_status\']!=\'I\'\">\r\n<a href=\'Warn.php?do=RemoveWarning&id=$warn[wid]\'>Remove Warning</a><else /><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>Non-removable Warning</if></td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3654,7,'warn_viewb_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"10\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Post</td>\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Comment</td>\r\n <td class=\\\"thead\\\">Status</td>\r\n <td class=\\\"thead\\\">Remove</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"10\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Post</td>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Comment</td>\r\n <td class=\"thead\">Status</td>\r\n <td class=\"thead\">Remove</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3655,7,'warn_viewc_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"9\\\" align=\\\"right\\\"><a href=\\\"javascript:window.top.close();\\\"><IMG SRC=\\\"images/closeOFF.gif\\\"></A></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','<tr>\r\n <td class=\"tfoot\" colspan=\"9\" align=\"right\"><a href=\"javascript:window.top.close();\"><IMG SRC=\"images/closeOFF.gif\"></A></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br />','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3656,7,'warn_viewc_row','<tr>\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"alt1\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></td>\") : (\"\")).\"\r\n\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] at $warn[time]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n</tr>','<tr>\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"alt1\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[wusername]</a></td></if>\r\n\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] at $warn[time]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3657,7,'warn_viewc_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"9\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For Post ID: $_GET[post]<div class=\\\"smallfont\\\">(Grey lines are inactive warnings)</div>\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"9\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For Post ID: $_GET[post]<div class=\"smallfont\">(Grey lines are inactive warnings)</div>\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3658,7,'warn_viewtype_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"7\\\" align=\\\"right\\\">Warning limit before being banned: $warn_options[points_before_banned] points. Initial banning period: $warn_options[banned_limit] days.</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n','<tr>\r\n <td class=\"tfoot\" colspan=\"7\" align=\"right\">Warning limit before being banned: $warn_options[points_before_banned] points. Initial banning period: $warn_options[banned_limit] days.</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3659,7,'warn_viewtype_row','<tr>\r\n <td class=\\\"alt1\\\"><b>{$warn[\'warn_name\']}</b></td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_desc\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_points\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_maturity\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_permban\']}</td>\r\n <td class=\\\"alt1\\\">{$warn[\'warn_type\']}</td>\r\n</tr>','<tr>\r\n <td class=\"alt1\"><b>{$warn[\'warn_name\']}</b></td>\r\n <td class=\"alt1\">{$warn[\'warn_desc\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_points\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_maturity\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_permban\']}</td>\r\n <td class=\"alt1\">{$warn[\'warn_type\']}</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3660,7,'warn_viewtype_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"6\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_listtype\')\\\"><img id=\\\"collapseimg_warn_listtype\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Warning Types\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_listtype\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n <td class=\\\"thead\\\">Warning Name</td>\r\n <td class=\\\"thead\\\">Warning Description</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Post-related</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"6\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_listtype\')\"><img id=\"collapseimg_warn_listtype\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Warning Types\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_listtype\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <td class=\"thead\">Warning Name</td>\r\n <td class=\"thead\">Warning Description</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Post-related</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3661,7,'warn_view_end','<tr>\r\n <td class=\\\"tfoot\\\" colspan=\\\"9\\\" align=\\\"right\\\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table><br/>','<tr>\r\n <td class=\"tfoot\" colspan=\"9\" align=\"right\">Total Warning Points: $user[warning_level] / $warn_options[points_before_banned] - Number of Bans: $user[warning_bans]</td>\r\n</tr>\r\n</tbody>\r\n</table><br/>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3662,7,'warn_view_row','<tr>\r\n\r\n\" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"smallfont\\\"><a href=\\\"member.php?u=$warn[wuserid]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[wusername]</a></td>\") : (\"\")).\"\r\n\r\n <td class=\\\"alt1\\\"><div class=\\\"smallfont\\\" align=\\\"center\\\">\" . (($warn[warned_post]!=0) ? (\"<a href=\\\"showthread.php?p=$warn[warned_post]\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Post ID<br> $warn[warned_post]<br>Review<br>Post</a>\") : (\"\")).\"\" . (($warn[warned_post]==0) ? (\"\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"Not a post-related warning\") : (\"\")).\"</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"On $warn[date] At $warn[time]</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_name]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_points]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_maturity]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">\") : (\"\")).\"$warn[warn_permban]</td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <font color=\\\"grey\\\">\") : (\"\")).\"<div class=\\\"smallfont\\\">$warn[warned_reason]</div></td>\r\n <td class=\\\"alt1\\\">\" . (($warn[\'warned_status\']==\'I\') ? (\"\r\n <div class=\\\"smallfont\\\"><font color=\\\"grey\\\">Inactive</font>\") : (\"Active\")).\"</td>\r\n</tr>','<tr>\r\n\r\n<if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"smallfont\"><a href=\"member.php?u=$warn[wuserid]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[wusername]</a></td></if>\r\n\r\n <td class=\"alt1\"><div class=\"smallfont\" align=\"center\"><if condition=\"$warn[warned_post]!=0\"><a href=\"showthread.php?p=$warn[warned_post]\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Post ID<br> $warn[warned_post]<br>Review<br>Post</a></if><if condition=\"$warn[warned_post]==0\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if>Not a post-related warning</if></div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>On $warn[date] At $warn[time]</div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_name]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_points]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_maturity]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\"></if>$warn[warn_permban]</td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <font color=\"grey\"></if><div class=\"smallfont\">$warn[warned_reason]</div></td>\r\n <td class=\"alt1\"><if condition=\"$warn[\'warned_status\']==\'I\'\">\r\n <div class=\"smallfont\"><font color=\"grey\">Inactive</font><else />Active</if></td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');
INSERT INTO vb3_template VALUES (3663,7,'warn_view_top','<table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\">\r\n<thead>\r\n<tr>\r\n <td class=\\\"tcat\\\" colspan=\\\"9\\\">\r\n <a style=\\\"float:$stylevar[right]\\\" href=\\\"#top\\\" onclick=\\\"return toggle_collapse(\'warn_list\')\\\"><img id=\\\"collapseimg_warn_list\\\" src=\\\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\\\" alt=\\\"\\\" border=\\\"0\\\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\\\"collapseobj_warn_list\\\" style=\\\"$vbcollapse[collapseobj_warn_list]\\\">\r\n<tr>\r\n \" . ((is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)) ? (\"<td class=\\\"thead\\\">Warned By</td>\") : (\"\")).\"\r\n <td class=\\\"thead\\\">Warned Post</td>\r\n <td class=\\\"thead\\\">Warned Date</td>\r\n <td class=\\\"thead\\\">Warning Type</td>\r\n <td class=\\\"thead\\\">Warning Points</td>\r\n <td class=\\\"thead\\\">Warning Maturity</td>\r\n <td class=\\\"thead\\\">Permanent Ban</td>\r\n <td class=\\\"thead\\\">Comment</td>\r\n <td class=\\\"thead\\\">Status</td>\r\n</tr>','<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">\r\n<thead>\r\n<tr>\r\n <td class=\"tcat\" colspan=\"9\">\r\n <a style=\"float:$stylevar[right]\" href=\"#top\" onclick=\"return toggle_collapse(\'warn_list\')\"><img id=\"collapseimg_warn_list\" src=\"$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_warn_list].gif\" alt=\"\" border=\"0\" /></a>\r\n Viewing Warning Information For $user[username]\r\n </td>\r\n</tr>\r\n</thead>\r\n<tbody id=\"collapseobj_warn_list\" style=\"$vbcollapse[collapseobj_warn_list]\">\r\n<tr>\r\n <if condition=\"is_member_of($bbuserinfo, 5) OR is_member_of($bbuserinfo, 6) OR is_member_of($bbuserinfo, 7)\"><td class=\"thead\">Warned By</td></if>\r\n <td class=\"thead\">Warned Post</td>\r\n <td class=\"thead\">Warned Date</td>\r\n <td class=\"thead\">Warning Type</td>\r\n <td class=\"thead\">Warning Points</td>\r\n <td class=\"thead\">Warning Maturity</td>\r\n <td class=\"thead\">Permanent Ban</td>\r\n <td class=\"thead\">Comment</td>\r\n <td class=\"thead\">Status</td>\r\n</tr>','template',1100330326,'sv1cec','3.0.1');


How to modify this?

Change the beginning of the lines to meet your db
INSERT INTO vb3_template VALUES (3646,7,'

where 3646 in my example is the first free number. Check table 'template' for the latest ID and change the above lines so that it is always last ID+1

The 7 is my style where I want the templates to be added.
Check your admincp Style Manager to find out the correct ID.

Please backup your database before you to so and close the forum!
After adding the template manually to the DB using this way you have to create a fake table from your adminCP Style Manager so that the board cache is updated. You can delte this one again with PHPMyAdmin.

cu
Thanks for the tip, I'll see if I can include it in the installation file.

Rgds

TCattitude
11-21-2004, 04:09 PM
¡Nice work sv1cec!

This is the best useful hack for vb.

burrelly
11-21-2004, 04:12 PM
Got it working :)

Another hack was messing it up :)

sv1cec
11-21-2004, 06:13 PM
Got it working :)

Another hack was messing it up :)
Glad you made it.

Enjoy!

WAR
11-21-2004, 10:26 PM
sv1cec,

I had installed all of your modifications from ZT's original hack already.

Do I need to upgrade or change anything with this new release. or did you just bundle everything from there up in a new package?

sv1cec
11-22-2004, 04:50 AM
I've added two new columns in the warnings table, called removed_by and removed_date. Just add those two and upload the warn.php and admin_warn files to your web server.

Rgds

Torqued
11-22-2004, 10:34 AM
I've added two new columns in the warnings table, called removed_by and removed_date. Just add those two and upload the warn.php and admin_warn files to your web server.

Rgds

so how do we add the columns? :)

sv1cec
11-22-2004, 11:18 AM
so how do we add the columns? :)
ALTER TABLE warnings add `removed_by` int(15), add `removed_date` int(15)

Careful if you are using a TABLE_PREFIX.

But still, I got some more work for you to do, just uploaded a new version, 1.2, which you have to install. You just can't get rid of me, can you?

LoL

Torqued
11-22-2004, 11:37 AM
lol!

Thanks for all of your work. I will try to install this evening when I get home. :)

reteep
11-22-2004, 11:52 AM
I've added two new columns in the warnings table, called removed_by and removed_date. Just add those two and upload the warn.php and admin_warn files to your web server.

Rgds

Nothing else to change when using ZT's hack? Aren't there any new templates or template changes?

sv1cec
11-22-2004, 12:00 PM
Nothing else to change when using ZT's hack? Aren't there any new templates or template changes?
If you are using ZT version 1.5 hack, there are a lot of changes to be done. Read the instructions. If you are using the mods I've released in ZT's thread though, and you have installed all of them, then the only changes are the ones mentioned above.

There is an upgrade script which can help you, if you are using ZT's 1.5.

Rgds

hello
11-22-2004, 03:22 PM
when i try to warn someone i get a blank page and when i try to look at mine or someone elses warnings how can i fix this?

sv1cec
11-22-2004, 04:09 PM
when i try to warn someone i get a blank page and when i try to look at mine or someone elses warnings how can i fix this?
Check that you have done the changes as instructed. This hack is working in several sites, so you must have missed something.

Rgds

hello
11-22-2004, 08:03 PM
i have several times and i still get a blank page

Koutaru
11-22-2004, 08:11 PM
Perhaps a missing template or phrase?

sv1cec
11-22-2004, 09:15 PM
Perhaps a missing template or phrase?

Has anybody else got a blank page? No matter what I try, I can't make it come up with a blank page. Hello, are you sure you have done all the steps described in the instructions?

Rgds

mcyates
11-23-2004, 12:03 PM
mysql error: Unknown column 'hierarchical' in 'field list'

ERROR BELOW::


Database error in vBulletin 3.0.3:

Invalid SQL: update warning_options set
hierarchical='Yes',
warner='0',
banned_limit='7',
points_before_banned='10',
banned_usergroup_id='8',
troll_usergroup_id='8',
protected_usergroups='6',
incr_ban_days='Yes',
max_no_bans='3',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='Yes',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='10'
where oid='1'
mysql error: Unknown column 'hierarchical' in 'field list'

mysql error number: 1054

Date: Tuesday 23rd of November 2004 01:45:59 PM
Script: http://www.myfootballforum.com/1029329302934853dkfjdkfjdkfj/admin_warn.php
Referer: http://www.myfootballforum.com/1029329302934853dkfjdkfjdkfj/admin_warn.php?act=manageoptions
Username: boro_boy
IP Address: 62.254.64.19

==============================================

This is possible because I can't find anything containing 'hierarchical' in the SQL below I think the 'hierarchical' bit of the script which is missing should be above line 3 below, (above `warner` int(10) unsigned, )

CREATE TABLE `".TABLE_PREFIX."warning_options` (
`oid` int(15) NOT NULL auto_increment,
`warner` int(10) unsigned,
`banned_limit` int(15) NOT NULL,
`points_before_banned` int(15) NOT NULL default '0',
`banned_usergroup_id` int(15) default '0',
`protected_usergroups` varchar(10),
`troll_usergroup_id` varchar(10),
`incr_ban_days` char(3),
`max_no_bans` int(5),
`multiple_per_post` char(3),
`send_pm_warning` char(3),
`send_em_warning` char(3),
`historical` char(3),
`allowoffpost` char(3),
`warnings_per_page` int(3),
PRIMARY KEY (`oid`)
) TYPE=MyISAM


This erro keeps coming up when i change the settings in the admin cp.

Cheers

mcyates
11-23-2004, 12:07 PM
I fixed it my adding this

ALTER TABLE `warning_options` ADD `hierarchical` VARCHAR( 3 ) DEFAULT NULL AFTER `oid` ;

Revan
11-23-2004, 12:16 PM
Sounds nice, Im gonna chill with Erwin's hack until the number of users reporting bugs <= 0 ;)

mcyates
11-23-2004, 12:31 PM
Sounds nice, Im gonna chill with Erwin's hack until the number of users reporting bugs <= 0 ;)
that's the only bug i've found. Eveything else is fine, great hack!!

Installed

sv1cec
11-23-2004, 01:58 PM
And this is not a bug, the installation script and the upgrade script include this column, in the warning_options table, check for yourself. Probably mcyates didn't run the scripts, maybe he upgraded manually, from an earlier version which I've published in ZT's thread?

Rgds

mcyates
11-23-2004, 02:20 PM
I ran the script but it didn't do anything so i had to do it manually. It was the upgrade script that i ran.

sv1cec
11-23-2004, 02:25 PM
I ran the script but it didn't do anything so i had to do it manually. It was the upgrade script that i ran.
What you mean it didn't do anything? Didn't it upgraded your tables etc? Oh heck, time to work on that Sun, I need to do something about its disk space, before I can use it as a test environment again.

Agent Jones
11-23-2004, 02:45 PM
Clean install works fine! Thanks!

* clicks install

DS MrSinister
11-23-2004, 03:39 PM
I am also having problem with the Upgrade..

Will not goto the 2nd step. It ask me to remove Old templates. than I Click that. then It goes to a Blank screen..

It looks like it remove the templates but did not add anything to the database. mmmmmmmmmmmmmmmmmmmmmm

Revan
11-23-2004, 04:11 PM
Since you said this was your first officially released hack, sv1, some encouraging words:
Hang in there, mate ;) All this bs with bugs and installer errors and [insert other errors here] is nothing compared to what the RPG thread looked like in the first 7 pages :p
If there was a possible error, it was there ;)
The first 3 days I think I shipped 5 emails with bugfixes and new versions XD
So it will get better in just a little while, and I promise you my click of install the day I install this :D (Im not clicking just now because I dont need to recieve mails about updates to a hack I havnt installed yet ;))

sv1cec
11-23-2004, 05:52 PM
I am also having problem with the Upgrade..

Will not goto the 2nd step. It ask me to remove Old templates. than I Click that. then It goes to a Blank screen..

It looks like it remove the templates but did not add anything to the database. mmmmmmmmmmmmmmmmmmmmmm
OK, that's the kind of feedback I want. Let me see what's the issue and I'll get back.

mcyates
11-23-2004, 06:38 PM
OK, that's the kind of feedback I want. Let me see what's the issue and I'll get back.
that's what it done to me, i had to install it manually.

sv1cec
11-23-2004, 07:10 PM
that's what it done to me, i had to install it manually.

Gentlemen,

My apologies, there were indeed some mistakes in the upgrade_warn.php file, which is used to upgrade from Zero Tolerance's Warning Hack V.1.5 to my Advanced Warning System (latest release).

I corrected those mistakes and improved the appearance of the program a little. I managed to test it on my Sun, but one thing I couldn't test, was the database tables changes. Can someone who is using Zero's hack try it and let me know it works in that part as well?

Many thanks and apologies for any inconvenience.

sv1cec
11-23-2004, 07:17 PM
Since you said this was your first officially released hack, sv1, some encouraging words:
Hang in there, mate ;) All this bs with bugs and installer errors and [insert other errors here] is nothing compared to what the RPG thread looked like in the first 7 pages :p
If there was a possible error, it was there ;)
The first 3 days I think I shipped 5 emails with bugfixes and new versions XD
So it will get better in just a little while, and I promise you my click of install the day I install this :D (Im not clicking just now because I dont need to recieve mails about updates to a hack I havnt installed yet ;))
Revan,

Many thanks for the encouraging words. I sincerely appreciate them.

Although I am hardly new to programming, I learned about php last June, when I opened my forums site.

What makes me really happy, is that people are not reporting bugs or errors in the hack's operation, but in the installation (or rather the upgrade) script, which I copied from Zero's thread and did some changes (that proves my total incompetence, I can't even copy properly! LoL). These, I made in a hurry, since people were asking for an installer and Zero had asked me for an upgrade script.

Thank God, nothing difficult to fix, so people have the corrected one now.

As for the e-mails, I didn't even know that I had that option, until earlier today. I am not sure I am going to use it, so don't worry about me flooding your mailbox.

Again, thanks for the encouraging words, I'll hang in there, I like the environment.

Rgds
-------------
John

DS MrSinister
11-23-2004, 07:18 PM
Gentlemen,

My apologies, there were indeed some mistakes in the upgrade_warn.php file, which is used to upgrade from Zero Tolerance's Warning Hack V.1.5 to my Advanced Warning System (latest release).

I corrected those mistakes and improved the appearance of the program a little. I managed to test it on my Sun, but one thing I couldn't test, was the database tables changes. Can someone who is using Zero's hack try it and let me know it works in that part as well?

Many thanks and apologies for any inconvenience.

this what i get now

New templates added to styleid 2

Click on "Apply Database Upgrades" to continue.

Database error in vBulletin 3.0.3:

Invalid SQL: update warning_options set
hierarchical='Yes',
warner='1',
troll_usergroup_id='8',
protected_usergroups='6',
incr_ban_days='Yes',
max_no_bans='2',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20'
where oid='1'
mysql error: Unknown column 'warner' in 'field list'

mysql error number: 1054

sv1cec
11-23-2004, 07:32 PM
this what i get now

New templates added to styleid 2

Click on "Apply Database Upgrades" to continue.

Database error in vBulletin 3.0.3:

Invalid SQL: update warning_options set
hierarchical='Yes',
warner='1',
troll_usergroup_id='8',
protected_usergroups='6',
incr_ban_days='Yes',
max_no_bans='2',
multiple_per_post='Yes',
send_pm_warning='Yes',
send_em_warning='No',
historical='Yes',
allowoffpost='Yes',
warnings_per_page='20'
where oid='1'
mysql error: Unknown column 'warner' in 'field list'

mysql error number: 1054


Please download the upgrade_warn.php file again. I corrected that.

Let me know if you face more problems.

By the way, does anyone knows how I can stop seeing the hack's description on the top of every page in this thread? I hate this new feature here.

Thanks

DS MrSinister
11-23-2004, 11:05 PM
I get this now..

something is wrong with view log in admin panel and view warning


Invalid SQL: select w.*,u.username as wusername,u.userid as wuserid,wt.* from
warnings w
left join user u on(u.userid=w.warned_by)
left join warning_types wt on(wt.tid=w.warned_warning_id)
where w.warned_user='1' order by w.warned_time DESC
mysql error: Unknown column 'w.warned_user' in 'where clause'

mysql error number: 1054

sv1cec
11-24-2004, 05:01 AM
I get this now..

something is wrong with view log in admin panel and view warning


Invalid SQL: select w.*,u.username as wusername,u.userid as wuserid,wt.* from
warnings w
left join user u on(u.userid=w.warned_by)
left join warning_types wt on(wt.tid=w.warned_warning_id)
where w.warned_user='1' order by w.warned_time DESC
mysql error: Unknown column 'w.warned_user' in 'where clause'

mysql error number: 1054

warned_user is a column which exists from the tables of Zero Tolerance. I haven't add it myself. Are you sure you had Zero's hack version 1.5 installed and working properly?

Do this for me:

Run the following queries:

1) describe warnings
2) describe warning_types
3) describe warning_options

Post the results.

One more thing, how on earth did you manage to get this statement? The statement is used when you try to see the warnings of a user (View XYZ'z Warnings" link). And from the error you posted, it looks as if you have that link in a post which is made by userid 1, which is your admin. There is no way that you will get that link in an admin post, with my hack. Are you sure you have followed the instructions, or did you just run upgrade_warn.php and stopped there?

Also, you do not tell me what is your problem in the admincp/view warning logs. I can't guess, you have to tell me the problem.

Rgds

hello
11-24-2004, 05:30 AM
ok i have fixed it lol finally, i had to make all the templates because i have 2 skins and it only put the templates on 1 of them, that is how you fix it :)

DS MrSinister
11-24-2004, 05:30 AM
ok i delete this out of the database lol..

`warned_user` int(15) NOT NULL default '0',


I need to know the code to add this to my database.. I am new to this stuff don't know much coding.

looks like the only thing i am missing....

sv1cec
11-24-2004, 07:27 AM
ok i delete this out of the database lol..

`warned_user` int(15) NOT NULL default '0',


I need to know the code to add this to my database.. I am new to this stuff don't know much coding.

looks like the only thing i am missing....
Run the following query:

ALTER TABLE `warnings` ADD `warned_user` int(15) NOT NULL default '0'

And now that you have it right, download the latest zip and upload the files to your web server again. Did some more changes this morning.

Files you need to download, are shown at the bottom of the hack's description, at the top of every page.

Rgds

sv1cec
11-24-2004, 07:32 AM
ok i have fixed it lol finally, i had to make all the templates because i have 2 skins and it only put the templates on 1 of them, that is how you fix it :)
Glad you have it OK now.

I have only the default skin in my forums, so I have no idea how to work with more than that. It's been discussed somewhere before, in this thread, and another member has come up with a solution, which I'll try to include in the installation script, but I can't promise anything.

Rgds
---------
John

hello
11-24-2004, 07:51 AM
ok i have found another problem, when you go to modcp it says
"Parse error: parse error, unexpected T_STRING in /home/volution/public_html/forums/modcp/index.php on line 348" and on that line is "print_nav_panel();"

Robert Basil
11-24-2004, 07:59 AM
I'm running 1.2.2 and it works great! What exactly does 1.2.3 offer over 1.2.2?

What do you mean by "better operation"?

P.S. Thanks for the great hack!

sv1cec
11-24-2004, 09:07 AM
I'm running 1.2.2 and it works great! What exactly does 1.2.3 offer over 1.2.2?

What do you mean by "better operation"?

P.S. Thanks for the great hack!
Take my word for it, it offers you better operation. Like, really sending a PM/e-mail when a warning is deleted by cron. It also reports that it was cron which deleted the warning, in your admin cp or modcp lists.

Just download the zip and upload the three files.

--------
John

sv1cec
11-24-2004, 09:09 AM
ok i have found another problem, when you go to modcp it says
"Parse error: parse error, unexpected T_STRING in /home/volution/public_html/forums/modcp/index.php on line 348" and on that line is "print_nav_panel();"
Right above that line, you should have the followings:


$printhr = true ;
construct_nav_option ( 'View Issued Warnings', 'mod_warn.php', '<br />' ) ;
construct_nav_group ( 'Warning System', '<hr />' ) ;


Maybe you have copied this part, wrong? A missing semi-colon or a missing quote? It works for me.

saininja
11-24-2004, 11:25 AM
Right above that line, you should have the followings:


$printhr = true ;
construct_nav_option ( 'View Issued Warnings', 'mod_warn.php', '<br />' ) ;
construct_nav_group ( 'Warning System', '<hr />' ) ;


Maybe you have copied this part, wrong? A missing semi-colon or a missing quote? It works for me.








I have there same problem also, if I into the Mod CP go comes the following error message:Parse error: parse error, unexpected T_STRING in /home/www/xxx/html/xxx/modcp/index.php on line 359


$printhr = true ;
construct_nav_option ( 'View Issued Warnings', 'mod_warn.php', '<br />' ) ;
construct_nav_group ( 'Warning System', '<hr />'


Jenny

sv1cec
11-24-2004, 11:45 AM
I have there same problem also, if I into the Mod CP go comes the following error message:Parse error: parse error, unexpected T_STRING in /home/www/xxx/html/xxx/modcp/index.php on line 359


$printhr = true ;
construct_nav_option ( 'View Issued Warnings', 'mod_warn.php', '<br />' ) ;
construct_nav_group ( 'Warning System', '<hr />'


Jenny
Jenny and hello,

You are both right, there is a cut off line in the instructions. Please go into your modcp/index.php file and replace that line which starts with construct_nav_group, with the line below:


construct_nav_group ( 'Warning System', '<hr />');


Sorry for the problem.

Rgds
-----------
John

mcyates
11-24-2004, 12:28 PM
Gentlemen,

My apologies, there were indeed some mistakes in the upgrade_warn.php file, which is used to upgrade from Zero Tolerance's Warning Hack V.1.5 to my Advanced Warning System (latest release).

I corrected those mistakes and improved the appearance of the program a little. I managed to test it on my Sun, but one thing I couldn't test, was the database tables changes. Can someone who is using Zero's hack try it and let me know it works in that part as well?

Many thanks and apologies for any inconvenience.
the current warnings don't appear in the postbit:

Warnings Level: $post[warning_level]
Number of bans: $post[warning_bans]

Why is this?

mcyates
11-24-2004, 01:55 PM
the current warnings don't appear in the postbit:

Warnings Level: $post[warning_level]
Number of bans: $post[warning_bans]

Why is this?
fixed, i didn't apply the tamplate properly, as i did install this manually.

DS MrSinister
11-24-2004, 02:50 PM
Run the following query:

ALTER TABLE `warnings` ADD `warned_user` int(15) NOT NULL default '0'

And now that you have it right, download the latest zip and upload the files to your web server again. Did some more changes this morning.

Files you need to download, are shown at the bottom of the hack's description, at the top of every page.

Rgds


thank you thank you.

Its all working now!!

mcyates
11-24-2004, 05:06 PM
One questions

If i set the banning length to 7 days this means:

1st Ban - 7 Days
2nd Ban - 14 days
3rd Ban - PERMANENT

But what if the maturity of the ban is 30 days, does that mean the person will be banned for 30 days? or just 7? My bannign limit is 10 points and some of my warnings are for 10 points!!!

sv1cec
11-24-2004, 05:38 PM
One questions

If i set the banning length to 7 days this means:

1st Ban - 7 Days
2nd Ban - 14 days
3rd Ban - PERMANENT

But what if the maturity of the ban is 30 days, does that mean the person will be banned for 30 days? or just 7? My bannign limit is 10 points and some of my warnings are for 10 points!!!
OK, let's clarify these things up:

Maturity: The period over which the points associated with a warning, affect the user's account. When the maturity period of a warning expires, then the points associated with that warning are removed.

Ban Duration: How many days a member will be banned. In order for a member to be banned, he/she has to collect the maximum warning points defined (banning limit). The initially defined ban duration, gets multiplied by the number of bans if you use incremental banning.

So the maturity of a warning does not affect the duration of the ban. If a warning carries the same number of points, as your ban limit, this means that the moment the member gets warned for that particular warning, he/she is also banned. How long will he be banned? As long as your ban period is, unless if you use incremental banning and the user has more than zero bans.

So yes, if your banning period is 7 days, first ban=7 days, second=14 days, third is permanent (if that's what you have defined in the options).

How long will those warning points remain into his account? As long as the warning maturity was, in this case 30 days. After 30 days, the warning will be removed.

You have indeed a point here. If a member commited enough offences to be banned, should after he is banned still carry the maximum warning points, and all his warnings, or shall we consider his warnings "punished" and remove them? I mean he was bad, he as punished, shall he starts at the edge again, or shall we give him/her a clean start, after he/she gets unbaned?My opinion is that the warnings and the associated points should be removed. If not we end up with someone who has 10 warning points, coming from 5 warnings, (which points if added can be more than 10) and who is not banned, even though he has the maximum warning points. You said messy? You bet.

Let me know of your opinions on this matter, I can change the hack to act in either way, depending on a Warning Option, or I can make it permanent to have the warnings removed (or made inactive), once a member is banned.

Rgds
----------

John

mcyates
11-24-2004, 10:17 PM
I think the best thing for this is:

If a user is banned for 7 days (your Ban Duration is for 7 days) but has 14 warning points and the banning limit is ten, the Maturity is 30. hmmm i'm confused now, i think thewy contractdict each other and one must go!!

A better system

Instead of having the Ban Duration and variable maturity i think you should change it to a fixed maturity, where all warnings last for the same amount of time..

For example the ban limit is 10: (each warning last for 10 days)

1st warning (4 points) issued on 01/01/01 (ends on 11/01/01)
2nd warning (2 points) issued on 07/01/01 (ends on 18/01/01)
3rd warning (6 points) issued on 09/01/01 (ends on 20/01/01)

On the 09 when he gor the 3rd warnign he would have been banned, but only for 2 days as on the eleventh the 1st warning would have expired.

Taking the above into consideration, the think which is causing confusing is the ban length when you reach 10 points (or whatever your limit is) this needs to go. Simple as that. hhmmm let me think again

Nope i'm totally confused, sorry i'm posting this post anyway as its taken me about 30 min thinking!!!

mcyates
11-24-2004, 10:20 PM
I think the best thing for this is:

If a user is banned for 7 days (your Ban Duration is for 7 days) but has 14 warning points and the banning limit is ten, the Maturity is 30. hmmm i'm confused now, i think thewy contractdict each other and one must go!!

A better system

Instead of having the Ban Duration and variable maturity i think you should change it to a fixed maturity, where all warnings last for the same amount of time..

For example the ban limit is 10: (each warning last for 10 days)

1st warning (4 points) issued on 01/01/01 (ends on 11/01/01)
2nd warning (2 points) issued on 07/01/01 (ends on 18/01/01)
3rd warning (6 points) issued on 09/01/01 (ends on 20/01/01)

On the 09 when he gor the 3rd warnign he would have been banned, but only for 2 days as on the eleventh the 1st warning would have expired.

Taking the above into consideration, the think which is causing confusing is the ban length when you reach 10 points (or whatever your limit is) this needs to go. Simple as that. hhmmm let me think again

Nope i'm totally confused, sorry i'm posting this post anyway as its taken me about 30 min thinking!!!
I think you have toooooooooooo many variables!!!!

Use incremental banning periods?
Number Of Days Members Are Banned

I still think its the Warn Maturity which is confusing me!! As this can contradict the ban length.

OHHHHHH MY BRAIN!!!

ChrisLM2001
11-25-2004, 01:10 AM
I installed this mod manually.

For some reason if I remove the quotes the query will go through like this on MySQL 4.0.20-standard / phpMyAdmin 2.6.0-pl2.......

CREATE TABLE `vbforum_warning_options`

But my question is this: in creating an autobot for the system warnings, you said this.....

Save this user and then go to your vBulletin Options, Site Name/URL/Contact Details. You will find a new field there called "Message Tag".
I don't get that new field. :(

Where is that "Message Tag" code so I can double check if I typed/saved it correctly?

Thanks.

Chris

sv1cec
11-25-2004, 04:09 AM
I installed this mod manually.

For some reason if I remove the quotes the query will go through like this on MySQL 4.0.20-standard / phpMyAdmin 2.6.0-pl2.......

CREATE TABLE `vbforum_warning_options`

But my question is this: in creating an autobot for the system warnings, you said this.....


I don't get that new field. :(

Where is that "Message Tag" code so I can double check if I typed/saved it correctly?

Thanks.

Chris
This is done by the install_warn.php script, or described in the upgradeToLatestVersion.txt.

To check it out, you should have the following phrases created:

setting_messagetag_desc
setting_messagetag_title

And also, in your setting table, there should be a line with varname equals to 'messagetag'.

Check the install_warn.php script for the queries you can run, or read the instructions in the upgrade on how to insert it from a browser page, if you do not have the above. If you have only one or two of them, but not all, you have to run the queries for the missing ones.

Rgds

sv1cec
11-25-2004, 04:17 AM
I think you have toooooooooooo many variables!!!!

Use incremental banning periods?
Number Of Days Members Are Banned

I still think its the Warn Maturity which is confusing me!! As this can contradict the ban length.

OHHHHHH MY BRAIN!!!
The warn maturity is not contradicting the ban duration. Think of it this way. A member commits a ... "crime" and gets a warning for 3 points. The guy is not a bad guy, he just didn't read the rules correctly. So from there on, he behaves. Should those 3 points be with him for ever? I do not think so. Maybe, after 10 days, or three months, depending on the ... crime, the points get removed. If this is fixed or variable, it's up to you. You can have the same maturity period on all your warning types.

The question is, what you do with a member who keeps commiting offences, until he gets banned. Do you still keep his warning points after he is banned, or do you erase them and let him start from scratch when he is unbanned? The more I think of it, the more I believe that we should clean up his records, to give him a fresh start. The other way around can be confusing.

Can other people who have installed this hack jump in and tell us their opinions?

Rgds
----------
John

ChrisLM2001
11-25-2004, 09:18 AM
That did the trick, I didn't add these details....

Varname: messagetag
Setting Group: Site Name / URL / Contact Details
Title: Message Tag
Description: Tag to be appended at the front of the subject line in messages send by the forums.
Option Code: (blank)
Default: (blank)
Display Order: 35

Now it displays perfectly. :)

Chris

sv1cec
11-25-2004, 09:22 AM
That did the trick, I didn't add these details....

Varname: messagetag
Setting Group: Site Name / URL / Contact Details
Title: Message Tag
Description: Tag to be appended at the front of the subject line in messages send by the forums.
Option Code: (blank)
Default: (blank)
Display Order: 35

Now it displays perfectly. :)

Chris
Glad you have it OK now.

Keep in mind, that if you want, you may use this tag in other messages as well. For example, I have added in every e-mail send out by my forums, the registration e-mail, the welcome e-mail etc. Then your members can filter on that tag, and move all their forums messages in a folder of their choice. I know they can do it with the e-mail address too, but what if the admin wants to e-mail someone for some reason? If you are filtering with the e-mail address the admin's e-mail will end up in the Forums folder and might not be seen.

Just a thought!

mcyates
11-25-2004, 03:18 PM
Glad you have it OK now.

Keep in mind, that if you want, you may use this tag in other messages as well. For example, I have added in every e-mail send out by my forums, the registration e-mail, the welcome e-mail etc. Then your members can filter on that tag, and move all their forums messages in a folder of their choice. I know they can do it with the e-mail address too, but what if the admin wants to e-mail someone for some reason? If you are filtering with the e-mail address the admin's e-mail will end up in the Forums folder and might not be seen.

Just a thought!
Its the Number Of Days Members Are Banned which is messing things up.

1st warning (4 points) issued on 01/01/01 (ends on 11/01/01)
2nd warning (2 points) issued on 07/01/01 (ends on 18/01/01)
3rd warning (6 points) issued on 09/01/01 (ends on 20/01/01)

The member will only be banned for 2 days (after he received the 3rd warning) untill the 1st warning has expired. Its better to remove the "Number Of Days Members Are Banned" and just let the warnings work on their own, like the above one did. If they go over the warning limit, then they just have to wait untill one of the warnings have expired which will make them unbanned.

Is there anyway I can disable the Number Of Days Members Are Banned on my forum?

It is a great hack btw i already banned someone lol!!

SamirDarji
11-25-2004, 03:31 PM
The question is...Do you still keep his warning points after he is banned, or do you erase them and let him start from scratch when he is unbanned?
I think that the warnings themselves define whether a user should start with a blank slate or not. For example:

A user is warned with a warning that has a duration of 5 days
The same user is warned with a warning that has a duration of 90 days (serious offense)
The same user is warned with another warning that has a duration of 10 days. This warning causes the user to be banned for 30 days.

Now, once the user is unbanned, the lessor offense warnings have expired, so the points don't count anymore. But the more serious offense is still on record, so another few minor offenses or one major one can get them banned again.

I think it is important for them to not have a clean slate because some things are too serious to give them a completely fresh start.

sv1cec
11-25-2004, 04:19 PM
Its the Number Of Days Members Are Banned which is messing things up.

1st warning (4 points) issued on 01/01/01 (ends on 11/01/01)
2nd warning (2 points) issued on 07/01/01 (ends on 18/01/01)
3rd warning (6 points) issued on 09/01/01 (ends on 20/01/01)

The member will only be banned for 2 days (after he received the 3rd warning) untill the 1st warning has expired. Its better to remove the "Number Of Days Members Are Banned" and just let the warnings work on their own, like the above one did. If they go over the warning limit, then they just have to wait untill one of the warnings have expired which will make them unbanned.

Is there anyway I can disable the Number Of Days Members Are Banned on my forum?

It is a great hack btw i already banned someone lol!!


What you are asking is not the simplest thing to do, with just a parameter. It requires logic change, the unbanning method is now based on the standard algorithm provided by vB. If I were to implement your way, we had to have a different algorithm, which would check the warning points of the banned members versus the maximum number of points, and if below, it will unban them.

It's not a bad idea, but it is a totally different method of handling the problem.

Maybe in release 2.0, I 'll build in different scenarios, and let the admin select which one he/she likes to use. Until now, I have three in my mind, the existing one, another one where the warning points and the warnings of a banned member are deleted and yours. The second one can be easily implemented with a conditional and a Warning Option, in the code, as it is today. Yours needs more work, but hey if the twins allow me, I'll do it.

Rgds
-----------
John

sv1cec
11-25-2004, 07:06 PM
I think that the warnings themselves define whether a user should start with a blank slate or not. For example:

A user is warned with a warning that has a duration of 5 days
The same user is warned with a warning that has a duration of 90 days (serious offense)
The same user is warned with another warning that has a duration of 10 days. This warning causes the user to be banned for 30 days.

Now, once the user is unbanned, the lessor offense warnings have expired, so the points don't count anymore. But the more serious offense is still on record, so another few minor offenses or one major one can get them banned again.

I think it is important for them to not have a clean slate because some things are too serious to give them a completely fresh start.

I tend to agree with you.

The only problem is, that with the system as it is now, when a member reaches the maximum points and he is banned, his total warning points get reset to the maximum warning points. When the lesser warnings start getting removed, he artificially ends up with fewer points than he should have. In your example above, and assuming that the first offense was worth 2 points, the second 7 and the third 5, when the user was banned, he had 14 points, but the moment he gets banned he is left with 10 (let's assume the limit is 10). When the two minor warnings expire, (2+5) he is left with only 3 points.

I think that this is something I should address, by not resetting his total points to 10, but leaving them at whatever they were the moment he got banned, i.e. 14 in this case. In that way, even when the minor offenses are removed, he still has the 7 points from the major one, and with 3 more he gets banned again.

What do you people think?

------------

John

Shack Networks
11-25-2004, 07:45 PM
The problem that I have is my added groups can not be warned/banned by Mods.

I have 2 user groups VIP and VIP+ and the mods can not see any way of warning them as the links do not show up for this group.

They can only warn/ban the default registered user group.

Admin can warn/ban all groups..

Any work around for this or will they be immune to being warned forever...

H

Shack Networks
11-25-2004, 07:47 PM
ALSO

Can this be adapted so say for instance a member types a banned word or link to a website that is in a banned list he is automaticaly added a set amount of points with no mod intervention needed ?

If this feature could be added this hack would be 101% fantastic as aposed to 100% it is at the moment...

H

mcyates
11-25-2004, 07:56 PM
I tend to agree with you.

The only problem is, that with the system as it is now, when a member reaches the maximum points and he is banned, his total warning points get reset to the maximum warning points. When the lesser warnings start getting removed, he artificially ends up with fewer points than he should have. In your example above, and assuming that the first offense was worth 2 points, the second 7 and the third 5, when the user was banned, he had 14 points, but the moment he gets banned he is left with 10 (let's assume the limit is 10). When the two minor warnings expire, (2+5) he is left with only 3 points.

I think that this is something I should address, by not resetting his total points to 10, but leaving them at whatever they were the moment he got banned, i.e. 14 in this case. In that way, even when the minor offenses are removed, he still has the 7 points from the major one, and with 3 more he gets banned again.

What do you people think?

------------

John
I think that this is something I should address, by not resetting his total points to 10, but leaving them at whatever they were the moment he got banned, i.e. 14 in this case. In that way, even when the minor offenses are removed, he still has the 7 points from the major one, and with 3 more he gets banned again.

What do you people think?

That would be better, just let the points warning do the job. and when one warning is removed and the points go below the banned limit he is unbanned

sv1cec
11-25-2004, 09:57 PM
The problem that I have is my added groups can not be warned/banned by Mods.

I have 2 user groups VIP and VIP+ and the mods can not see any way of warning them as the links do not show up for this group.

They can only warn/ban the default registered user group.

Admin can warn/ban all groups..

Any work around for this or will they be immune to being warned forever...

H
I'll see what I can do about your VIPs, as for the list, this needs more investigation. I have to see how the forbidden words are handled, and see if this can be incorporated in the hack. Possibly somewhere in the postbit or when you post a new post.

And I was planning to do some chores tomorrow morning.....

Rgds
-------
John

Shack Networks
11-25-2004, 10:04 PM
Thanks Man I realy appreciate the reply, this hack is a god send and I have often wondered why a system like this was NEVER incorporated into vBull in the first place as it would of saved many Admins a lot of time and heartache.

I was thinking it would be a good idea to try and automate several of the warnings if possible... No idea how it would work but it would be fantastic if it could be pulled off..

Many thanks and heres to looking forward for a VIP fix lol

Ta

H

ChrisLM2001
11-25-2004, 11:45 PM
I think that this is something I should address, by not resetting his total points to 10, but leaving them at whatever they were the moment he got banned, i.e. 14 in this case. In that way, even when the minor offenses are removed, he still has the 7 points from the major one, and with 3 more he gets banned again.

What do you people think?

That would be better, just let the points warning do the job. and when one warning is removed and the points go below the banned limit he is unbanned
That's a good suggestion. Try to make it as automatic as possible, too. Points come down, and the offender can get the green light to return. Would be nice if this hack can be written so after the points do come down, an Admin can choose which usergroup the offender can return too. Either his former one, or a moderated one. That's one less followup an Admin needs to do. Set it and forget it.

Sv1cec: thanks for the heads up about the email variations, too. :)

Chris

fpouk
11-26-2004, 02:07 AM
Any way of setting this hack up where only admins or admins and mods can view the warnings of people. Dont really like the idea of other members being able to view others warning levels.

thanks

SamirDarji
11-26-2004, 02:28 AM
I tend to agree with you.

The only problem is, that with the system as it is now, when a member reaches the maximum points and he is banned, his total warning points get reset to the maximum warning points. When the lesser warnings start getting removed, he artificially ends up with fewer points than he should have. In your example above, and assuming that the first offense was worth 2 points, the second 7 and the third 5, when the user was banned, he had 14 points, but the moment he gets banned he is left with 10 (let's assume the limit is 10). When the two minor warnings expire, (2+5) he is left with only 3 points.

I think that this is something I should address, by not resetting his total points to 10, but leaving them at whatever they were the moment he got banned, i.e. 14 in this case. In that way, even when the minor offenses are removed, he still has the 7 points from the major one, and with 3 more he gets banned again.

You know, when I first read how the system would reset the total to ban level, I thought that it shoud work differently. But at that time it really didn't affect too much, so it wasn't of much concern. Now it does affect the way warnings and bans would expire. I'm not sure how hard it would be to make it keep the total as opposed to resetting it, but if it is too hard, having the 3 points (in your example) would be better than 0. I'm sure whatever changes (if any) that need to be done will be positive.

And I think I need to say this as well. I have been working with vb extensively for a couple of months now on my site, and I have worked on all sorts issues and hacks/fixes. I need to say that the support for this hack (and everything John has done for this warning hack) is far beyond what I have seen even for pay solutions. Thank you John for dedicating this type of time and effort to the community. Your contribution means so much to so many of us. I vote this should be the hack of the month.

sv1cec
11-26-2004, 05:20 AM
You know, when I first read how the system would reset the total to ban level, I thought that it shoud work differently. But at that time it really didn't affect too much, so it wasn't of much concern. Now it does affect the way warnings and bans would expire. I'm not sure how hard it would be to make it keep the total as opposed to resetting it, but if it is too hard, having the 3 points (in your example) would be better than 0. I'm sure whatever changes (if any) that need to be done will be positive.

And I think I need to say this as well. I have been working with vb extensively for a couple of months now on my site, and I have worked on all sorts issues and hacks/fixes. I need to say that the support for this hack (and everything John has done for this warning hack) is far beyond what I have seen even for pay solutions. Thank you John for dedicating this type of time and effort to the community. Your contribution means so much to so many of us. I vote this should be the hack of the month.
OK, let me try to answer some of the latest posts here:

1. I have to thank SamirDarji for the nice words, sincerely appreciated.

2. From next release, points would accumulate and not be reset to the maximum. Please be careful, I do not say that banned members will be unbanned, based on the expiration of the warnings, this is more involved and it might take some time. But if the warning points are not reset, then at least someone can always do the maths and come up with the right answers. As it is today, you may see 4 points, and wonder where are the rest of them, since the totals for the warnings one has received maybe 12 or 15.

3. Automating warnings: I'll check it out today and see how easy it is to implement it in a subversion, or if a new version would be required.

4. For ChrisLM2001, at the moment, the banned member is restored to his previous usergroup when he is unbanned. I can add a Warning Options, in which you could specify the user group in which the member is returned into. Would that help?

5. For fpouk, it can be done, you just have to enclose the part which shows the warning points and bans, in conditionals similar to the ones used for showing the "Warn XYZ" and "View XYZ's Warnings". The question is, if you are using hierarchical, then the Super Mods will be able to see the warning points of the mods. Do you want it that way? For your help, it's in the postbit template (or postbit_legacy).

6. For Shack Networks, if you do not use the hierarchical schema, I think your admins/supermods/mods can warn any other usergroup. I'll change it so that this works that way, even with hierarchical.

7. For Shack Networks, as for your list idea, I can check what it means to check the words against a list and add a warning automatically. As for the web sites list, I think this can wait, I am not sure I have the expertise to do it, so maybe in release... 12.0.0. LoL

OK, if you guys don't make me answer so many posts here I would have time to work more on the hack. See you later, I am going to make the "to do" list and start working.

Rgds
-----------
John

sv1cec
11-26-2004, 12:35 PM
OK folks, some of your wishes have become a reality.

I just uploaded version 1.3, which answers your requests for:

- Being able to warn users belonging to other usergroups than "registered users"
- Being able to define who can see the warning level and the number of bans of your members, in postbit (it's either "All" or "Mgm" which stands for management team)
- Being able to define a user group in which your banned users get restored, when they get unbanned. I HAVE NOT TESTED THIS THING, I DO NOT HAVE A WAY TO TEST IT, SO WHOVEVER ASKED FOR IT, TRY IT AND LET ME KNOW.

I also added a new report, in the AdminCP, which allows you to see which of your members have been warned.

I still need to check the issue about the restricted words.

Rgds
----------
John

mcyates
11-26-2004, 02:05 PM
OK folks, some of your wishes have become a reality.

I just uploaded version 1.3, which answers your requests for:

- Being able to warn users belonging to other usergroups than "registered users"
- Being able to define who can see the warning level and the number of bans of your members, in postbit (it's either "All" or "Mgm" which stands for management team)
- Being able to define a user group in which your banned users get restored, when they get unbanned. I HAVE NOT TESTED THIS THING, I DO NOT HAVE A WAY TO TEST IT, SO WHOVEVER ASKED FOR IT, TRY IT AND LET ME KNOW.

I also added a new report, in the AdminCP, which allows you to see which of your members have been warned.

I still need to check the issue about the restricted words.

Rgds
----------
John
your the best!!!! Cheers

Updating it now.

mcyates
11-26-2004, 02:23 PM
updated everything seems to be working fine.

One question, when peoples bans run out, they are automatically unbanned andthire warnings are reset to 0? Right? Or do the warnings stay untill they have done their course? Say the warning was for 30 days, would that we wiped or would it stay?

sv1cec
11-26-2004, 02:33 PM
updated everything seems to be working fine.

One question, when peoples bans run out, they are automatically unbanned andthire warnings are reset to 0? Right? Or do the warnings stay untill they have done their course? Say the warning was for 30 days, would that we wiped or would it stay?
Warnings stay, they are not removed when the user gets unbanned.

Rgds
-------
John

mcyates
11-26-2004, 02:37 PM
oh right, so i have to remove them manually then?

sv1cec
11-26-2004, 02:43 PM
oh right, so i have to remove them manually then?
No, the warnings will be removed when they mature. You do not have to do it manually.

Rgds

sv1cec
11-26-2004, 02:46 PM
For Shack Networks, regarding the suggestion to automatically warn a member, if he uses censored words.

I tried to figure out, how I can use vBulletin's censored words for that, and I've managed to figure out how it works. All I need now, is to find out where to place the warning function, and a couple of other things. Is this a satisfactory solution for you, or not?

Let me know, so that I do not go around chasing my tail.

Bolas
11-26-2004, 02:53 PM
Mumble...
Does a moderator warn an user only for his forum, and the ban will be applied (by access masks) only for that forum?

sv1cec
11-26-2004, 04:26 PM
Mumble...
Does a moderator warn an user only for his forum, and the ban will be applied (by access masks) only for that forum?
The mdoerators can only warn within their own forums only.

As for ban applying to certain forums only, I am sorry, it is general. Ban is ban from all the forums.

Rgds

Bolas
11-26-2004, 05:17 PM
The mdoerators can only warn within their own forums only.

As for ban applying to certain forums only, I am sorry, it is general. Ban is ban from all the forums.

Rgds


So you tell me that a moderator CAN warn an user and the warn is cumulable with all the warn received from different moderators?
So more than one moderator, if in agreement between they, could ban an user with opportune warnings?

(sorry for my english... I hope you understand what I mean :| )

I'm trying to know if this system, with a little modification, could be closer to my needs..

Robert Basil
11-26-2004, 05:37 PM
So more than one moderator, if in agreement between they, could ban an user with opportune warnings?

Yes.

sv1cec
11-26-2004, 05:59 PM
You are trying to solve a .... hardware problem with software. Or in other words, you are trying to solve a policy issue with a software tool. If your forums have rules, and if the moderators are working with rules themselves, and if your warning types are correct, and if you have mundated that all deleted threads do not get deleted but are moved to a special forum and if..... then the moderators can not do the conspiracy.

If I wouldn't trust my moderators to do their job properly, I would change moderators.

Rgds

Shack Networks
11-26-2004, 07:13 PM
For Shack Networks, regarding the suggestion to automatically warn a member, if he uses censored words.

I tried to figure out, how I can use vBulletin's censored words for that, and I've managed to figure out how it works. All I need now, is to find out where to place the warning function, and a couple of other things. Is this a satisfactory solution for you, or not?

Let me know, so that I do not go around chasing my tail.
Oh you are a one man wonder m8 lol

This is spot on what I was thinking of..

Thanks and I look forward to testing and playing with it :)

H

mcyates
11-26-2004, 07:17 PM
Oh you are a one man wonder m8 lol

This is spot on what I was thinking of..

Thanks and I look forward to testing and playing with it :)

H
yes this (automatic warning) would be very good, i'd use this if you could get it to work.

Bolas
11-27-2004, 12:00 AM
You are trying to solve a .... hardware problem with software. Or in other words, you are trying to solve a policy issue with a software tool. If your forums have rules, and if the moderators are working with rules themselves, and if your warning types are correct, and if you have mundated that all deleted threads do not get deleted but are moved to a special forum and if..... then the moderators can not do the conspiracy.

If I wouldn't trust my moderators to do their job properly, I would change moderators.

Rgds

Your're absolutely right (and your hack is cool :devious: ).
But people is so fool.

Mumble.. I got lot of private forum and every forum has strange rules. So moderators apply own rules per forum... And your hack, distribuited per single forum (and not for the whole system) could be the solution for my.. ehm... strange community! ;)

SamirDarji
11-27-2004, 12:45 AM
Hmm...bans and warnings on a per forum basis. I wonder how hard this would be to implement?

[thinking out loud]
I guess there would be warnings that would have to be implemented on a per forum basis. And then bans also on a per forum basis. But since banning from an individual forum isn't part of vb's original design, all of that would have to be created. Hmmm...definitely not a quick bit of coding.
[/thinking out loud]

sv1cec
11-27-2004, 05:01 AM
Oh you are a one man wonder m8 lol

This is spot on what I was thinking of..

Thanks and I look forward to testing and playing with it :)

H
Regarding the automatic ban, what I've done so far, is to compare the original text written by the poster, with the text returned by the censor routine. If they are not the same, then we have censorship, which means the poster used bad words.

This I can trap and return it to the newreply.php file, I tested it yesterday. I get all the required info, userid, post id, etc. Now, I have to figure out (a) where to put the warning code so that it is used for either a new reply or a new thread or whatever and (b) how to code it, so that it does warn properly. Several issues have to be resolved, for example, there should be a specific warning type, which you should create and which will be known to the program (that's an issue, what if the program expects to find warning 999 and you have created 888?) etc.

As for the warning and banning per forum, that can be quite a bit of work, I do not see it coming unless vB changes some things in the code.

Rgds

ChrisLM2001
11-27-2004, 05:16 AM
4. For ChrisLM2001, at the moment, the banned member is restored to his previous usergroup when he is unbanned. I can add a Warning Options, in which you could specify the user group in which the member is returned into. Would that help?
WOW! Now this is support! :D

That will be perfect. Sometimes when members return they still may need to be monitored for a while, so it'll be nice to automatically send former banned members to a watch usergroup. That way the Admin can choose later to reintroduce them to the community, when s/he's sure the member has cooled off (especially after a fight on the forums and there's some ire still left).

Chris

sv1cec
11-27-2004, 05:24 AM
WOW! Now this is support! :D

That will be perfect. Sometimes when members return they still may need to be monitored for a while, so it'll be nice to automatically send former banned members to a watch usergroup. That way the Admin can choose later to reintroduce them to the community, when s/he's sure the member has cooled off (especially after a fight on the forums and there's some ire still left).

Chris
Chirs, what do you mean "That will be perfect"? I have already implemented this, in version 1.3

Unfortunatelly, you would have to be the one to test this feature out. Download and install and let me know how it works. Remember to go to the Warning Options and define the "restore" group.

Please test it out, or else you will have to wait until Monday or Tuesday for me to test it.

Rgds

ChrisLM2001
11-27-2004, 07:09 AM
Just downloaded it again and will applying it in a moment. Will let you know how it turns out.

Chris

ChrisLM2001
11-27-2004, 10:14 AM
Installed it and except for an error installing the phrases (needed to manually add the table prefix) it seems to be working. Haven't tested to see if it'll warn/ban anyone yet...lol.

Have one question: what is the warning maturity level? The other fields are explainable, but that one I don't know.

All in all it's a nice hack, with a lot of options (install it!!). :) :) :)

Chris

mcyates
11-27-2004, 10:22 AM
the warning maturity level is the lenght of time the warning stays "active" for the user. If you set this to 9 then the warning will go away after 9 days.

Hope that helps

mcyates
11-27-2004, 10:24 AM
one questions for you sv1cec, is it possible to include the name of the person banning the member to be included in the email and / or the pm

sv1cec
11-27-2004, 10:39 AM
one questions for you sv1cec, is it possible to include the name of the person banning the member to be included in the email and / or the pm
If you do not use the Hidden Warner feature, then the name of the moderator/admin/supermod is listed both in the PM and e-mail, as well as in the reports. The hidden warner is used by those admins, who do not want to reveal to the end-members, who the warner was.

Just set the Hidden Warner value to 0 and the real warn will .... warn!

Rgds

sv1cec
11-27-2004, 10:41 AM
Installed it and except for an error installing the phrases (needed to manually add the table prefix) it seems to be working. Haven't tested to see if it'll warn/ban anyone yet...lol.

Have one question: what is the warning maturity level? The other fields are explainable, but that one I don't know.

All in all it's a nice hack, with a lot of options (install it!!). :) :) :)

Chris
The maturity is the number of days the points of a warning will afffect the warned member's account. At the end of the maturity period, the cron job automatically removes those points from the member's account.

Rgds

sv1cec
11-27-2004, 12:21 PM
I just uploaded a new version, with some minor changes.

The report, I've added yesterday, was not correct. In order to show you which members have been warned, it was checking the warning level of the users. However, a user may have a warning level of zero points, and still have received warnings, which have expired or were deleted. So I added another column in the user table, where I keep the number of warnings a user has received and changed the report accordingly. The upgrade is an easy one, two or three things to do.

Rgds
--------
John

mcyates
11-27-2004, 12:23 PM
thankyou, just updating now

mcyates
11-27-2004, 12:27 PM
Get an error

ALTER TABLE `user` ADD COLUMN `warnings` int(5) before warning_level

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'before warning_level' at line 1

Revan
11-27-2004, 02:49 PM
Wow, this is getting better by the day! :D
I do however have some questions:

The warning sys I use now cumulates warning points until my set value is reached, then it auto bans. With this maturity level system, do I have to set the maturity to insanely high to have cumulating work as it does now, or can it auto ban no matter how long ago it has been since he was warned?
Does a member see his own warning level? If no, then I submit it as a feature suggestion :)

Im sorry if these have already been answered before, but 8 pages of replies.... neeh ;)

And @ mcyates: Try running the query without the "column" word. I have never seen this in a SQL query, and I have added fields to the user table before (in fact I did this just north of 3h ago ;))


//peace

mcyates
11-27-2004, 03:02 PM
that didn't help, i still got the warning, the code it from the latest upgrade so i don't see why its not working:

ALTER TABLE `user` ADD COLUMN `warnings` int(5) before warning_level

Torqued
11-28-2004, 12:46 AM
I upgraded to 1.3 and am getting the following error when trying to warn someone:

Database error in vBulletin 3.0.3:

Invalid SQL: insert into vb3warnings values('','11','1','1101609844','test 1.3','464','1','A','','')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Torqued
11-28-2004, 01:00 AM
Get an error

ALTER TABLE `user` ADD COLUMN `warnings` int(5) before warning_level


#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'before warning_level' at line 1

I am also getting this error when trying to upgrade to 1.3.1

Torqued
11-28-2004, 01:34 AM
Ok. I fixed the above by running the following:

ALTER TABLE `user` ADD COLUMN `warnings` int(5) AFTER salt

I looked @ the table structure and the new column should be inserted between `salt` and `warning_level`. I took a peek @ the ALTER TABLE documentation and didn't see a BEFORE parameter, but did see an AFTER parameter, so decided to try that.

http://dev.mysql.com/doc/mysql/en/ALTER_TABLE.html

Still getting this error, though when trying to warn a user:

Database error in vBulletin 3.0.3:

Invalid SQL: insert into vb3warnings values('','11','1','1101613183','spam 1.3.1','470','1','A','','')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

ptenthus
11-28-2004, 03:15 PM
I have ZT's warn hack (1.5) and get the following error when I run the admincp/upgrade_warn.php script:

Parse error: parse error, unexpected ',' in /path/to/my/forums/admincp/upgrade_warn.php on line 185

Any idea what is wrong?

Also, I downloaded the code last night (November 27th, 2004)...

sv1cec
11-28-2004, 07:35 PM
1. BEFORE and AFTER parameter in SQL.

I would swear I used before, but I may be wrong. I'll change the documentation.

2. Revan's question. Two different things here, the maturity is the number of days that the points stay in a user's account. It doesn't pay to warn a user for a minor thing (maybe one point) and keep that warning point for ever. If you do not want that to happen, yes, you need to set the maturity of the warnings to something like 99999.

Yes, a member sees a link, which shows him his own warnings.

3. Torqued. If the column hasn't been added because of the mistake that mcyates reported, and which you were also getting, it's normal to receive an incorrect columns error. Now that you added the column, does it still produces that error?

4. Ptenthus, change that line (185) from


$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2)", add `warnings` int(5);


to:


$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2), add `warnings` int(5);


Those damn quotes are the problem.

OK folks, sorry for these issues, I am trying my best.

Rgds
---------
John

mcyates
11-28-2004, 07:39 PM
1. BEFORE and AFTER parameter in SQL.

I would swear I used before, but I may be wrong. I'll change the documentation.

2. Revan's question. Two different things here, the maturity is the number of days that the points stay in a user's account. It doesn't pay to warn a user for a minor thing (maybe one point) and keep that warning point for ever. If you do not want that to happen, yes, you need to set the maturity of the warnings to something like 99999.

Yes, a member sees a link, which shows him his own warnings.

3. Torqued. If the column hasn't been added because of the mistake that mcyates reported, and which you were also getting, it's normal to receive an incorrect columns error. Now that you added the column, does it still produces that error?

4. Ptenthus, change that line (185) from


$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2)", add `warnings` int(5);


to:


$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2), add `warnings` int(5);


Those damn quotes are the problem.

OK folks, sorry for these issues, I am trying my best.

Rgds
---------
John
No worries mate your doing a fantastic job.

sv1cec
11-28-2004, 07:41 PM
OK folks, as you probably know, I've been working to implement an "Automatic Warning" feature. A member asked for it, and I thought it was a good idea.

Basically, what it does, is it issues a warning, when a user enters censored words in a post. I assume you are aware with the censorship option of vBulletin. Now, it's pretty much ready, and it traps censored words in new threads, new posts (answers to posts), when you edit a post you made, when you send a Private message.

What I want to ask you, is if you can think of any other area, where such an automatic warning will be necessary.

Your ideas would be appreciated.

If I do not hear from you until tomorrow morning (that's in about 8 hours from now), I'll upload Version 2.0 of AWS, as I have it now.

One more thing. Today, even though several of you have posted messages with questions, I haven't received a single notification from vbulletin.org. Did the same thing happened with you too?

Rgds
-----------

John

Torqued
11-28-2004, 07:56 PM
3. Torqued. If the column hasn't been added because of the mistake that mcyates reported, and which you were also getting, it's normal to receive an incorrect columns error. Now that you added the column, does it still produces that error?


John,

Yes. After adding that column, I am still getting this error when adding a warning to a user:

Database error in vBulletin 3.0.3:

Invalid SQL: insert into vb3warnings values('','11','1','1101678832','test','495','1',' A','','')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Here's what I have in my "warnings" table:

Field Type Attributes Null Default Extra Action

wid int(15) No auto_increment
warned_user int(15) No 0
warned_by int(15) No 0
warned_time int(15) No 0
warned_reason text No
warned_post int(15) No 0
warned_warning_id int(15) No 0
warned_status char(1) Yes NULL
removed_by int(15) Yes NULL

What am I missing?

No worries on the issues, mate! You're doing a great job! :) Thanks for all the hard work and for responding to other users' requests for features.

ptenthus
11-28-2004, 08:33 PM
Fixed the quotes as you suggested, but am now getting the following when I run upgrade_warn.php:

Parse error: parse error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /path/to/my/forum/admincp/upgrade_warn.php on line 187

sv1cec
11-28-2004, 08:36 PM
John,

Yes. After adding that column, I am still getting this error when adding a warning to a user:



Here's what I have in my "warnings" table:



What am I missing?

No worries on the issues, mate! You're doing a great job! :) Thanks for all the hard work and for responding to other users' requests for features.
OK, that explains it, you are missing the removed_date column, at the end of the table.

ALTER TABLE `warnings` ADD `removed_date` int(15)

That's all

Time to go to bed.

--------
John

Torqued
11-28-2004, 09:04 PM
Thanks, John. That fixed it. :)

Torqued
11-28-2004, 10:34 PM
John,

Seem I've found another issue:

I added a warning for a user as admin, and then removed that warning.

Whenever I try to add a warning for another post, I get the following message:

An error has occured, the following message has been left below:

This post has already been warned for. You cannot issue another warning for it.

I am getting this on posts that I have not warned this user for before.

I have done some additional testing, and it seems that this only occurs after I have added a non-post related warning. Once the user has a non-post related warning, if I try to add a post-related warning, I get the above error message. :)

edited again to add:

Even if the non-post related warnings are deleted/inactivated, I still get the above error message. I can only add new post-related warnings after I prune all non-post related warnings for a user. :)

Revan
11-29-2004, 06:57 AM
2. Revan's question. Two different things here, the maturity is the number of days that the points stay in a user's account. It doesn't pay to warn a user for a minor thing (maybe one point) and keep that warning point for ever. If you do not want that to happen, yes, you need to set the maturity of the warnings to something like 99999.

Yes, a member sees a link, which shows him his own warnings.Okay, cool. Thanks for replying.

I can see the usefulness of a maturity level, because my members seem to like posting short annoying messages that sometimes aint even on topic :p
Warning them for each and every post would get them kicked offa the board within a day ;)


About the AutoWarn, how about including autowarn for posting in threads older than [admin set time]? And this only has effect in [admin set forums]?
I know I could install hacks that auto closes threads, but I am having a problem with my users posting in ancient Newbie threads. I dont want ALL old threads to be closed, as sometimes its not bad to revive them, but being welcomed by a dude who just joined after the welcomed member has 200 posts, thats just dumb ;)


//peace

sv1cec
11-29-2004, 07:08 AM
Fixed the quotes as you suggested, but am now getting the following when I run upgrade_warn.php:

Parse error: parse error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /path/to/my/forum/admincp/upgrade_warn.php on line 187
Show me that area of the file, there is no ']' in that line. Show me a few lines before and a few after. Maybe you erased something more than just the quotes.

Rgds

sv1cec
11-29-2004, 07:33 AM
John,

Seem I've found another issue:

I added a warning for a user as admin, and then removed that warning.

Whenever I try to add a warning for another post, I get the following message:



I am getting this on posts that I have not warned this user for before.

I have done some additional testing, and it seems that this only occurs after I have added a non-post related warning. Once the user has a non-post related warning, if I try to add a post-related warning, I get the above error message. :)

edited again to add:

Even if the non-post related warnings are deleted/inactivated, I still get the above error message. I can only add new post-related warnings after I prune all non-post related warnings for a user. :)
Oooops,

This thing is getting too complicated. It's impossible to test every combination!!

OK, easy one. Please find the following line in Warn.php:


if($_POST['post']=="" || !$_POST['post'] || $_POST['post']<1){
RunError("Invalid Post ID Input");
}

if($postwarnedalready=$DB->query_first("select warned_post from ".TABLE_PREFIX."warnings where warned_post='{$_GET['post']}'") AND $warn_options[multiple_per_post]=="No")
{
RunError("This post has already been warned for. You cannot issue another warning for it.");
}


Change it to:



if($_POST['post']=="" || !$_POST['post'] || $_POST['post']<1){
RunError("Invalid Post ID Input");
}

if($postwarnedalready=$DB->query_first("select warned_post from ".TABLE_PREFIX."warnings where warned_post='{$_POST['post']}'") AND $warn_options[multiple_per_post]=="No")
{
RunError("This post has already been warned for. You cannot issue another warning for it.");
}


Sorry!!!

sv1cec
11-29-2004, 08:08 AM
Folks,

A few words about Version 2.0, to open your appetite.

As it is running on my forums now, it is catching words, which are in the censored words list of vBulletin, and it issues automatic warnings to the poster. The censored words are trapped in the following instances:

1. When you create a new thread.
2. When you reply to a post in a thread.
3. When you edit a post you have submitted before.
4. When you send a Private Message.

This is done for both the titles and the text of the posts.

All this is fine and nice, but there are some issues. For example, let's suppose you implement that system and a member posts some nusty words in one of his posts. The warning is issued, however, the original text, before being censored is nowhere to be found, vBulletin does not store it. It just replaces the letters in the bad words with a predefined character, so you end up with a post like "You are an *******". So? If the poster protests, how do you prove him he has actually typed a censored word?

The things get worst in Private Messages. The PMs are stored in the database, and the admin can read them, but again, they are stored with *****. Now, if it's not easy to tell a member that he was warned because he posted a public post, with obsceneties, how will you convince him that his PM (which goes from one member to the other) was obscene?

So, I am thinking if this feature should be released at all. I can always add one option for post-related automatic warnings, and another for PM-related ones, so the admin can select which one he would implement. Would that be satisfactory?

Also shall I add this automatic warning thing, in e-mails (the Contact Us form)?

Your opinion will be greatly appreciated, so please do not hesitate to comment.

As for the suggestion to warn users who post in old threads, I think this is a ... whole project by itself. My original idea, was that an admin would be able to select from a list of automatic warnings, which one he want to use. However, the changes required in the code, make such an effort totally impossible. Imagine that different code is required to trap the censored words in the edit post, than in the new post and totally different in the PM. So, I guess this is not something you will see in the immediate future.

However, keep those ideas coming, something good (and relatively easy) could come up.

And now the funny thing, yesterday evening my system warned several members of my forum, with no reason. Why? Because in the code, the routine which traps the censored words, is sometimes combined with other routines. In my infinite wisdom, when I was comparing the original message with the final one, I didn't do that at the censor routine only, so almost all the PMs that were send last night, got a warning. Say frustrated users again??? LoL

I am listening folks, keep those ideas coming.

----------

John

ptenthus
11-29-2004, 12:44 PM
Show me that area of the file, there is no ']' in that line. Show me a few lines before and a few after. Maybe you erased something more than just the quotes.

Rgds

Doh, never mind...found the problem. the " should be not removed, but moved to the end of the line just before the ; (second install[] line)...

Now it runs just fine.

Was:

$install[]="alter table ".TABLE_PREFIX."warnings
add `warned_status` char(1), add `removed_by` int(15), add `removed_date` int(15)";

$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2), add `warnings` int(5);

$install[]="alter table ".TABLE_PREFIX."warning_types add `warn_maturity` int(5), add `warn_permban` char(3), add `warn_type` char(3)";


Second line should be:


$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2), add `warnings` int(5)";

sv1cec
11-29-2004, 02:16 PM
Doh, never mind...found the problem. the " should be not removed, but moved to the end of the line just before the ; (second install[] line)...

Now it runs just fine.

Was:

$install[]="alter table ".TABLE_PREFIX."warnings
add `warned_status` char(1), add `removed_by` int(15), add `removed_date` int(15)";

$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2), add `warnings` int(5);

$install[]="alter table ".TABLE_PREFIX."warning_types add `warn_maturity` int(5), add `warn_permban` char(3), add `warn_type` char(3)";


Second line should be:


$install[]="alter table ".TABLE_PREFIX."user add `warning_bans` int(2), add `warnings` int(5)";

Glad you have it working.

Rgds

Torqued
11-29-2004, 06:18 PM
Oooops,

This thing is getting too complicated. It's impossible to test every combination!!


Sorry!!!

:) That fixed it. Thanks!

It's not impossible to test all combinations, it's just tedious. Thanks again for your work on this!

Shack Networks
11-30-2004, 10:02 AM
Lo M8

First of all thanks for the response, A lesser man would of told me to shut up lol

Anyhow

I dont think PM should be included in the warning system as TBH what people do between themselves is non of my concern as if it does get out of hand I am sure the person on the recieving end would make a complaint.

As for the open forums, that is the bit I would want to concentrate on as in the past people have found it fun to post links to sites that do nothing more than add hundreds of pops up boxes etc, and no matter how many times you tell them to use a pop up blocker none of them actualy listen lol

I also want to use it to filter out links to sites containing Warez or serials and keygens etc so that they can not post links to them and if they do so they will receive a warning. I am sure my site is not the first or the last to be plagued by this problem and in the past I have seen several hosting companys take sites down as the staff have failed to spot links to warez etc.

Like you said when it comes to PM's it is very dodgy ground as the very description of the system contains the word PRIVATE and thats how I think they should remain.

Thanks for all the hard work you have put in on this and I am only to greatfull of anything that helps to make this hack better than it already is.

Small Ideas make Big Hacks.

rh2004
11-30-2004, 07:33 PM
Hello, I receive this error when I click confirm of warning a user, it does
warn and email out the user I just seem to get this for some reason the Warn.php file is in place and all the others any ideas what it is... It is a
brand new board...

Database error in vBulletin 3.0.3:

Invalid SQL:
INSERT INTO userban
(userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate)
VALUES
(1260, 7, 0, 0, '', 1, 1101849704, 1102454504)
// (1260, 7, 0, 0, '', 1, 1101849704, 1102454504)

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '// (1260, 7, 0, 0, '', 1, 1101849704, 1102454504)' at line 5

mysql error number: 1064

Date: Tuesday 30th of November 2004 04:21:44 PM
Script: http://www.domain.com/community/Warn.php
Referer: http://www.domain.com/community/Warn.php?do=WarnUser&id=1260&post=88319
Username: admin
IP Address: --

chris2707
11-30-2004, 07:41 PM
Since the error is caused by a duplicated section that's been commented out, I'd just delete this:

// (1260, 7, 0, 0, '', 1, 1101849704, 1102454504)

rh2004
11-30-2004, 09:46 PM
How do I delete that .... :squareeyed:

sv1cec
12-01-2004, 04:14 AM
How do I delete that .... :squareeyed:

Find that query in the Warn.php file and replace the whole thing with :


$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "userban
(userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate)
VALUES
($user[userid], $group, $user[displaygroupid], $user[customtitle], '" . addslashes($user['usertitle']) . "', $bbuserinfo[userid], " . TIMENOW . ", $liftdate)");


If you do not know how to delete the commented part, just download the new zip file and upload the Warn.php file.

Guys, I still do not receive e-mail from this thread. What's wrong here?

Rgds

rh2004
12-01-2004, 08:52 AM
Thanks for the above it worked code change :)

Can smeone tell me how I add this to satellite template which I brought because in
the templates theme I can't find any of the text where I need to add this new text after....

sv1cec
12-01-2004, 12:41 PM
Thanks for the above it worked code change :)

Can smeone tell me how I add this to satellite template which I brought because in
the templates theme I can't find any of the text where I need to add this new text after....
There was a post with some instructions on how to do this, in other skins, sorry I have no idea.

ptenthus
12-01-2004, 02:10 PM
When I try to warn a user, I get a blank page.

I checked and realized that none of the templates were created when I ran the upgrade_warn.php (which ran without any errors that I saw)...

Is there an easy way to create these so I can get my warning system up and running?

Thanks.

sv1cec
12-01-2004, 02:58 PM
When I try to warn a user, I get a blank page.

I checked and realized that none of the templates were created when I ran the upgrade_warn.php (which ran without any errors that I saw)...

Is there an easy way to create these so I can get my warning system up and running?

Thanks.
The only reason I can think of, why the templates are not created, is that you are using a table prefix and you haven't changed the file to use that, or that you haven't uploaded the directory install_warn with the file warn.xml which is in that directory. One more thing. The templates are added to that default style, if you are using more than one, check the thread, there is a post on how to add the templates to the rest of the styles you use.

Rgds

ptenthus
12-01-2004, 03:11 PM
install_warn directory is there with the .xml file in place.

No table prefixes. Only one styleset, however, it is ID # 2.

How difficult would it be for me to go through mySQL and insert directly the templates?

sv1cec
12-01-2004, 03:31 PM
Do me a favor and run this query:

select * from template

what is the styleid you see in your templates? In my table, it is -1. What's yours?

Rgds

ptenthus
12-01-2004, 04:56 PM
I see a few that are 2 and then several (the unmodded ones, I think) that are -1.

UPDATE: Yep, looks like everything I've changed in the style shows up with style id 2, anything that I left at vB default is style id -1.

Do me a favor and run this query:

select * from template

what is the styleid you see in your templates? In my table, it is -1. What's yours?

Rgds

j_86
12-01-2004, 04:56 PM
Hi there.

In what file do we do the Step #10 in the new-install instructions?

Thanks;

Jamie

sv1cec
12-01-2004, 05:21 PM
Hi there.

In what file do we do the Step #10 in the new-install instructions?

Thanks;

Jamie
Sorry, it's in editpost.php

sv1cec
12-01-2004, 05:28 PM
I see a few that are 2 and then several (the unmodded ones, I think) that are -1.

UPDATE: Yep, looks like everything I've changed in the style shows up with style id 2, anything that I left at vB default is style id -1.
I am not sure how you can modify the upgrade_warn.php to make it work for your case. I assume that you could change the styleid, but I do not know to what you should change it to.
I can't figure out why yours are styleid 2 while mine are 1.

OR you can open up warn.xml and copy the templates from there. Sorry my friend, I can't help with that.

Rgds

ptenthus
12-01-2004, 05:38 PM
Okay, no problem...

Help me with this one thing and I should be up and running.

Here is a snippet of the first template in warn.xml:

<templategroup name="Ungrouped Templates">
<template name="WARN" templatetype="template" date="1100330326" username="sv1cec" version="3.0.1"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<body>
$header
$navbar
<BR>
<if condition="$bbuserinfo[userid]=='0'">


I understand the variables you have at the beginning (defining the template name, etc.) but where do I start copying the contents of the template - I assume the "![CDATA[" portion is not part of the template itself...

Thanks.

sv1cec
12-02-2004, 03:29 AM
Okay, no problem...

Help me with this one thing and I should be up and running.

Here is a snippet of the first template in warn.xml:

<templategroup name="Ungrouped Templates">
<template name="WARN" templatetype="template" date="1100330326" username="sv1cec" version="3.0.1"><![CDATA[$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</head>
<body>
$header
$navbar
<BR>
<if condition="$bbuserinfo[userid]=='0'">


I understand the variables you have at the beginning (defining the template name, etc.) but where do I start copying the contents of the template - I assume the "![CDATA[" portion is not part of the template itself...

Thanks.
You are right, whatever is after CDDATA[ is the real template.

Sorry you have to go through this mess, but I do not know how the templates thing works, if you have it different than ... stock.

Rgds

sv1cec
12-02-2004, 06:52 AM
Has anyone tested the "Restore Usergroup" function? I mean those of you who wanted to moderate the banned users, after they get unbanned, did you test this feature? Is it working OK?

Rgds
----------
John

68 Z-28
12-02-2004, 04:51 PM
Great hack... Everything appears to be OK.

Only issue i ran into was the templates not getting installed. I went through and did them manually. Now everything seems to be OK at first look except one thing. If there are any problems I'll be sure to come back in and seek some help.

Whenever I'm in the warning templates I have a [ and the top of the page and a /> at the bottom. Likely I just have to go through the templates and find where the stray characters are at.

sv1cec
12-02-2004, 05:53 PM
Great hack... Everything appears to be OK.

Only issue i ran into was the templates not getting installed. I went through and did them manually. Now everything seems to be OK at first look except one thing. If there are any problems I'll be sure to come back in and seek some help.

Whenever I'm in the warning templates I have a [ and the top of the page and a /> at the bottom. Likely I just have to go through the templates and find where the stray characters are at.
You are right, you probably have copied something wrong when doing the templates, especially the warn_addwarn. Check it out and I am sure (well almost sure) that you 'll find where these characters are coming from. In any case, I'll double check the instructions on the templates to make sure I haven't screwed something up.

Rgds

Shack Networks
12-02-2004, 06:50 PM
Ive just upgraded my site with this and it works pretty much as it says on the tin, I had a small problem when the auto warn was issuing points out willy nilly but that was my fault for being dumb.

Its been working now for a few hours and I have not had one complain except for ofcourse those who the sytem has caught already.

Thanks a hell of a lot for this, I rate this and the CMPS the best hacks on here at the moment.

j_86
12-02-2004, 06:53 PM
Hmm. Where can I add more protected user groups?

sv1cec
12-02-2004, 08:15 PM
Hmm. Where can I add more protected user groups?
What exactly do you have in mind? The protected groups are set in the code, depending on the Hierarchical option. If set, only admins are protected, if not set then admins, supermods and mods are protected. You want to add other groups to these?

Rgds

sv1cec
12-02-2004, 08:16 PM
Ive just upgraded my site with this and it works pretty much as it says on the tin, I had a small problem when the auto warn was issuing points out willy nilly but that was my fault for being dumb.

Its been working now for a few hours and I have not had one complain except for ofcourse those who the sytem has caught already.

Thanks a hell of a lot for this, I rate this and the CMPS the best hacks on here at the moment.
I am glad you like it Shack Networks, after all, you were the originator of the automatic warnings idea.

Rgds

j_86
12-02-2004, 08:40 PM
Yes sv1 - I thought you included it in your past ZT's additons.

Your work currently is fantastic :)

j_86
12-02-2004, 09:00 PM
What happens when someone gets given a warning for X points, and the X points happens to also be the limit, and the user is temp banned, and the warning maturity is set to longer than what the user gets temp-banned for?

sv1cec
12-02-2004, 09:39 PM
Yes sv1 - I thought you included it in your past ZT's additons.

Your work currently is fantastic :)
Not me, that was one of the features of ZT's hack, which I removed, due to the complications arising from the Hierarchical option. I guess it's time to bring it back, so please give me some time and some help here.

How do you want this handled? I mean, if you are using the hierarchical option, every group can be warned (except for admins), even the super mods (by an admin) or the mods (by the admins or a supermod). In this case, if you define more protected groups, they would be treaded as admins (if you use the hierarchical) or to the management groups (if you do not). Is that what you want? I mean, wouldn't it be silly to be able to warn the super mods or the mods and not to be able to warn other groups? Let me know if that's what you want.

Rgds
-----------
John

sv1cec
12-02-2004, 09:41 PM
What happens when someone gets given a warning for X points, and the X points happens to also be the limit, and the user is temp banned, and the warning maturity is set to longer than what the user gets temp-banned for?
Nothing much, his warning points remain in his account, until they are removed automatically. If he doesn't get another warning, he remains active but if he gets even one more point he is banned again.

Rgds
---------------
John

SamirDarji
12-02-2004, 10:50 PM
Nothing much, his warning points remain in his account, until they are removed automatically. If he doesn't get another warning, he remains active but if he gets even one more point he is banned again.
Sweet! I thought of this scenario when we were discussing expiring warnings and bans, but I never posted it.

sv1cec
12-02-2004, 11:10 PM
Sweet! I thought of this scenario when we were discussing expiring warnings and bans, but I never posted it.
It's nothing new, that's how I have it working since the beginning, the only thing that I changed is that now I do not round down the warning points to the maximum, I leave them at whatever they are.

Where is JimpsEd? I need his answer about the protected groups, so that I can go to bed. It's already 3:00 am here.

Rgds

alkatraz
12-02-2004, 11:28 PM
glad to see this hack progressing so quickly! I agree, a must have for any decent size site.

I'll keep checking back, waiting for the updates to slow down before I install it. (yeah im lazy)

sv1cec
12-03-2004, 12:06 AM
glad to see this hack progressing so quickly! I agree, a must have for any decent size site.

I'll keep checking back, waiting for the updates to slow down before I install it. (yeah im lazy)
You are forgiven (LoL), but I think that it will slow down. I just got an idea that I need to implement in my site, and the hack I found is not exactly well supported, so I have a lot of work to do myself.

So, I am sure this will not be updated as often as now. But then again, it all depends on what other ideas I'll get.

Rgds
---------
John

SamirDarji
12-03-2004, 02:01 AM
Where is JimpsEd? I need his answer about the protected groups, so that I can go to bed. It's already 3:00 am here.
You see, not even the users of the hack check this thread as much as the owner. Kudos John, I only wonder how you eat and go to the bathroom while keeping on top of this hack. :) Great work. My pick for hack of the month.

Torqued
12-03-2004, 02:46 AM
You see, not even the users of the hack check this thread as much as the owner. Kudos John, I only wonder how you eat and go to the bathroom while keeping on top of this hack.

I bet he has a wireless connection! ;)

sv1cec
12-03-2004, 04:34 AM
I bet he has a wireless connection! ;)
I have a wireless connection to my mobile, but that's not what I use for this thing! I would go bananas, if I were to use that one. Unfortunatelly gentlemen, I am at home with several hours to spend, during the week-days in the morning, when the twins are at the nursery school. The weekends are a different story though.

Wish me luck in getting some employment soon, or else......

Time to work on that other hack.

Rgds
-------------
John

j_86
12-03-2004, 03:54 PM
Many thanks sv1 :) A great addition.

Maybe some ideas to consider; when a post is warned, have the option to display at the end of the post/highlight it in some way saying what it was warned for, by who, how many points and so on. "Public" warning, as such, to "teach" users a lesson before they do it themselves.

sv1cec
12-03-2004, 04:06 PM
Many thanks sv1 :) A great addition.

Maybe some ideas to consider; when a post is warned, have the option to display at the end of the post/highlight it in some way saying what it was warned for, by who, how many points and so on. "Public" warning, as such, to "teach" users a lesson before they do it themselves.
This is hard to do. For example, you may warn a thread, because it was posted in the wrong forum. Obviously, the moderator will move it to the proper forum, so if you put a message saying "This thread was warned because it was posted in the wrong forum", it will have no meaning after the mod moves it.

Rgds

rh2004
12-03-2004, 10:26 PM
Hello, I had this installed the other day and its install on a few templates default,
satellite and xmas style now they all was working but I have been adding some new
stuff over the last day or so and its now giving me a blank white page when I try
and click on warnings etc.

I've checked throught everything and they all seem to be there, now it works fine
on default vbulletin template and I can do everything but on the others I get the
blank page...

Do you know whats wrong, I read through some of the topic and other people had
a problem but that was with the one template....

Thanks

rh2004
12-03-2004, 10:37 PM
Hello, I had this installed the other day and its install on a few templates default,
satellite and xmas style now they all was working but I have been adding some new
stuff over the last day or so and its now giving me a blank white page when I try
and click on warnings etc.

I've checked throught everything and they all seem to be there, now it works fine
on default vbulletin template and I can do everything but on the others I get the
blank page...

Do you know whats wrong, I read through some of the topic and other people had
a problem but that was with the one template....

Thanks

mcyates
12-03-2004, 10:39 PM
Hello, I had this installed the other day and its install on a few templates default,
satellite and xmas style now they all was working but I have been adding some new
stuff over the last day or so and its now giving me a blank white page when I try
and click on warnings etc.

I've checked throught everything and they all seem to be there, now it works fine
on default vbulletin template and I can do everything but on the others I get the
blank page...

Do you know whats wrong, I read through some of the topic and other people had
a problem but that was with the one template....


Thanks
Are you sure the templates are acutally in the satellite and zmas styles!!! The blank page would suggest not. Have another check.

rh2004
12-03-2004, 11:06 PM
Are you sure the templates are acutally in the satellite and zmas styles!!! The blank page would suggest not. Have another check.


Yeah they are there I just checked ... :disappointed:

sv1cec
12-04-2004, 04:14 AM
Yeah they are there I just checked ... :disappointed:
I am sory, but as I explained before, I have no alternative styles on my forums, so I have no idea how that works. I wish I could help you, but without a testing system, it's hard to do. If the system is working on the default style, it's definitely something missing in the rest.

Rgds

Revan
12-04-2004, 10:27 AM
v2.1 now huh? :) Yeah I think this is stable enough for me to install now :)
I didnt read all this template bs too careful, but I hope the fact that I have Child Styles wont come and bite me in the anus ;)
If it does, then I suggest to create a dropdown select menu for the template part of the installer, where the user can choose what style he wishes to install his templates in.


//peace

j_86
12-04-2004, 10:30 AM
I had problems with the install (blank) of V2.00 - a problem with the entry of the options into the options table (invalid coloumn ID or something), so I tried entering them myself, and then tried deleting the entry in the table and using the form to create it's own, which worked.

However, all of a sudden, each Yes/No etc. selection has 3 options; Yes Yes No (if it was set to Yes before) and No Yes No (if it was set to No before).

Is this a problem, if it is - any idea how to fix it / what SQL command to use to fix the options table?

Revan
12-04-2004, 10:45 AM
I had hoped I could just edit my post but meh gotta bump it now :p
I am in the process of installing this hack, and I must say I don't like having a table of its own for the warning_options. Im in the process of creating $vboptions for it all, then edit every part requiring this query to use $vboptions instead.
If you want, sv1, I can write up an installer part for adding into the datastore to help reduce query load for this hack (having 1 extra query ran every time I access the ACP just wont do for me ;))



EDIT: I had problems with the install (blank) of V2.00 - a problem with the entry of the options into the options table (invalid coloumn ID or something), so I tried entering them myself, and then tried deleting the entry in the table and using the form to create it's own, which worked.

However, all of a sudden, each Yes/No etc. selection has 3 options; Yes Yes No (if it was set to Yes before) and No Yes No (if it was set to No before).

Is this a problem, if it is - any idea how to fix it / what SQL command to use to fix the options table?I am in the process of cleaning up the files, and this will be one of the issues I am fixing.


If you want, sv1, I can send you the files once Im done cleaning them up. It will be issues like the one quoted here, plus coding style I will be tampering with, Im not trying to make my own version of this ;)

sv1cec
12-05-2004, 04:22 AM
I had hoped I could just edit my post but meh gotta bump it now :p
I am in the process of installing this hack, and I must say I don't like having a table of its own for the warning_options. Im in the process of creating $vboptions for it all, then edit every part requiring this query to use $vboptions instead.
If you want, sv1, I can write up an installer part for adding into the datastore to help reduce query load for this hack (having 1 extra query ran every time I access the ACP just wont do for me ;))



EDIT: I am in the process of cleaning up the files, and this will be one of the issues I am fixing.


If you want, sv1, I can send you the files once Im done cleaning them up. It will be issues like the one quoted here, plus coding style I will be tampering with, Im not trying to make my own version of this ;)
Raven,

Your idea of using $vboptions is a solid one, I didn't think of that, as I used ZT's original structure and I just used that table for my hack as well. The query for the options is indeed a pain. I wish I had thought about it, because now, I have to go back and edit all the files (not too ddifficult) and all the templates (gosh I hate that)! Darn!!!

And indeed, the code needs some cleaning work. Now that I've finished installing the other hack I mentioned above (the Inline Moderation Hack, great one), I think I'll spend some time cleaning up the mess.

Of course, your help is welcome, don't forget I started this from ZT's code, so a lot of the code is not mine either. An installer which will take into consideration the styles thing would be a great help, as I do not have any additional styles and I can't even help users with this issue. I just do not know how to handle them.

As for the Yes/No/Yes thing on the drop down menus, I am not sure I can do something about it, I am using vB's standard method, and that's how they show up after you set the value once.

Revan
12-05-2004, 08:49 AM
Raven,Its Revan damit :p

Your idea of using $vboptions is a solid one, I didn't think of that, as I used ZT's original structure and I just used that table for my hack as well. The query for the options is indeed a pain. I wish I had thought about it, because now, I have to go back and edit all the files (not too ddifficult) and all the templates (gosh I hate that)! Darn!!!I have already done this, the hack is now working 100 % using $vboptions :)

And indeed, the code needs some cleaning work. Now that I've finished installing the other hack I mentioned above (the Inline Moderation Hack, great one), I think I'll spend some time cleaning up the mess. I just need to clean the 800 lines in Warn.php, and then make the templates XHTML compliant, and this will be done too :)

Of course, your help is welcome, don't forget I started this from ZT's code, so a lot of the code is not mine either. An installer which will take into consideration the styles thing would be a great help, as I do not have any additional styles and I can't even help users with this issue. I just do not know how to handle them.I offered to write a datastore installer, not template installer. And the installer as-is did take my substyles into consideration, it installed in the default style (parent style), and this auto added templates to the child styles :)

As for the Yes/No/Yes thing on the drop down menus, I am not sure I can do something about it, I am using vB's standard method, and that's how they show up after you set the value once.Is that so... Weird, seeing as I already fixed it ;)
Its not vB standard at all mate :p
$permoption = "
<option value=\"No\" " . iif($warn['warn_permban'] == 'No', 'selected="selected"') . ">No</option>
<option value=\"Yes\" " . iif($warn['warn_permban'] == 'Yes', 'selected="selected"') . ">Yes</option>
";
$typoption = "
<option value=\"No\" " . iif($warn['warn_type'] == 'No', 'selected="selected"') . ">No</option>
<option value=\"Yes\" " . iif($warn['warn_type'] == 'Yes', 'selected="selected"') . ">Yes</option>
";This works like a charm :)


I'll get back to you about this once Im done with the cleanup :)


//peace

sv1cec
12-05-2004, 09:25 AM
Its Revan damit :p

I have already done this, the hack is now working 100 % using $vboptions :)

I just need to clean the 800 lines in Warn.php, and then make the templates XHTML compliant, and this will be done too :)

I offered to write a datastore installer, not template installer. And the installer as-is did take my substyles into consideration, it installed in the default style (parent style), and this auto added templates to the child styles :)

Is that so... Weird, seeing as I already fixed it ;)
Its not vB standard at all mate :p
$permoption = "
<option value=\"No\" " . iif($warn['warn_permban'] == 'No', 'selected="selected"') . ">No</option>
<option value=\"Yes\" " . iif($warn['warn_permban'] == 'Yes', 'selected="selected"') . ">Yes</option>
";
$typoption = "
<option value=\"No\" " . iif($warn['warn_type'] == 'No', 'selected="selected"') . ">No</option>
<option value=\"Yes\" " . iif($warn['warn_type'] == 'Yes', 'selected="selected"') . ">Yes</option>
";This works like a charm :)


I'll get back to you about this once Im done with the cleanup :)


//peace
Revan,

Sorry for the name mixup! I know I shouldn't type, before I have a full glass of coffee in my system.

Re. vboptions, good work, let's see it. I did some maintenance work on my site, and moved the warn_options query to the global.php file, in that way it is executed only once, that should help reduce the queries counter.

Re. Yes/No/Yes issue, what can I say, you are a much better coder than I am. Going to change this now.

Rgds

Revan
12-05-2004, 10:24 AM
Sorry for the name mixup! I know I shouldn't type, before I have a full glass of coffee in my system.Hehe no worries mate :)

Re. vboptions, good work, let's see it. I'll get to work on the Warn.php right now then :)
I did some maintenance work on my site, and moved the warn_options query to the global.php file, in that way it is executed only once, that should help reduce the queries counter.Cool, Im all for query optimisations :D

Re. Yes/No/Yes issue, what can I say, you are a much better coder than I am. Going to change this now.Meh, I just entered debug mode, stole the code vB uses to create the "Date Format" (Yesterday/Today etc) and modded it to fit this ;)


//peace

mcyates
12-05-2004, 07:01 PM
FAO sv1cec
================
Quality hack,

I installed it perfectly a couple of weeks ago, but i restarted my forum but kept the same database but i can't install the latest version. What i need is some SQL code which i can put in phpmyadmin which will remove them all and let me install it properly.

Or you could just let me know where all the warning database tables / columns are so i can manually remove them. Also i had Zero Tolerance's Warning Hack installed before yours, so some of their tables / columns might need removing.

Thanks in advance, i just need this hack installed again as it was very usefull.

I sit waiting.....

rh2004
12-06-2004, 01:40 AM
Hi when I run the install I always get this error?


Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Sunday 05th of December 2004 10:40:05 PM
Script: /adminpanel/install_warn.php[/url]
Referer:
Username:
IP:

Can you help :(

Also what do I ned to do to my other templates, so it works?

+d-cipher
12-06-2004, 03:27 AM
Hi when I run the install I always get this error?


Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Sunday 05th of December 2004 10:40:05 PM
Script: /adminpanel/install_warn.php[/url]
Referer:
Username:
IP:

Can you help :(

Also what do I ned to do to my other templates, so it works?
Same for me.

sv1cec
12-06-2004, 03:43 AM
Same for me.
Sorry folks, change that line in install_warn.php, with the one below:


$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes' ,'Yes','15')";


The difference is one more 'Yes' in the beginning.

Sorry for the inconvenience.

sv1cec
12-06-2004, 03:50 AM
FAO sv1cec
================
Quality hack,

I installed it perfectly a couple of weeks ago, but i restarted my forum but kept the same database but i can't install the latest version. What i need is some SQL code which i can put in phpmyadmin which will remove them all and let me install it properly.

Or you could just let me know where all the warning database tables / columns are so i can manually remove them. Also i had Zero Tolerance's Warning Hack installed before yours, so some of their tables / columns might need removing.

Thanks in advance, i just need this hack installed again as it was very usefull.

I sit waiting.....
The following tables are used by this hack (and Zero's):

warning_options
warning_types
warnings

If you had installed version 2.0 and above, you would also have a table named pmtext_warned.

Zero was using another table for banned users, called banned_members. All these should be in your database, and should be useable again.

If you want to delete them and start from scratch, just make sure you do not use a TABLE_PREFIX. If you do, add that in the installation script.

I would suggest that you do not start with Zero's hack, go directly to the installation of this one, the installation procedure is much easier.

Let me know if that helps.

Rgds

Delphy
12-06-2004, 10:37 AM
Hiya,

Just found this hack and tried installing from scratch. I get an error:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15 ')
mysql error: Column count doesn't match value count at row 1

Looking at the script, the "`max_no_bans` int(5)," column is missing from the insert statement. Adding this back in (Line 208 of install_warn.php) makes it work.

I guessed at a value for max_no_bans - can you tell me what it *should* be?

Regards
Delphy

sv1cec
12-06-2004, 11:42 AM
Hiya,

Just found this hack and tried installing from scratch. I get an error:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

Looking at the script, the "`max_no_bans` int(5)," column is missing from the insert statement. Adding this back in (Line 208 of install_warn.php) makes it work.

I guessed at a value for max_no_bans - can you tell me what it *should* be?

Regards
Delphy

Delphy,

It was not the max number of bans which was missing, it is the aprotected_usergroups.

Try changing that line to:


$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes' ,'Yes','15')";


Mind you, I just uploaded a new version, so you may want to download the latest zip.

Rgds

Delphy
12-06-2004, 11:51 AM
Ahh, well I hacked about with it and got it working anyway... I'll grab the latest and take a look.

rh2004
12-06-2004, 12:41 PM
Wooooooow it is now working :D

Thank you :D :D :D

SamirDarji
12-06-2004, 03:07 PM
Man, what a weekend! I turn around and we're up to verision 2.2? Someone hire John quick or we'll see v5.0 by the end of the year! lol

rh2004
12-06-2004, 03:54 PM
Hi I was upgrading the version to the latest 2.2 I think I had 2.1

I get this error when I click apply database changes


Database error in vBulletin 3.0.3:

Invalid SQL: alter table warnings
add `warned_status` char(1), add `removed_by` int(15), add `removed_date` int(15)
mysql error: Duplicate column name 'warned_status'

mysql error number: 1060

Date: Monday 06th of December 2004 12:50:18 PM
Script: http://adminpanel/upgrade_warn.php
Referer: http://adminpanel/upgrade_warn.php
Username: w
IP Address:



Did you update just the installer today or did you upgrade to 2.2 as well?

Because I think I downloaded it yesterday and installed....

sv1cec
12-06-2004, 05:38 PM
Hi I was upgrading the version to the latest 2.2 I think I had 2.1

I get this error when I click apply database changes


Database error in vBulletin 3.0.3:

Invalid SQL: alter table warnings
add `warned_status` char(1), add `removed_by` int(15), add `removed_date` int(15)
mysql error: Duplicate column name 'warned_status'

mysql error number: 1060

Date: Monday 06th of December 2004 12:50:18 PM
Script: http://adminpanel/upgrade_warn.php
Referer: http://adminpanel/upgrade_warn.php
Username: w
IP Address:



Did you update just the installer today or did you upgrade to 2.2 as well?

Because I think I downloaded it yesterday and installed....
Please read the instructions. The script upgrade_warn.php is used only to upgrade from Zero Tolerance's hack to Advanced Warning System (this hack). The upgrade_warn.php is used instead of the install_warn.php script, when doing a new installation, on top of Zero's hack. It is not to be used to upgrade to the latest version of the Advanced Warning System.

To upgrade from version 2.1 to 2.2 of the Advanced Warning System, read and apply the instructions in the UpgradeToLatestVersion.txt file.

Rgds
----------

John

sv1cec
12-06-2004, 05:44 PM
Man, what a weekend! I turn around and we're up to verision 2.2? Someone hire John quick or we'll see v5.0 by the end of the year! lol
Well, you know, I have time and I try to use it as best as I can.

Yes please, someone hire me quickly, or else the twins will have a big problem!!

Too bad not too many people in Greece use vB.

Rgds

rh2004
12-06-2004, 06:16 PM
Okie I have re done the whole mod anyway and its working, I found another error
though, when you have send PM to user (when warned) it gives you the error:

Fatal error: Call to undefined function: sendpm() in /home/username/public_html/dis/Warn.php on line 357

If its turned of you don't get the error

Another one I found is:

My adminpanel is called adminpanel instead of admincp so when I click
Complete Removal user it gives me


The requested URL /admincp/admin_warn.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Can you help me fix these :D

Thanks :)

Revan
12-06-2004, 07:22 PM
Ive just submitted the enhanced version of this hack to sv1, so hopefully soon we will see a cleaner and even less query absorbing version of this :)

Oh, and that error can be fixed by renaming back to /admincp/ ;)
j\k



//peace

Celtic_Mad
12-06-2004, 09:10 PM
I have made a usergroup called 'Site Owner' which I am in and it has everything an adminstrator has but administrators and moderators are still able to warn me, how can I make it that neither of them can warn this usergroup?

Torqued
12-06-2004, 10:09 PM
woo. can't wait to see the enhanced version! :)

mcyates
12-06-2004, 10:21 PM
The following tables are used by this hack (and Zero's):

warning_options
warning_types
warnings

If you had installed version 2.0 and above, you would also have a table named pmtext_warned.

Zero was using another table for banned users, called banned_members. All these should be in your database, and should be useable again.

If you want to delete them and start from scratch, just make sure you do not use a TABLE_PREFIX. If you do, add that in the installation script.

I would suggest that you do not start with Zero's hack, go directly to the installation of this one, the installation procedure is much easier.

Let me know if that helps.

Rgds

I removed the following tables

warning_options
warning_types
warnings

And from the "user" table i removed:

warnings
warning_level
warning_bans

I then started the install scripts, it installed the templates but then I get this error:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Tuesday 07th of December 2004 12:21:14 AM


What's the problem?

sv1cec
12-07-2004, 03:42 AM
Okie I have re done the whole mod anyway and its working, I found another error
though, when you have send PM to user (when warned) it gives you the error:

Fatal error: Call to undefined function: sendpm() in /home/username/public_html/dis/Warn.php on line 357

If its turned of you don't get the error

Another one I found is:

My adminpanel is called adminpanel instead of admincp so when I click
Complete Removal user it gives me


The requested URL /admincp/admin_warn.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Can you help me fix these :D

Thanks :)
Please download the latest zip, the Warn.php file I had in the previous one was using a wrong required file, so it was not locating the functions_warning.php file. Let me know if you still have problems.

As for the adminpanel, and find this in your admin_warn.php file:


$cy="<a href='{$vboptions[bburl]}/admincp/admin_warn.php?act=completeremove


Replace it with:


$cy="<a href='{$vboptions[bburl]}/adminpanel/admin_warn.php?act=completeremove


Rgds

sv1cec
12-07-2004, 03:45 AM
I have made a usergroup called 'Site Owner' which I am in and it has everything an adminstrator has but administrators and moderators are still able to warn me, how can I make it that neither of them can warn this usergroup?
A whole usergroup for yourself!!!

Why didn't you just add yourself in the admins?

Just add that group in the "Protected Usergroups" option, in the Warning Options.

Rgds

sv1cec
12-07-2004, 03:48 AM
I removed the following tables

warning_options
warning_types
warnings

And from the "user" table i removed:

warnings
warning_level
warning_bans

I then started the install scripts, it installed the templates but then I get this error:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Tuesday 07th of December 2004 12:21:14 AM


What's the problem?
Download and use the latest install_warn.php file. Darn, I have to rewrite that insert so it works with the column names, I always seem to have a mistake there. A couple of people had that problem yesterday, so I hope I have corrected the insert.

Let me know if it works.

Rgds

mcyates
12-07-2004, 09:32 AM
Download and use the latest install_warn.php file. Darn, I have to rewrite that insert so it works with the column names, I always seem to have a mistake there. A couple of people had that problem yesterday, so I hope I have corrected the insert.

Let me know if it works.

Rgds
ok thanks mate,i'll try now. Your doing a fantastic job. Thanks again

I'll let you know if it works.

mcyates
12-07-2004, 09:48 AM
ok thanks mate,i'll try now. Your doing a fantastic job. Thanks again

I'll let you know if it works.

I'm still getting the same error:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO `warning_options` values ('1','Yes', 'No', '','0','7','10','8','6','8','0','Yes','3','All','Y es','Yes','No','Yes','Yes','15')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

You'll get it right one day!! :up:

bold
12-07-2004, 05:14 PM
i get this error

Fatal error: Cannot redeclare sendpm() (previously declared in /home/blah/public_html/forums/includes/functions_warning.php:12) in /home/blah/public_html/forums/includes/functions_newpost.php on line 15

bold
12-07-2004, 05:27 PM
i removed the sendpm function in functions_newpost.php and it's working. you should include that in the upgrade txt.

sv1cec
12-07-2004, 06:03 PM
I just copied this below, from the installation file. I am sure I have it right there.


$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes' ,'Yes','15')";


Try this!

sv1cec
12-07-2004, 06:06 PM
i removed the sendpm function in functions_newpost.php and it's working. you should include that in the upgrade txt.
You are right, I forgot to add the instructions for that, I just updated the file.

Tnx

bold
12-07-2004, 07:01 PM
You are right, I forgot to add the instructions for that, I just updated the file.

Tnx

:) you are doing a good job with this hack.

mcyates
12-09-2004, 10:21 AM
I just copied this below, from the installation file. I am sure I have it right there.


$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','Yes', 'Yes','No', '','0','7','10','8','6', '6','8','0','Yes','3','All','Yes','Yes','No','Yes' ,'Yes','15')";


Try this!

It worked!!

Thanks, what did you change?

mcyates
12-09-2004, 10:31 AM
I just need to add the phrases now as its saying there are duplicates but i'm missing some?

Is there any SQL query i can run which will drop the phrase if it exists and adds them all. The database is fine now, its just the phrases. After the prases are added I can do the file changes.

Thanks in advance, fantastic support.

sv1cec
12-09-2004, 11:07 AM
I just need to add the phrases now as its saying there are duplicates but i'm missing some?

Is there any SQL query i can run which will drop the phrase if it exists and adds them all. The database is fine now, its just the phrases. After the prases are added I can do the file changes.

Thanks in advance, fantastic support.
Try running the following query in your system:


select * from phrase where varname>='warning' and varname<'we'


This will show you the phrases which start with 'warning'. All of these are connected to the warning system, so if you do not see anyone that is not related to a warning, then you may execute the following query to remove whichever is left:


delete from phrase where where varname>='warning' and varname<'we'


Please make sure that there are no other phrases in the list produced by the first query, except those related to a warning, if there are, then do not run the second one, or else you will delete them.

Rgds

mcyates
12-09-2004, 12:02 PM
works thanks!!!

I'll get onto changing the files now. Thank You very much.

sv1cec
12-10-2004, 08:53 AM
works thanks!!!

I'll get onto changing the files now. Thank You very much.
Most welcome!

mcyates
12-10-2004, 10:47 AM
Just query about the atomatic arwings when people post words which are in the censored list. You say you can't prove they said what they said as it replaces the words with **** or whatever symbol you use.

Could you just not make another field (or text box) which the automatic warnings run from? Instead of using the words listed in the censored list, have a warning list and when someone types in a word which is in the warning list, they get warned and the words they typed are still shown as they are not censored.

ALSO you could have (if you want) 3 different boxes for the sevearily of the word.

For examply,

Very Very naughty words: (type words in the box, if uses types in one of the words he gets 5 warning points)

Naughty words: (type words in the box, if uses types in one of the not so nautghy words he only gets 2 points)

Not so naughty: like prick, twat (they will get 1 warning point)
Just a suggestion.

mcyates
12-10-2004, 10:57 AM
Also could you add something like this so the public can view the banned members with a ling to the post they got the ban for and when the ban expires:

https://vborg.vbsupport.ru/showthread.php?t=70293

Or will this already work in parralel with this hack?

sv1cec
12-10-2004, 01:43 PM
Just query about the atomatic arwings when people post words which are in the censored list. You say you can't prove they said what they said as it replaces the words with **** or whatever symbol you use.

Could you just not make another field (or text box) which the automatic warnings run from? Instead of using the words listed in the censored list, have a warning list and when someone types in a word which is in the warning list, they get warned and the words they typed are still shown as they are not censored.

ALSO you could have (if you want) 3 different boxes for the sevearily of the word.

For examply,

Very Very naughty words: (type words in the box, if uses types in one of the words he gets 5 warning points)

Naughty words: (type words in the box, if uses types in one of the not so nautghy words he only gets 2 points)

Not so naughty: like prick, twat (they will get 1 warning point)
Just a suggestion.
All these could be done, but with lot's of coding. At the moment, I am just trapping the censored words, by just comparing the messages, before and after they are parsed by the vB's routine. If they are different, then the user typed bad words, so I issue the warning. If I were to code everything from the beginning, it would take me months (or who knows, weeks? days? hours?).

We'll see, you never know.

But what I wrote before, that I do not know what the user wrote, is not true. If you activate the Automatic PM Warning option, you will see that it adds a report to your AdminCP, in which you can see the original text, as it was typed before being censored. I do not do the same in the simple posts, because it is obvious that whatever got replaced by **** was a bad word. The PM goes from one user to another, the rest of us, do not see it.

Rgds

sv1cec
12-10-2004, 01:51 PM
Also could you add something like this so the public can view the banned members with a ling to the post they got the ban for and when the ban expires:

https://vborg.vbsupport.ru/showthread.php?t=70293

Or will this already work in parralel with this hack?
You are obviously trying to make me come up with version 3.0???

That's a nice hack, but I agree, it should work with the original userban table, there is no reason to have another one. If you want to store details, such the reason for the ban or the URL that got that person banned, it can be done with extra columns in the original table. Also, it will not work with AWS, because AWS is using the userban table and I do not plan to alter it to use another one (redundancy, I hate it).

This is an interesting idea. Maybe next week. The weekend I am too busy taking care of the twins. At the moment, one of them is sitting in my lap (the other one is still asleep), playing with the Sun's keyboard, which has exceeded its buffer and is beeping every time he presses a key. He really enjoys it!! When they are both awake, I have to go!!! LoL

Rgds
---------
John

rh2004
12-10-2004, 03:14 PM
Hi so what do I need to do to make that send pm work as I get that error still above, i've not changed any files since.... :)

sv1cec
12-10-2004, 04:33 PM
Did you download the new Warn.php file as instructed? Also, check that you have uploaded the file includes/functions_warning.php.

I answered your questions about 15 posts ago.

Rgds

Gary King
12-10-2004, 09:13 PM
I installed this hack from scratch (didn't upgrade). When I go to 'Unban Banned Users' in my admin cp, I get an error saying that the banned_members table does not exist, when in fact it should.

I have checked the files and have concluded that it should have existed, but was not created because it was never in the installer files.

Could someone please send me the correct properties for this table?

Thanks!

rh2004
12-10-2004, 11:34 PM
OK, thanks Its working...

I was wondering when you ban someone and there title changes to temp
banned or banned, when you restore them it doesn't change back?

sv1cec
12-11-2004, 04:43 AM
I installed this hack from scratch (didn't upgrade). When I go to 'Unban Banned Users' in my admin cp, I get an error saying that the banned_members table does not exist, when in fact it should.

I have checked the files and have concluded that it should have existed, but was not created because it was never in the installer files.

Could someone please send me the correct properties for this table?

Thanks!
Gary,

how do you go to "Unban banned Users"? Did you unquoted something from the admincp/index.php file?

That option should not exist in my hack. That was something that ZT was using, as well as the table you are asking about. Since in my hack I use the standard vB table for banned users (userban), the standard vB options in AdminCP can be used if you want to unban users.

So please go back and comment out that line in admincp/index.php and don't worry about that table, you do not need it.

John

sv1cec
12-11-2004, 04:44 AM
OK, thanks Its working...

I was wondering when you ban someone and there title changes to temp
banned or banned, when you restore them it doesn't change back?
Yes Sir, it changes them back to what they were before the ban.

John

Johannes de Le?n
12-11-2004, 08:52 AM
Great hack.

* Stirpes clicks install.

Btw, does this recognize if a user is a moderator on a specific forum or just if (s)he is a moderator and therefore has the power to warn outside their "jurisdiction"?

jluerken
12-11-2004, 09:03 AM
Hi,

you have an error in install_warn.php in line 271


INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatil
e) VALUES ('messagetag', 'address', '', '', '', '35', '0', '1')");



must be:


INSERT INTO `".TABLE_PREFIX."setting` (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatil
e) VALUES ('messagetag', 'address', '', '', '', '35', '0', '1')");


to make it working if someone is using table prefixes.

jluerken
12-11-2004, 10:46 AM
I've checked everything twice and have two little problems with the hack.

The first one is only optic. See attachments.
I want to have the reputationlink image in front of the userid.

The second one is harder.
I activated the option Allow Off-Post Warnings? and entered some non post warnings. Problem is that I don't see warning links on the users profile page.
Don't know why. Can someone please help?

sv1cec
12-11-2004, 11:36 AM
Answers to the last three posts:

1) Yes, the hack recognizes the forums in which a moderator can moderate and allows him/her to issue warnings only in these forums. All mods can however see the warnings of the users, so they can check them out.

2) TABLE_PREFIX: thanks for catching this, I updated the zip file.

3) I am not sure what I see in the first picture there. But since something is not where it used to be, and the fact that you can't see the "Warn XYZ (off-post warnings)" and the "View XYZ's warning" links, tells me that you haven't edited that particular template properly. Check your MEMBERINFO template.

Rgds to all.

jluerken
12-11-2004, 12:52 PM
3) I am not sure what I see in the first picture there. But since something is not where it used to be, and the fact that you can't see the "Warn XYZ (off-post warnings)" and the "View XYZ's warning" links, tells me that you haven't edited that particular template properly. Check your MEMBERINFO template.

Rgds to all.

I checked the MEMBERINFO Template twice and used exactly what you've written in the installation instructions.
Please mail me your MEMBERINFO Template so that I can try this.



I found a new error in the installation instructions:


11. Edit file private.php and find:

require_once('./includes/functions_misc.php');

Below that, add:

require_once('./includes/functions_warrning.php');


functions_warning.php, there is an 'r' to much :D

Gary King
12-11-2004, 01:42 PM
Gary,

how do you go to "Unban banned Users"? Did you unquoted something from the admincp/index.php file?

That option should not exist in my hack. That was something that ZT was using, as well as the table you are asking about. Since in my hack I use the standard vB table for banned users (userban), the standard vB options in AdminCP can be used if you want to unban users.

So please go back and comment out that line in admincp/index.php and don't worry about that table, you do not need it.

John
It was in the admincp navbar on the left side in the same dropdown as the other Warning mods.

Screenshot attached.

Bolas
12-11-2004, 01:52 PM
Hi,

your hack is great, congratulations.
I find myself in a situation where interactions between many moderators (people I trust) may sometimes be difficult to manage: coalitions to ban a user from the whole board may be unpleasant moments in the community. At the moment your hack cannot be used for every single forum. If it could, we may havea system by which ban from every single forum may be proposed by the regular users of that particular forum.
Would it be a long and difficult job to add such a feature into next release?
Again congratulation.

Delphiprogrammi
12-11-2004, 02:56 PM
thanks dude nice thing just downloaded it gonna install it right now i like it have a beer or two :D

jluerken
12-11-2004, 03:04 PM
I checked the MEMBERINFO Template twice and used exactly what you've written in the installation instructions.


Please can someone mail me a running modified MEMBERINFO Template so that I can try this?

oldfan
12-11-2004, 03:40 PM
looks great, is it bug free yet?

sv1cec
12-11-2004, 03:57 PM
looks great, is it bug free yet?
MEMBERINFO TEMPLATE


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
$headinclude
</head>
<body>
$header
$navbar
$sponsorspanel

<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[view_profile]<span class="normal">: $userinfo[username]</span></td>
<!-- checks for warning system -->
<td class="thead" align="right">
<div class="smallfont" style="float:$stylevar[right]">
<if condition="THIS_SCRIPT=='member' AND $warn_opts[allowoffpost]=='Yes'">
<if condition="$hierarchical=='No'">
<if condition="($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5) AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=7 AND $userinfo[usergroupid]!=5 AND $userinfo[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
</if>
</if>
<if condition="$hierarchical=='Yes'">
<if condition="($userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)) OR ($userinfo[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $userinfo[usergroupid]!=6)">
<a href='Warn.php?do=WarnUserNoPost&id=$userid'>Warn $userinfo[username] (non-post related)</a> ? <a href='Warn.php?do=ViewWarnings&id=$userinfo[userid]'>View $userinfo[username]'s Warnings</a>
</if>
<if condition="$userinfo[userid]==$bbuserinfo[userid] AND $userinfo[usergroupid]!=6 AND $userinfo[warning_level]>0">
<a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a>
</if>
</if>
</if>
<!-- end of warning system -->
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="alt2">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" colspan="3">
<if condition="$userinfo['rank'] OR $userinfo['reputationdisplay']">
<div style="float:$stylevar[right]; padding:4px">
<if condition="$userinfo['rank']"><div align="center">$userinfo[rank]</div></if>
<if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>
</div>
</if>
<div style="font-size:18pt">$userinfo[musername]</div>
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
</td>
<td style="border-bottom:1px solid $stylevar[tborder_bgcolor]" align="$stylevar[right]">
<div class="smallfont">
<b>User ID :</b> $userid

<if condition="$viewoption=='All'">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>

<if condition="$viewoption=='Mgm' AND $hierarchical=='Yes'">
<if condition="($bbuserinfo[usergroupid]==7 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==7 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5 AND $userinfo[usergroupid]!=7)
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[userid]==$bbuserinfo[userid])
OR
($bbuserinfo[usergroupid]==5 AND $userinfo[usergroupid]!=6 AND $userinfo[usergroupid]!=5)
OR
($bbuserinfo[usergroupid]==6)
">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</if>
</div>
<if condition="$viewoption=='Mgm' AND $hierarchical=='No' AND
(
$bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR
$bbuserinfo[usergroupid]==6
)">
<if condition="$userinfo[warning_level]>0">
<font color="#ff0000">
<BR>Warnings Level: $userinfo[warning_level]
<font color="#000000">
</if>
<if condition="$userinfo[warning_bans]>0">
<font color="#ff0000">
<BR>Number of bans: $userinfo[warning_bans]
<font color="#000000">
</if>
</if>
</td>
<if condition="$show['profilepic']">
<td valign="middle" align="$stylevar[right]" rowspan="2" width="160">
<center><img src="image.php?u=$userinfo[userid]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /></center>
</td>
</if>
</tr>
<tr valign="top">
<if condition="$show['avatar']">
<td colspan="3">
<div class="smallfont">User's avatar :<p><img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></div></td>
<else />
<td colspan="3"><div class="smallfont">User's avatar :<p><img src="images/avatars/noavatar.gif"></td>
</if>
<td class="smallfont" valign="middle" align="$stylevar[right]">
<!-- for user away mod -->
<if condition="$userinfo['awaystatus'] == 1">
<b><span class="time">[ </span>$userinfo[username] is away since $awaysincedate - $awaysincetime<span class="time"> ]</span></b>
<br>
<if condition="$userinfo['awaymessage'] != ''">Reason: $awaymessage&nbsp;<br>
<else />
<span class="time">No reason was given.</span><br>
</if>
<if condition="$post['awayuntil'] != ''">
Expected back on : $post[awayuntildate]
<else />
No expected back date was given.
</if>
<p>
</if>

<!-- for user away mod -->
<if condition="$show['lastactivity']">
<div><B>$vbphrase[last_activity]:</b> $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div>
</if>
<if condition="$show['currentlocation']">
<div><b><if condition="$userinfo['action']">$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]<else />$vbphrase[offline]</if>&nbsp;</b></div>
</if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- / main info - avatar, profilepic etc. -->

<!-- button row -->
<if condition="$show['profilelinks']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$userinfo['showvcard']">
<td class="vbmenu_control"><a href="member.php?$session[sessionurl]do=vcard&amp;u=$userinfo[userid]">$vbphrase[download_vcard]</a></td>
</if>
<if condition="$show['member']">
<td class="vbmenu_control">
<if condition="$show['addbuddylist']">
<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_buddy_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_buddylist]</phrase></a>
</if>
</td>
<td class="vbmenu_control">
<if condition="$show['addignorelist']">
<a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[add_x_to_ignore_list]</phrase></a>
<else />
<a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[remove_x_from_your_ignorelist]</phrase></a>
</if>
</td>
</if>
<if condition="can_moderate()">
<td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td>
</if>
</tr>
</table>
</if>
<!-- / button row -->

<br />

<if condition="$show['signature']">
<!-- signature row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[signature]</td>
</tr>
<tr>
<td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td>
</tr>
</table>
<!-- / signature row -->
<br />
</if>


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" width="50%">$vbphrase[forum_info]</td>
<td class="tcat" width="50%">$vbphrase[contact_info]</td>
</tr>
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[join_date]: <strong>$userinfo[datejoined]</strong>
</div>
</div>

<fieldset class="fieldset">
<legend>$vbphrase[posts]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
</td>
</tr>
<if condition="$vboptions['profilelastpost']">
<tr>
<td>
$vbphrase[last_post]:<br />
<a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
$userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
</td>
</tr>
</if>
<tr>
<td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
</tr>
<tr>
<td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;s earchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
</tr>
</table>
</fieldset>

<if condition="$vboptions['usereferrer']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[referrals]: <strong>$referrals</strong>
</div>
</div>
</if>

<if condition="$show['usernotes']">
<div class="fieldset">
<div style="padding:$stylevar[formspacer]px">
$vbphrase[user_notes]: <strong>$usernote[total]</strong> [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]</a>]
<if condition="$show['usernotetotal']">
<br />($vbphrase[last]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
</if>
</div>
</div>
</if>

</div>
</div>
</td>

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$show['homepage']">
<tr>
<td>
$vbphrase[home_page]:<br />
<a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a>
</td>
</tr>
</if>
<tr>
<td>
$vbphrase[email]:<br />
<a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_message_via_email_to_x]</phrase></a>
</td>
</tr>
<if condition="$userinfo['pm']">
<tr>
<td>
$vbphrase[private_message]:<br />
<a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[send_private_message_to_x]</phrase></a>
</td>
</tr>
</if>
</table>
</div>

<if condition="$show['hasimicons']">
<fieldset class="fieldset">
<legend>$vbphrase[instant_messaging]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$userinfo['showicq']">
<tr>
<td>$userinfo[icqicon]</td>
<td><a href="#" onclick="return imwindow('icq', '$userinfo[userid]', 500, 450)">$userinfo[icq]</a></td>
</tr>
</if>
<if condition="$userinfo['showaim']">
<tr>
<td>$userinfo[aimicon]</td>
<td><a href="#" onclick="return imwindow('aim', '$userinfo[userid]', 400, 200)">$userinfo[aim]</a></td>
</tr>
</if>
<if condition="$userinfo['showmsn']">
<tr>
<td>$userinfo[msnicon]</td>
<td><a href="#" onclick="return imwindow('msn', '$userinfo[userid]', 400, 200)">$userinfo[msn]</a></td>
</tr>
</if>
<if condition="$userinfo['showyahoo']">
<tr>
<td>$userinfo[yahooicon]</td>
<td><a href="#" onclick="return imwindow('yahoo', '$userinfo[userid]', 400, 200)">$userinfo[yahoo]</a></td>
</tr>
</if>
</table>
</fieldset>
</if>

</div>
</div>
</td>

</tr>
<tr>
<td class="tcat" width="50%">$vbphrase[additional_information]</td>
<td class="tcat" width="50%">$vbphrase[group_memberships]</td>
</tr>
<tr valign="top">

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<if condition="$userinfo['birthday'] OR $customfields">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<if condition="$userinfo['birthday']">
<tr>
<td>
<strong>$vbphrase[birthday]</strong>:<br />
$userinfo[birthday]
</td>
</tr>
</if>
$customfields
</table>
<else />
<em>$vbphrase[n_a]</em>
</if>
</div>

</div>
</div>
</td>

<td class="panelsurround" align="center">
<div class="panel">
<div align="$stylevar[left]">

<div class="fieldset">
<table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
<tr>
<if condition="$show['membergroups']">
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_a_member_of_the_following_groups]</phrase></strong>:</td>
<else />
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
</if>
</tr>
$membergroupbits
</table>
</div>

</div>
</div>
</td>

</tr>
</table>

$footer

</body>
</html>


This is from my forums.

sv1cec
12-11-2004, 04:03 PM
It was in the admincp navbar on the left side in the same dropdown as the other Warning mods.

Screenshot attached.
Not unless you haven't followed my instructions. Here is the part of the instructions that talk about the admincp/index.php file:


In the same file, find:

$printhr = false;
if (can_administer('canadminstyles'))
{

Right above that, add:

$printhr = true ;
construct_nav_option ( 'Manage Warning Options', 'admin_warn.php?act=manageoptions', '<br />' ) ;
construct_nav_option ( 'Manage Warning Types', 'admin_warn.php?act=view', '<br />' ) ;
construct_nav_option ( 'View Warning Logs', 'admin_warn.php?act=viewlogs', '<br />' ) ;
construct_nav_option ( 'View Warned Users', 'admin_warn.php?act=viewwarnedusers', '<br />' ) ;
if ($warn_opts['automaticpm'] == 'Yes')
{
construct_nav_option ( 'View Auto-Warned PMs', 'admin_warn.php?act=viewwarnedpms', '<br />' ) ;
}
construct_nav_option ( 'Prune Warnings', 'admin_warn.php?act=prune', '<br />' ) ;
//construct_nav_option ( 'Unban Banned Users', 'admin_warn.php?act=run_unban', '<br />' ) ;
construct_nav_group ( 'Warning System', '<hr />' ) ;


As you can see the line for the Unban Banned Users, is commented out.

Anyhow, comment that line out and forget about it. You do not need it.

Rgds

jluerken
12-11-2004, 04:24 PM
MEMBERINFO TEMPLATE
This is from my forums.

Thanks,

this is looking much better now except one small thing.
If the user has no profile pic and the reputation system is activated, the reputation icon is placed in the middle of the member info.
In the original template its showing on top right which is looking better.

I want to have it over the UserID Text. Take a look at the attachment and you'll know what I mean.

Can you help me with this?

Delphiprogrammi
12-11-2004, 05:26 PM
my memberinfotemplate doesn't have


<if condition="$show['avatar']">
<td colspan="3">


what do i do about that ??

also there is no link in my navbar ... i added that two lines to the navbar template but nope ....

Revan
12-11-2004, 06:05 PM
Thanks,

this is looking much better now except one small thing.
If the user has no profile pic and the reputation system is activated, the reputation icon is placed in the middle of the member info.
In the original template its showing on top right which is looking better.

I want to have it over the UserID Text. Take a look at the attachment and you'll know what I mean.

Can you help me with this?I modded my template so this icon is next to the username instead.
All you have to do is place the variable controlling it (cant remember what it is) to somewhere else.

jluerken
12-11-2004, 06:31 PM
I modified it like this which is much better now I think:

sv1cec
12-11-2004, 08:23 PM
my memberinfotemplate doesn't have


<if condition="$show['avatar']">
<td colspan="3">


what do i do about that ??

also there is no link in my navbar ... i added that two lines to the navbar template but nope ....
What you should be looking for is:


<if condition="$show['avatar']">
<td>


and replace it with :


<if condition="$show['avatar']">
<td colspan="3">



Please read the instructions carefully.

As for the navbar, if you added those two lines, it should be there, there is no reason why it is not showing. Show me the code you have there.

Rgds

sv1cec
12-11-2004, 08:32 PM
Hi,

your hack is great, congratulations.
I find myself in a situation where interactions between many moderators (people I trust) may sometimes be difficult to manage: coalitions to ban a user from the whole board may be unpleasant moments in the community. At the moment your hack cannot be used for every single forum. If it could, we may havea system by which ban from every single forum may be proposed by the regular users of that particular forum.
Would it be a long and difficult job to add such a feature into next release?
Again congratulation.
It's not very difficult to do what you want, AWS is not very far from what you are asking, the main differences are:

- everybody can vote against everybody. This can be considered the same as everybody being capable of issuing warnings.
- in which case, obviously the warning points required for a ban should be much higher.

So, in reality, with some changes at who can vote (warn), some adjustements of the existing parameters and some additional parameters (like for example how many times a member can warn another member), a system like the one you describe is possible.

Or, you can add another level above the whole hack, where users are really voting for a particular warning which the admins have decided to issue against a particular member, and the results of these votes decide if the warning is issued or not. This is getting too "democratic" for my taste, and too much democracy easily leads to anarchy.

I am not sure if the above make sense, too late in the evening and too many things in my mind, so sorry if they sound like a drunk man's words (I swear, no drinks).

Rgds

sv1cec
12-11-2004, 08:33 PM
looks great, is it bug free yet?
I do not know, you should ask the members who installed it.

Rgds

Delphiprogrammi
12-12-2004, 10:55 AM
allright installed fine no more php errors but i can't figure out howto give a warning ? i added a user called "forumgod" gave him super moderator rights (like the instructions say) but howdo i give a warning ? i also added a normal user called test to play with but .... howdo i give him a warning when i am logged as an administrator Warn.php?do=Warn&userid=$bbuserinfo[userid] ?? :rolleyes:

my vbulletion version is the latest availible from vbulletin.com/members/

ooh the nevbar thingy is working now :speechless:

[edit]

never mind there is a link called "warn vbulletin_username" at the top right corner of the post they make i just wasn't logged in a username able to warn so i couldn't see that sorry .... :ermm:

sv1cec
12-12-2004, 12:19 PM
allright installed fine no more php errors but i can't figure out howto give a warning ? i added a user called "forumgod" gave him super moderator rights (like the instructions say) but howdo i give a warning ? i also added a normal user called test to play with but .... howdo i give him a warning when i am logged as an administrator Warn.php?do=Warn&userid=$bbuserinfo[userid] ?? :rolleyes:

my vbulletion version is the latest availible from vbulletin.com/members/

ooh the nevbar thingy is working now :speechless:

[edit]

never mind there is a link called "warn vbulletin_username" at the top right corner of the post they make i just wasn't logged in a username able to warn so i couldn't see that sorry .... :ermm:
If you are logged in as an admin or supermod or mod, and you look into a thread which contains user posts, in each user post, you should see two links. One saying "Warn XYZ" and one saying "View XYZ's warnings", where XYZ is the user name. Their purpose is obvious.

Depending on whether or not you allow off-post warnings or not, similar links appear, if you click on the poster's name inside a post and go to his public profile.

Rgds

sv1cec
12-12-2004, 12:49 PM
Folks,

For those who upgraded to version 2.3, I haven't included instructions, on how to set the version of the hack, in the database.

Please run the following query:

UPDATE `".TABLE_PREFIX."warning_options` SET version='2.3' WHERE oid=1

Rgds

Delphiprogrammi
12-12-2004, 01:02 PM
i got this thing working great thing spammers will think twice now i managed to get the script working using this steps


back your database in case you screw up you can easly restore the backup
for security reasons make a copy off all *.php files that need to be edited manually(this allows you to uninstall easysly when you need to)
open installationinstructions.txt included in the zip and follow the instructions provided


like this there won't be a problem

last thing a screenshot from the working script

thanks for the great excellent

sv1cec
12-12-2004, 01:12 PM
i got this thing working great thing spammers will think twice now i managed to get the script working using this steps


back your database in case you screw up you can easly restore the backup
for security reasons make a copy off all *.php files that need to be edited manually(this allows you to uninstall easysly when you need to)
open installationinstructions.txt included in the zip and follow the instructions provided


like this there won't be a problem

last thing a screenshot from the working script

thanks for the great excellent
That's the kind of feedback I want from you guys, thanks a lot Delphi!

Rgds