Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
"Smith" Warning System Details »»
"Smith" Warning System
Version: 1.3.1, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.0 Rating:
Released: 11-20-2006 Last Update: 11-24-2006 Installs: 172
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*================================================= =====================*\
|| "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

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #132  
Old 03-21-2007, 07:30 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WrestlingAcadem View Post
I'm having a problem with this on my forum.

Moderators can warn people for posts in any forum other than their own. Is there a way to limit them to just warning posts within their forum?
At the moment, it is not possible, however it may be implemented in a future release.
Reply With Quote
  #133  
Old 03-25-2007, 12:23 AM
akulion's Avatar
akulion akulion is offline
 
Join Date: Nov 2005
Location: Canada
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice system

just one suggestion

instead of saying "The user has been successfully awarded 50 warning points."

it should say "The user has been successfully penalized 50 warning points."

lol because i am sure no one wants that award for sure

or in case my english is incorrect just ignore it
Reply With Quote
  #134  
Old 03-25-2007, 05:18 PM
zariyan zariyan is offline
 
Join Date: Sep 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

akulion, that is simple.

In AdminCP go to "search in phrases", search "awarded" in all forums, search in "Phrase Text AND Phrase Variable Name"

Then you'll see it in ws_post i believe.
Then click Edit, And then Click the "copy default Text" button
Edit the text, and click save. all done.


Also, just for users who want to be able to ban a user from their profile, add this:

In template MEMBER INFO:

find:
Code:
<if condition="$show['giveinfraction']">
	   <td class="vbmenu_control"><a href="infraction.php?$session[sessionurl]do=report&amp;u=$userinfo[userid]">$vbphrase[give_infraction]</a></td>
	</if>
REPLACE With:
Code:
<if condition="($bbuserinfo[usergroupid]==1">
<td class="vbmenu_control"><a href="modcp/banning.php?do=banuser&userid=$post[userid]" target="#blank"><b>Ban or Suspend $post[username]</b></a></td>
<td class="vbmenu_control"><a href="modcp/banning.php?do=liftban&userid=$post[userid]" target="#blank"><b>Lift Ban on $post[username]</b></span></td>
ALSO in line:
Code:
<if condition="($bbuserinfo[usergroupid]==1 || $bbuserinfo[usergroupid]==5">
<!-- ADD USERGROUPS ON THIS LINE -->
Add all Usergroups who should be able to see this in that line.

Hope this makes it easier for you.
Reply With Quote
  #135  
Old 03-31-2007, 10:17 PM
hnjco hnjco is offline
 
Join Date: Jul 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on VB 3.6.5

Looks great.

Thanks
Reply With Quote
  #136  
Old 04-01-2007, 08:34 PM
hnjco hnjco is offline
 
Join Date: Jul 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my users are getting massages of 2 PMs but they getting only one and even they read that they still have massage of one unread massage on main page but when they check inbox there isn't any more.

I'm on 3.6.5
Reply With Quote
  #137  
Old 04-04-2007, 05:47 AM
Deadly Assassin's Avatar
Deadly Assassin Deadly Assassin is offline
 
Join Date: Aug 2006
Location: VbAnswers.com
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When i try to issue a warning i get this error?

Quote:
Database error in vBulletin 3.6.4:

Invalid SQL:

UPDATE user
SET
ws_warninglevel = 3, pmtotal = pmtotal + 1, pmunread = pmunread + 1, reputation = -30, reputationlevelid =
WHERE
userid = 117
LIMIT 1;

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 'WHERE
userid = 117
LIMIT 1' at line 4
Thanks for any help :up:
Reply With Quote
  #138  
Old 04-04-2007, 02:50 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you are running the latest version of the hack...
Make sure you have defined reputation levels or disabled reputation change on warnings otherwise...
Reply With Quote
  #139  
Old 04-05-2007, 03:13 AM
Deadly Assassin's Avatar
Deadly Assassin Deadly Assassin is offline
 
Join Date: Aug 2006
Location: VbAnswers.com
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Psionic Vision View Post
Make sure you are running the latest version of the hack...
Make sure you have defined reputation levels or disabled reputation change on warnings otherwise...
not sure how to do the second task

UPDATE

Reinstalled the hack, seems to be ok now.

Thanks
Reply With Quote
  #140  
Old 04-05-2007, 04:30 PM
hnjco hnjco is offline
 
Join Date: Jul 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any one know how to fix 2 PMs bug?
Reply With Quote
  #141  
Old 04-05-2007, 04:56 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put it on my "Test" Board.
Reply With Quote
Reply


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

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

Forum Jump


All times are GMT. The time now is 02:38 AM.


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

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

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