Advertisement:

Navigation

SMF Mod Site

Mod Name:
Label for banned members
Created By:
Dav999
Type:
Profile
First Created:
July 31, 2017, 05:55:57 PM
Last Modified:
August 06, 2017, 04:42:33 PM
Latest Version:
1.0
Compatible With:
2.0.14
Total Downloads:
92

Download this mod

BannedLabel_v1_0b.tar.gz (6kB) [92]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:

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:
Code: [Select]
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/>