Author: ntvy95, based on the work of marcovo.
Extension Description:
Code: Select all
[hide=<user 1 id>, <user 2 id> | <group 1 id>, <groupd 2 id>]The content only user 1, user 2 and members of group 1 or group 2 can view[/hide]
Usage variations:
Code: Select all
[hide]The content only the poster can view[/hide]
Code: Select all
[hide=2]The content only user with id=2 can view[/hide]
Code: Select all
[hide=2,3,5]The content only user with id=2 or id=3 or id=5 can view[/hide]
Code: Select all
[hide=|2]The content only members of group with id=2 can view[/hide]
Code: Select all
[hide=|2, 3, 5]The content only members of group with id=2 or id=3 or id=5 can view[/hide]
Code: Select all
[hide=2, 3, 5|2, 3, 5]The content only user with id=2 or id=3 or id=5 or members of group with id=2 or id=3 or id=5 can view[/hide]
Code: Select all
[hide=2, 3, 5|2, 3, 5]The content only user with id=2 or id=3 or id=5 or members of group with id=2 or id=3 or id=5 can view
[hide]The content only the poster can view[/hide][/hide]
The BBCode is still named "hide" for my own forum's purpose. If you want to change the BBCode tag name for compatibility with marcovo's work, just go ahead and edit the listener.php in event folder.
Extension Version: 1.0.0
Extension Download: GitHub
Tell me if this slow down your forum. Thanks.