Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Ban Users from a Thread Details »»
Ban Users from a Thread
Mod Version: 1.10, by MoMan (Coder) MoMan is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (5 votes - 4.80 average) Installs: 52
Released: 09 Mar 2011 Last Update: 04 Apr 2011 Downloads: 362
Not Supported DB Changes Uses Plugins Template Edits Re-usable Code  

This is a modification of AcidX's original "Ban Threads User" plugin for vBulletin 3.7. It has been for the most part rewritten with a focus on performance. Major changes include:

### VERSION HISTORY ###

1.0 (Initial Release)
1.1 (Added mod log actions, now fully phrased)

### FEATURES ###

This plugin allows moderators to ban users from individual threads. To ban a user, the appropriate option should be selected from the dropdown menu within the post. To unban, either clear all thread bans from the moderation tools menu, unban the user through the dropdown, or click on the username at the top of the thread.

Whenever you're viewing a thread from which users have been banned, a list of usernames will be shown at the top of the thread.

This plugin supports permanent bans as well as n-day bans. Valid durations for temporary bans are between 0 and 364 days. The default duration may be set in the "User Banning Options" page, but you can assign custom values by editing the actual ban url and pasting it in your browser.

Moderators will ONLY be able to use this feature in forums for which they can_moderate(). Super mods and admins will be able to use it in all forums.

### HOW THIS DIFFERS FROM THE ORIGINAL ###

*Big-board friendly: does not add any additional queries to showthread, doesn't do unnecessary computation, and stores ban data individually for each thread instead of globally in the datastore. Queries are only made when a user is being banned or unbanned; unserialization is only done if there are any bans within the thread.
*Support for expiring bans: you can choose to ban users permanently or for n days (default # of days is configurable via User Banning Options)
*Easy to oversee: banned usernames are shown at the top of the thread to moderators
*Flexible permissions: any moderator with permissions in a particular forum can use this facility. Not limited to admins or super mods.
*Removed the ability to clear all bans from all threads. If you really need to do this, simply uninstall and reinstall the plugin.
*Removed: global view of all thread bans. Not needed.

### INSTALLATION ###

-Import one product file
-Make 3 template edits

Tested on vBulletin 3.8.7, likely compatible with 3.6.x+, or 4.x with slight code changes.

Installation instructions are attached. Enjoy!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	ss1.jpg
Views:	547
Size:	63.1 KB
ID:	127278Click image for larger version

Name:	ss2.jpg
Views:	210
Size:	40.9 KB
ID:	127279Click image for larger version

Name:	ss3.jpg
Views:	466
Size:	49.2 KB
ID:	127280

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Ban Users From a Thread AcidX vBulletin 3.7 Add-ons 126 12 Feb 2014 04:25
Ban Users From a Thread AcidX vBulletin 3.6 Add-ons 121 07 Jan 2011 06:38

Comments
  #2  
Old 09 Mar 2011, 06:30
sulasno sulasno is offline
 
Join Date: Feb 2010
will you consider releasing one for vB 4.x.x ?

can I assume that all previous posts made by the banned member will not be removed ?
Reply With Quote
  #3  
Old 09 Mar 2011, 13:32
Zylantex's Avatar
Zylantex Zylantex is offline
 
Join Date: Sep 2009
Real name: Chris
Do you plan a modification of this code to ban users from a single forum?
That would be a brilliant mod.
__________________
Need a laugh? Why not visit EvilGrin.org Humour Forum?
Reply With Quote
  #4  
Old 09 Mar 2011, 18:50
MoMan MoMan is offline
 
Join Date: Oct 2005
Originally Posted by Zylantex View Post
Do you plan a modification of this code to ban users from a single forum?
That would be a brilliant mod.
This is already supported by vBulletin - just edit the user and disallow access to a forum via access masks
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #5  
Old 09 Mar 2011, 18:52
MoMan MoMan is offline
 
Join Date: Oct 2005
Originally Posted by sulasno View Post
will you consider releasing one for vB 4.x.x ?

can I assume that all previous posts made by the banned member will not be removed ?
You can try installing this on 4.x- it might work, but I haven't tested it.

All this mod does is prevent the banned user from viewing the thread or replying to it. Therefore, you're right- their posts are never modified.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #6  
Old 09 Mar 2011, 22:10
xorex's Avatar
xorex xorex is offline
 
Join Date: Jan 2008
install and make template modifications, but i dont see link for ban user
Reply With Quote
  #7  
Old 10 Mar 2011, 16:13
tfw2005 tfw2005 is offline
 
Join Date: Oct 2004
In the instructions, the code you say to place in postbit legacy is missing a final </if>. Saving template throws an if/then parsing error. Adding an additional </if> to the end of your new code block fixes it.
Reply With Quote
  #8  
Old 10 Mar 2011, 16:19
tfw2005 tfw2005 is offline
 
Join Date: Oct 2004
Seems to be working otherwise. Thanks for hooking this up for 3.8x, and the addressing performance issues.
Reply With Quote
  #9  
Old 10 Mar 2011, 18:36
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

Is it Possible to Include an Option to Ban Usergroups From a Thread?

Sometimes in a Forum that All UserGroups (or Some Usergroups) can Access would be Great to be able to Ban an Entire Usergroup from Viewing the Content of Certain Thread or Threads in Particular.

I Hope that Additional Option can be Possible to be Included in an Update.

Thank You Very Much For Sharing this Updated Version of this Great Mod for vB3.8x.

My Best Regards.

Reply With Quote
  #10  
Old 10 Mar 2011, 20:12
klaush klaush is offline
 
Join Date: Oct 2005
Same here; any idea?

Where have we to put the code in the navbar template?

Thanks for helping!

Originally Posted by xorex View Post
install and make template modifications, but i dont see link for ban user
__________________
Greetings

Klaus
Reply With Quote
  #11  
Old 10 Mar 2011, 21:16
klaush klaush is offline
 
Join Date: Oct 2005
Forget my my post; i forgot to edit one template. Itīs just working fine!

Thanks for that stuff!
__________________
Greetings

Klaus
Reply With Quote
  #12  
Old 10 Mar 2011, 23:23
MoMan MoMan is offline
 
Join Date: Oct 2005
Originally Posted by tfw2005 View Post
In the instructions, the code you say to place in postbit legacy is missing a final </if>. Saving template throws an if/then parsing error. Adding an additional </if> to the end of your new code block fixes it.
Great catch- I've now updated the readme!
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #13  
Old 10 Mar 2011, 23:29
MoMan MoMan is offline
 
Join Date: Oct 2005
Originally Posted by inciarco View Post
Is it Possible to Include an Option to Ban Usergroups From a Thread?

Sometimes in a Forum that All UserGroups (or Some Usergroups) can Access would be Great to be able to Ban an Entire Usergroup from Viewing the Content of Certain Thread or Threads in Particular.

I Hope that Additional Option can be Possible to be Included in an Update.

Thank You Very Much For Sharing this Updated Version of this Great Mod for vB3.8x.

My Best Regards.

I don't plan on implementing such a feature. My philosophy is to implement just one feature per product, but to do it well and with no performance overhead.

With that said, it would only take a few extra lines of code to implement it, but you'd have to add some conditionals to check whether or not a key in $btu represents a userid or a usergroup.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #14  
Old 26 Mar 2011, 14:35
xorex's Avatar
xorex xorex is offline
 
Join Date: Jan 2008
Originally Posted by tfw2005 View Post
In the instructions, the code you say to place in postbit legacy is missing a final </if>. Saving template throws an if/then parsing error. Adding an additional </if> to the end of your new code block fixes it.
thanks, now work fine
__________________
В королевстве слепых и Урод король....
Reply With Quote
  #15  
Old 29 Mar 2011, 05:47
mary_rose082198 mary_rose082198 is offline
 
Join Date: Nov 2009
very nice mod ty
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 21:23.

Layout Options | Width: Wide Color: