Additional Info
Type
Package ID
Dav999:BannedLabel
First Created
July 31, 2017, 05:55:57 PM
Last Updated
February 03, 2021, 01:26:42 PM

Label for banned members v1.0

This adds a label to posts and profiles of banned members (also works with "cannot post/login" bans)
Compatible With 2.0.14, 2.0.18
Latest version v1.0
Downloads 854
Reviews 0
Rating 0/5
Subscribers 2
License (View License)
Author(s)
Screenshots
Label for banned members

If you have ever put someone in a special "Banned" membergroup or edited someone's personal text or custom title in order to display their banned status, this mod may be useful to you.

This mod automatically shows a message in posts and user profiles belonging to members that are banned. This not only works for "Full bans", but also "Cannot login" and "Cannot post" bans! For temporary bans, the message disappears as soon as the ban has expired.

More technical explanation
For members affected by a "Full ban", SMF also changes the activation status to a special value (by adding 10 to it), which has effects such as hiding them from the public memberlist. Some mods have used this activation status to display banned members in one way or another, but none of them work for "Cannot login" or "Cannot post" bans, because it's not possible to tell from the members table alone. Since querying the banlist for every post on a topic page would be bad for performance, a solution is to add a column to the members table holding the (maximum) expiry time of that person's ban(s), 0 if not banned, or NULL for permanently banned members.

Version support
* SMF 2.0.xx
SMF 1.1.xx is not supported. SMF 2.1 (currently beta) is not yet supported.

Languages
* English
* Nederlands (Dutch)
Translations are welcome (if you know what "Banned" is in your language, you've already translated this entire mod)



Changelog
v1.0 (2017-07-31)
* Initial release



License:

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: