Version: 3.3, by Trigunflame
Developer Last Online: Nov 2019
Version: 3.5.4
Rating:
Released: 03-03-2006
Last Update: 03-09-2006
Installs: 302
Uses Plugins Template Edits
No support by the author.
Ban User From A Thread Break Up Those Fights
Summary:
Allows Administrators/Supermods to ban a user from a particular thread.
Most useful if you have a flame started and you dont want to lock the entire thread or ban the user entirely; just keep them out of the thread.
Features:
1. Allow Banning of users from a particular thread.
2. Can only ban if person has SuperModerator or Higher Permissions.
3. Cannot ban Mods/Supermods/Admins.
4. Can clear all bans in a particular thread, or bans from All threads.
5. Can ban/unban user from a single menu when clicking their name.
6. Page to display Forum Wide Thread Bans.
Instructions:
1. Download Zip File
2. Read README.txt
3. Click Install if you like
Thanks,
Idea: Corriewf
Troubleshooting: Brad
Instructions:
To upgrade: uninstall product, reinstall product and redo steps #2 and #3.
Update: 3/9/06 9:49pm
1. Fixed uncached template on view all bans.
2. Included README.txt in the txt file.
Major Update: 3/5/06 6:51pm
1. Changes to the checking of Moderator Permissions optimized.
2. Fixed a bug with not removing an empty array containing a thread.
3. Added a View All Thread Bans page to view bans in a tree like menu.
Update: 3/4/06 8:09pm
1. Conditional Ban or Unban based on Status.
Major Update: 3/4/06 6:33pm
1. Cannot Ban Moderators/Supermoderators/Administrators
2. Checks Global Supermod/Administrator Permissions
3. Can Ban/Unban User From Same Menu
Update: 3/4/06 6:40am
Added checking for threadid, and userid. *smacks self*
Update: 3/4/06 6:30am
Please re-do step number 3 again if you already installed it. Forgot to add the thread id to the url. It is very late (6:30am) and im tired :tired:
CLICK INSTALL
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
if (!$show['btu_canban'] AND !is_first_poster($threadid))
Save
2.
Add New Plugin:
Product -> Ban Thread User
Hook Location (Hook) -> postbit_display_complete
Title -> btu_canban threadstarter
Execution Order -> 5
Plugin PHP Code ->
PHP Code:
$show['btu_canban'] = ($this->registry->userinfo['userid'] AND $post['userid'] AND $post['userid'] != $this->registry->userinfo['userid'] AND (($this->registry->userinfo['permissions']['adminpermissions'] & $this->registry->bf_ugp_adminpermissions['ismoderator']) OR ($thread['postuserid'] == $this->registry->userinfo['userid'])));
I have it ported, there was just one query change from 3.5 to 3.6. But I still can't figure out how make it so that moderators can ban users from threads in the forums they moderate (in addition to admins & supermods).
Thanks for porting this to 3.6 Beano. You have no idea how I fretted over not having this in my forums.
Look for btu_manager -> (Hook) threadmange_start:
Open and serach for (line 3)
PHP Code:
if (!$show['btu_canban'])
After
PHP Code:
if ($_REQUEST['do'] == 'btu_clear') {
Replace with
PHP Code:
if (!$show['btu_canban'] AND !can_moderate($thread['forumid']))
Search for (line 98)
PHP Code:
if (!$show['btu_canban'])
After
PHP Code:
if ($_REQUEST['do'] == 'btu_ban') {
Replace with
PHP Code:
if (!$show['btu_canban'] AND !can_moderate($thread['forumid']))
2.
Add New Plugin:
Product -> Ban Thread User
Hook Location (Hook) -> postbit_display_complete
Title -> btu_canban moderator
Execution Order -> 5
Plugin PHP Code ->
PHP Code:
$show['btu_canban'] = ($this->registry->userinfo['userid'] AND $post['userid'] AND $post['userid'] != $this->registry->userinfo['userid'] AND (($this->registry->userinfo['permissions']['adminpermissions'] & $this->registry->bf_ugp_adminpermissions['ismoderator']) OR can_moderate($thread['forumid']) OR can_moderate($thread['forumid'])));
if (!$show['btu_canban'] AND !is_first_poster($threadid) AND !is_member_of($vbulletin->userinfo, x)
x = your UsergroupID
Save
2.
Add New Plugin:
Product -> Ban Thread User
Hook Location (Hook) -> postbit_display_complete
Title -> btu_canban threadstarter
Execution Order -> 5
Plugin PHP Code ->
PHP Code:
$show['btu_canban'] = ($this->registry->userinfo['userid'] AND $post['userid'] AND $post['userid'] != $this->registry->userinfo['userid'] AND (($this->registry->userinfo['permissions']['adminpermissions'] & $this->registry->bf_ugp_adminpermissions['ismoderator']) OR $thread['postuserid'] == $this->registry->userinfo['userid'] OR is_member_of($this->registry->userinfo, x)));