vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   "Smith" Warning System (https://vborg.vbsupport.ru/showthread.php?t=132133)

akanevsky 11-20-2006 10:00 PM

"Smith" Warning System
 
/*=============================*\
|| "Smith" Warning System
||
|| Author : Anton Kanevsky
|| Co-Author(s) : Mr_Devlin (German Translation)
|| Works on : vBulletin 3.5 / 3.6
|| Released : Nov 25, 2006
||
|| Time required to install: 1 minute
|| Difficulty: easy
\*=============================*/

DESCRIPTION

Have you been running into troublesome users ever since you have began administering your bulletin board? Have you been forced into banning these users because there was no other way to prevent them from wreaking havoc in your community? Look no further. "Smith" Warning System is a professional solution that features a system of warning points as an alternative to an immediate ban. A must-have tool for a serious administrator.

STATISTICS

File Uploads: 1
Template Changes: 5
Products to Install: 1


FEATURES
  • Configuration Options
    • Banning Threshold (defines the maximum number of points)
    • Banning Usergroup (defines where to move a user after the user has reached the threshold)
    • Automatically Create Warning Usernote for Warned User (yes / no)
    • Fake Warner (a fake person from whom warnings originate)
    • Forum for Information Threads (can be turned off completely)
    • Enable Conditional Display of "Issue New Warning" Link in Showthread and Showpost (Advanced Option; Takes Extra Queries)

  • Extensive Usergroup Permissions
    • Can Issue Warnings
    • Can Administer Warnings
    • Can Disable Notification
    • Can Be Warned
    • Can Override Warning Settings (Defines whether number of points, duration period, reputation effect and revokation cost may be customized per-warning)
    • Can View Own Warnings
    • Can View Others Warnings

  • Warning Type Manager
    • Title & Description
    • Default number of points (customizable per warning)
    • Default duration period (customizable per warning)
    • Default reputation effect (customizable per warning)
    • Default self-revokation cost (customizable per warning)
    • Each warning type can be deactivated or deleted if desired.

  • Warning History Manager
    • Extensive filter for a quick lookup of warnings that much certain criteria.
    • Ability to permanently revoke unexpired warnings as an alternative to complete deletion. That way they stay in the log, but have no further effect.

  • Smart, Full-Featured Front End
    • Amount of points and duration of a warning.
    • Real and "Verbal" (non-penalty) warnings, both of which are recorded into the warning log.
    • If certain setting (vBulletin Options -> Warning System) of the hack is misconfigured, an error message will be displayed when you attempt to issue a new warning, thus preventing your database from potential corruption.
    • Each post can only be warned once.
    • A person may not issue a self-warning.
    • Verbal warnings are displayed with a "verbal" sign in the log in place of the points.
    • Information about an issued warning is automatically recorded into user's usernotes page. If a warning is deleted, the usernote is deleted too. The feature can be turned off if desired.
    • Information about an issued warning is automatically posted in the form of a new thread in a designated forum. The feature can be turned off if desired.
    • If a post has an attached warning, the brief warning details are displayed at the bottom of the post.
    • If a person a positive warning level, it is displayed in the posts and in the profile of that person.
    • Warned posts are automatically locked from any further modifications by their owners.
    • Warning history, once a user has one or more warnings, is available from the user's profile and from posts.
    • Members who have a permission to issue warning are unable to issue warnings to higher-standing usergroups (such as moderator -> supermoderator or supermoderator -> admin).
    • A sophisticated "who's online" handler that shows exactly what a user is doing in the front-end warning system.
    • Only those links to which the viewer has access are displayed. For example, a moderator will not see an "issue new warning" link on a supermoderor's post, but an administrator will.
    • Reputation Effect: Amount of reputation points that will be subtracted from the user's account until the warning expires or is revoked/deleted.
    • Reputation-Based Self-Revokation Capability: Each warning can be set to allow the end user to buy the warning out in exchange for a certain amount of reputation points.

  • Bonus! The following importer has been included into the package:
    • Inferno Warning System v1.3

VERSION HISTORY

1.3.1
Corrected a postbit_legacy template bug.

1.3.0
The first free release that is officially cross-compatible with both vBulletin 3.5 and 3.6.

1.2.2
[F] Corrected a licensing issue.
[F] Corrected a cron bug, which caused an sql error.
[F] Changed behavior of "Can View ___ Warnings" permission to cover the warning level displayed in posts.

1.2.1
[+] Reputation Points Option was removed from vBulletin Options. Instead, Reputation Effect can now be defined per Warning Type and even per Warning.
[+] Reputation-Based Self-Revokation Capability: Each warning can be set to allow the end user to buy the warning out in exchange for a certain amount of reputation points.
[+] Feature to enable creation of warning information threads in a specific forum.
[+] More detailed and better formatted usernotes and notifications.

1.1.0
[+] Ability to Issue Verbal Warnings
[+] Ability to Define a Fake Warner
[+] Automatic Usernotes Creation
[+] Warned Posts May Not Be Modified by the Author
[+] More sophisticated who's online handler
[+] Warning sign on warned posts

1.0.0
Introductory Release

INTRODUCTION

This hack includes a cron, which you do not need to manually add to your cron manager. The cron is added automatically for you once you install the product XML.
If you wish to import your warning data from another warning system, upload warn_import.php from ./do_not_upload/ to ./admincp/ and run it from your browser.

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

akanevsky 11-21-2006 07:20 PM

MORE SCREENSHOTS ARE ATTACHED TO THIS POST!

FAQ

Q: Why did this become a free product?
A: Seeing how there are plenty of alternative solutions that seem to satisfy users despite the fact they are full of bugs as well as the fact that vBulletin 3.6.0 has a warning system of its own, we decided that there is no point in having this hack as a commercial product anymore.

Q: How is this different from vBulletin's Infraction System?
A: This has much more features that are more reasonable and more interesting than those of vBulletin's. Read through the list of features and look at screenshots to see for yourself.

Q: How is this different from an alternative warning system called BLAH_BLAH_BLAH?
A: This has more features, less bugs (if any), and this is just a whole different project. See screenshots for yourself.

Ziki 11-21-2006 07:39 PM

Very Nice Psion but I would like to ask what (if any) way is it better than AWS?

akanevsky 11-21-2006 07:47 PM

Quote:

Originally Posted by Ziki (Post 1122450)
Very Nice Psion but I would like to ask what (if any) way is it better than AWS?

Please read through the list of features and look at the screenshots. Also read the FAQ post. I am sure that after doing so you'll be able to answer that question yourself. :)

Ziki 11-22-2006 04:07 AM

It looks great but it looks so complex that I better use AWS :-/

akanevsky 11-22-2006 11:48 AM

Quote:

It looks great but it looks so complex that I better use AWS :-/
It is actually simpler (once you get used to it), and has no bugs like AWS does. :) So think twice.

Ohh-Dutch 11-22-2006 11:54 AM

Will This Not Work If I Have Your Battle System Installed? Becuz I Cant Use The Moderator Application Hack Either Becuz Of The Battle Hack... Let Me Know Psionic... Thanx Man...

akanevsky 11-22-2006 01:09 PM

Quote:

Originally Posted by Ohh-Dutch (Post 1122894)
Will This Not Work If I Have Your Battle System Installed? Becuz I Cant Use The Moderator Application Hack Either Becuz Of The Battle Hack... Let Me Know Psionic... Thanx Man...

The battle hack has absolutely nothing to do with this hack.

lasto 11-23-2006 04:46 PM

sounds good to me - is this fine for 3.5.4 version of vbull ?

akanevsky 11-23-2006 05:17 PM

Yeah, 3.5.0 is the minimum version with which this is fine.

HellRazor 11-24-2006 12:14 PM

Thanks for releasing this to the public! :) I didn't really need the functionality enough to purchase it, but as a free product I will definately install this.

Konstantinos 11-24-2006 06:46 PM

Database error in vBulletin 3.5.7:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO vbplugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Warning System (Disable Post Editing by Author of the Warned Post)', 'editpost_start', 'if ($vbulletin->userinfo[\'userid\'] == $postinfo[\'userid\'])\r\n{\r\n if ($verification = $db->query_first(\"SELECT warningid FROM \" . TABLE_PREFIX . \"warning WHERE postid = $postinfo[postid] LIMIT 1\"))\r\n {\r\n print_no_permission();\r\n }\r\n}', 'psi_ws');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054

akanevsky 11-24-2006 06:51 PM

Please re-download the zip file and try again.

akanevsky 11-26-2006 11:02 PM

Interesting, 4 installs. Is it that everyone uses 3.6 by now?

Ziki 01-07-2007 08:16 AM

Quote:

Originally Posted by Psionic Vision (Post 1122892)
It is actually simpler (once you get used to it), and has no bugs like AWS does. :) So think twice.


Ok you got me :p

Alfa1 01-07-2007 11:39 AM

Is this also available for 3.6.4?

Fearlessninja 01-07-2007 03:13 PM

This is way better than AWS, as this has not many bugs so far. I suggest all AWS users to move to this one as this one is more updated and has bug fixes.

akanevsky 01-07-2007 03:16 PM

Quote:

Originally Posted by Alfa1 (Post 1152554)
Is this also available for 3.6.4?

Yep. This hack is compatible with vB 3.5.0 through 3.6.4.

Quote:

Originally Posted by Fearlessninja (Post 1152671)
This is way better than AWS, as this has not many bugs so far. I suggest all AWS users to move to this one as this one is more updated and has bug fixes.

Thank you. :)

Parker Clack 01-14-2007 02:13 PM

Psionic Vision:

I love this hack and have moved from AWS over to this. A couple of things though.

Do you think you could add a log for the warnings so that when the member has been warned it goes in the log and doesn't get removed once the duration period expires? For example if the threshhold has been reached and their posting privledges have been reinstated the warning they received remains in the log file for future reference?

Also, could a permanent ban option be added so that instead of issuing a warning you could just ban them and the message that gets sent to the member tells them such?

Again, great program. My administrators are enjoying it a great deal on our site.

Parker

akanevsky 01-14-2007 02:47 PM

Quote:

Do you think you could add a log for the warnings so that when the member has been warned it goes in the log and doesn't get removed once the duration period expires? For example if the threshhold has been reached and their posting privledges have been reinstated the warning they received remains in the log file for future reference?
It is never removed from the log unless you manually remove it via admincp "delete" link.

Quote:

Also, could a permanent ban option be added so that instead of issuing a warning you could just ban them and the message that gets sent to the member tells them such?
Yes, although you could just manually give enough points to have the person banned. :)

Parker Clack 01-14-2007 06:49 PM

Great. Thanks for the information.

Parker Clack 01-14-2007 08:28 PM

Quote:

Ability to permanently revoke unexpired warnings as an alternative to complete deletion. That way they stay in the log, but have no further effect.
Ok. I am not sure on this feature. Do you go to Issued Warnings > Edit and then enable the Revoke option? What does revoking a warning do? Do it remove the points assigned?

If this doesn't remove points is there an option that will allow you to remove a few points? Let's say you give a member 15 points but want to reduce this to 10 points?

Thanks,
Parker

akanevsky 01-14-2007 10:31 PM

Quote:

Ok. I am not sure on this feature. Do you go to Issued Warnings > Edit and then enable the Revoke option? What does revoking a warning do? Do it remove the points assigned?
Revoking a warning means setting it as revoked without deleting it from the log. It removes the points. It also restores the reputation withdrawn upon the warning.

Revoking is the same as "soft deleting" a warning. But unlike a "soft deleted" post, a "soft deleted" warning cannot be restored.

Parker Clack 01-15-2007 03:06 PM

Thanks again.

So, just so I am clear on this. When the duration period runs out then does this work like a revokation by removing the points awarded, etc. and leaving the log information? Also, if a person has been warned in a particular thread, and that warning expires, can they be warned in that thread again in the future?

Thanks,
Parker

akanevsky 01-15-2007 03:16 PM

Quote:

When the duration period runs out then does this work like a revokation by removing the points awarded, etc. and leaving the log information?
Yes, except instead of being marked as "revoked", the warning is marked as "expired".

Quote:

Also, if a person has been warned in a particular thread, and that warning expires, can they be warned in that thread again in the future?
Yes, sure, as long as it is a different post.

Ziki 01-16-2007 04:30 PM

Uninstalled.Does not work with plugin accelerator

akanevsky 01-16-2007 06:25 PM

Quote:

Originally Posted by Ziki (Post 1160685)
Uninstalled.Does not work with plugin accelerator

What is plugin accelerator?

Ziki 01-16-2007 06:32 PM

A hack by Trigunflame that pastes the plugins directly into the file for faster loading.

akanevsky 01-16-2007 08:35 PM

Quote:

Originally Posted by Ziki (Post 1160810)
A hack by Trigunflame that pastes the plugins directly into the file for faster loading.

Well, perhaps that's a problem with the plugin accelerator? Why exactly doesn't it work? Any error messages?

Pravus 02-06-2007 09:03 PM

Wonder if you can help, when i try to warn a user i get this:

You have defined at least one warning type.
You have defined a 0 or a valid warnerid under vBulletin Options -> Warning System.
You have defined a valid banning usergroupid under vBulletin Options -> Warning System.
You have defined a 0 or a valid forumid under vBulletin Options -> Warning System.

The bottom 3 are fine, it seems to be the warning type thats the problem, but i'm unsure why. I click the users name and click 'issue warning' and i get that error.

akanevsky 02-06-2007 10:51 PM

Have you defined any warning types?

Pravus 02-07-2007 07:47 PM

Yes i did, they are pre defined. The problem was my Banned user group did not have the option, 'this is a banned group' checked. Sorted, thanks.

Darksky 04-10-2008 11:49 PM

wonderful plugin but there's a but about PM count for user who received the warning PM

Darksky 04-11-2008 08:43 PM

Very good mod, thanks a lot.

About the pm counter bug i fixed commenting:

Code:

$ws_userupdate[] = "pmtotal = pmtotal + 1";
$ws_userupdate[] = "pmunread = pmunread + 1";

in warn.php

Actually i'm not a coder but i tested and it works. Also i checked the source of another mod that automatically send PM (Award System) and i did not found any auto incrementing istruction of pmtotal and pmunread.

At the moment i'm facing an issue. I'm trying to issue warning to the founder/administrator of the forum using another administrato account but it fails telling me that i don't have any right to do this. Otherwise, if i try to issue a warning to the second "failing" administrator using the founder/administrator i success. For Founder administrator i mean the user number zero, you know.


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01282 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete