2015-02-13, 08:00 PM
(This post was last modified: 2018-04-15, 11:40 PM by Ircher.
Edit Reason: Version 2.4 Released
)
Current version is 2.5
***It is highly recommended you upgrade to version 2.5 of this plugin.***
(Note: Information below may be slightly outdated...)
Original Description (See features & version history for up-to-date info)
----------------------------------------------------------------------------------------------------------
With two changes to the default warnings.php, this plugin will better handle the permissions for the warning system by letting you set-up a hierarchy of group ids from most powerful to least powerful. If the user the person is trying to warn has a lower rank (ie, closer to the left) than the warner, permission will be denied.
Installation instructions
---------------------------------------
See install.txt
Upgrading from v1.2 or lower to v1.3 or later (according to in-admincp number)
-------------------------------------------------------------------------------------------------------------------
1. Uninstall the old warn permissions plugin
2. Delete warn_permissions.php from MYBB_ROOT/inc/pluginst
3. Upload the contents of the Upload Folder to your forum root and reinstall
Upgrading from 1.3, 1.4, or 1.6 Dev to 2.0
------------------------------------------------------------
1. Not sure if this is neccessary, but I changed some of the info (setting info too) to be in a separate language file instead as plain text.
2. Uninstall the plugin.
3. Reinstall the plugin.
Upgrading from 1.x or 2.0 to 2.1
------------------------------------------------
1. This is mandatory as while I haven't changed the settings themselves, I've changed the way they are used and the descriptive text.
2. Upload ALL the files in the Upload folder to your mybb root
3. Reinstall the plugin
4. Follow the new directions given.
Same instructions for 1.x, 2.0, 2.1 to 2.2; note that two new settings have been added.
Features
---------------
1. Set-up a chain-of-command, so people can't warn users more powerful than them.
2. Supports both primary and additional groups.
3. Restrictions added to bans -- both lifting and execution
4. Restrictions added to revokation of warnings
5. Restrictions added to editting and deletion of posts
6. Restrictions added to thread deletion (LOCAL moderator permissions override)
7. Restrictions added to the editting of users in admincp.
8. Super Admins override hierarchy restrictions.
9. Logging of permission denial
10. Support for groups equal in power
11. Control over unlocking threads and replying to locked threads; these are optional. Read ChangeLog.txt for more detailed info.
Support & Feedback
--------------------------------
1. This Thread Only!!!!
2. Suggestions can be posted here or on the appropriate link on the mods site. Same applies to bugs.
3. I WILL IGNORE AND DELETE ALL BUG, SUPPORT, AND SUGGESTION PMS THAT DO NOT FOLLOW THE RULES STATED RIGHT HERE (unless I specifically pm you asking for such)!!!!!!
Addendum
--------------------
1. More info found inside readme.txt
Notes
-----------
Need someone to verify that additional groups are checked correctly.
Mod Link
----------
http://community.mybb.com/mods.php?action=view&pid=391
Version History
----------------
Version 1.0
--------------
- Initial Release
- Set up a comma-separated list of gids from most powerful to least powerful (hierarchy restrictions)
- Applied hierarchy restrictions to the issuing of warnings
- Named warn_permissions, but never seen by public
Version 1.2
-----------
- Added hierarchy restrictions to issuing and lifting of bans.
- Lifting of bans was bugged (based off banned_user rather than banner)
- Named warn_permissions, but never seen by public
Version 1.2b
------------
- Minor Fix --- Put plugin file in Upload/inc instead of Upload/inc/plugins
- Named warn_permissions
- First public release
Version 1.3
-----------
- Fixed bug in lifting of bans
- Added language files
- Differentt error messages for different actions
- Added hierarchy restrictions to revokation of warnings
- Fixed bug with not having rebuild_settings() in _uninstall() function
- Renamed everything to Staff Hierarchy Permissions (Please read the upgrade instructions in this thread)
Version 1.3b
---------------
- Minor fixes, updating information. If you have v1.3 already, updating to 1.3b would be a complete waste of time.
Version 1.4
-----------------
- Added hierarchy restrictions to edit/deletion of posts
- Added hierarchy restrictions to deletion of threads
+ Having a local moderator with permission to delete threads pernamently will override the hierarchy restrictions. This is intended and will not be changed. I will ignore/dismiss/reject any bug reports that find this as a bug.
V1.6 Dev
----------------------
- DO NOT USE ON A LIVE FORUM. This is a DEVELOPMENT / DEBUG Build. I will not provide support to anyone who uses version 1.6 Dev on a live forum.
- EDIT: This build is safe
Version 2.0
--------------------------
- Version jump represents the fact I reformatted the code for consistency.
- Settings & Info now use language file
- Using admin redirects now in admincp
- Quick Edit should work properly (REPORT BUGS HERE -- HAVEN'T BEEN ABLE TO TEST) - Hierarchy Restrictions should apply
- Super Admins should now override hierarchy restrictions; tell me if this ain't the case (should've included this in the original release)
- The admincp no longer lets you edit yourself or anyone of equal or higher power (to prevent unfairly giving one extra power)
I'm getting tired of writing a change log / version history like 3 or 4 times (in ChangeLog.txt, on the changelog field, adding the changes to my feature lists, adding it at the bottom of this post), so therefore, I shall no longer write the version history at the end of the post.
***It is highly recommended you upgrade to version 2.5 of this plugin.***
(Note: Information below may be slightly outdated...)
Original Description (See features & version history for up-to-date info)
----------------------------------------------------------------------------------------------------------
With two changes to the default warnings.php, this plugin will better handle the permissions for the warning system by letting you set-up a hierarchy of group ids from most powerful to least powerful. If the user the person is trying to warn has a lower rank (ie, closer to the left) than the warner, permission will be denied.
Installation instructions
---------------------------------------
See install.txt
Upgrading from v1.2 or lower to v1.3 or later (according to in-admincp number)
-------------------------------------------------------------------------------------------------------------------
1. Uninstall the old warn permissions plugin
2. Delete warn_permissions.php from MYBB_ROOT/inc/pluginst
3. Upload the contents of the Upload Folder to your forum root and reinstall
Upgrading from 1.3, 1.4, or 1.6 Dev to 2.0
------------------------------------------------------------
1. Not sure if this is neccessary, but I changed some of the info (setting info too) to be in a separate language file instead as plain text.
2. Uninstall the plugin.
3. Reinstall the plugin.
Upgrading from 1.x or 2.0 to 2.1
------------------------------------------------
1. This is mandatory as while I haven't changed the settings themselves, I've changed the way they are used and the descriptive text.
2. Upload ALL the files in the Upload folder to your mybb root
3. Reinstall the plugin
4. Follow the new directions given.
Same instructions for 1.x, 2.0, 2.1 to 2.2; note that two new settings have been added.
Features
---------------
1. Set-up a chain-of-command, so people can't warn users more powerful than them.
2. Supports both primary and additional groups.
3. Restrictions added to bans -- both lifting and execution
4. Restrictions added to revokation of warnings
5. Restrictions added to editting and deletion of posts
6. Restrictions added to thread deletion (LOCAL moderator permissions override)
7. Restrictions added to the editting of users in admincp.
8. Super Admins override hierarchy restrictions.
9. Logging of permission denial
10. Support for groups equal in power
11. Control over unlocking threads and replying to locked threads; these are optional. Read ChangeLog.txt for more detailed info.
Support & Feedback
--------------------------------
1. This Thread Only!!!!
2. Suggestions can be posted here or on the appropriate link on the mods site. Same applies to bugs.
3. I WILL IGNORE AND DELETE ALL BUG, SUPPORT, AND SUGGESTION PMS THAT DO NOT FOLLOW THE RULES STATED RIGHT HERE (unless I specifically pm you asking for such)!!!!!!
Addendum
--------------------
1. More info found inside readme.txt
Notes
-----------
Need someone to verify that additional groups are checked correctly.
Mod Link
----------
http://community.mybb.com/mods.php?action=view&pid=391
Version History
----------------
Version 1.0
--------------
- Initial Release
- Set up a comma-separated list of gids from most powerful to least powerful (hierarchy restrictions)
- Applied hierarchy restrictions to the issuing of warnings
- Named warn_permissions, but never seen by public
Version 1.2
-----------
- Added hierarchy restrictions to issuing and lifting of bans.
- Lifting of bans was bugged (based off banned_user rather than banner)
- Named warn_permissions, but never seen by public
Version 1.2b
------------
- Minor Fix --- Put plugin file in Upload/inc instead of Upload/inc/plugins
- Named warn_permissions
- First public release
Version 1.3
-----------
- Fixed bug in lifting of bans
- Added language files
- Differentt error messages for different actions
- Added hierarchy restrictions to revokation of warnings
- Fixed bug with not having rebuild_settings() in _uninstall() function
- Renamed everything to Staff Hierarchy Permissions (Please read the upgrade instructions in this thread)
Version 1.3b
---------------
- Minor fixes, updating information. If you have v1.3 already, updating to 1.3b would be a complete waste of time.
Version 1.4
-----------------
- Added hierarchy restrictions to edit/deletion of posts
- Added hierarchy restrictions to deletion of threads
+ Having a local moderator with permission to delete threads pernamently will override the hierarchy restrictions. This is intended and will not be changed. I will ignore/dismiss/reject any bug reports that find this as a bug.
V1.6 Dev
----------------------
- DO NOT USE ON A LIVE FORUM. This is a DEVELOPMENT / DEBUG Build. I will not provide support to anyone who uses version 1.6 Dev on a live forum.
- EDIT: This build is safe
Version 2.0
--------------------------
- Version jump represents the fact I reformatted the code for consistency.
- Settings & Info now use language file
- Using admin redirects now in admincp
- Quick Edit should work properly (REPORT BUGS HERE -- HAVEN'T BEEN ABLE TO TEST) - Hierarchy Restrictions should apply
- Super Admins should now override hierarchy restrictions; tell me if this ain't the case (should've included this in the original release)
- The admincp no longer lets you edit yourself or anyone of equal or higher power (to prevent unfairly giving one extra power)
I'm getting tired of writing a change log / version history like 3 or 4 times (in ChangeLog.txt, on the changelog field, adding the changes to my feature lists, adding it at the bottom of this post), so therefore, I shall no longer write the version history at the end of the post.
Do NOT pm me for support on ANY of my plugins
DO pm me if you got suggestions for existing ones (although posting in the proper thread is preferred), or suggestions/ideas for new plugins (keep in mind I'm an amateur but not necessarily a beginner.)
DO pm me if you got suggestions for existing ones (although posting in the proper thread is preferred), or suggestions/ideas for new plugins (keep in mind I'm an amateur but not necessarily a beginner.)