The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
Daily Short Term Banning by BOP5 (Ban users during part of the day or night) Details »» | ||||||||||||||||||||||||||||
Daily Short Term Banning by BOP5 (Ban users during part of the day or night)
Developer Last Online: Aug 2023
Brought to you by BirdOPrey5 / Qapla.com.
So lets say you have a member who is only disruptive at night, perhaps after they've had a few drinks, but actually contribute during the day so you don't want to ban them all day long... Or you have a user who is so addicted to your forum they literally beg you to ban them so they aren't tempted to waste time during school or work- now you have an easy way to do so. This mod is designed to allow you to make regular short term bans of specific users... You specify the user (by username or userid), the start time of the ban, the end time of the ban, and optionally the days of the week of the ban (by default the ban reoccurs every day.) The user will get a message explaining they have been banned from the forum only during the specific hours you have set and advise them to return during a time they aren't banned. Tapatalk and ForumRunner Compatible! Because vBulletin doesn't honor the time zone settings of banned users all ban times are based off the server time. In the settings page the current server time is displayed to make figuring out the hours you wish to ban them easier. Remember the Server Time may not be your local time zone either. I have tried to make setting this up as easy as possible- You can specify the ban by either userid or username, however in the rare case a username is only numbers or has a | in it then you must use the userid only. You can specify the ban time in 24 hour or 12 hour format so 18:00 or 6:00 PM are both fine and valid to use as times. Both same day bans (example- 1PM to 5PM) and overnight bans (example- 10PM to 5AM) are allowed. Days of the week are specified by an optional 4th parameter in the ban settings, in this case a number is assigned to each day of the week, 0 = Sunday, 1 = Monday... and so on until 6 = Saturday. You simply include a list of numbers for specific days. Examples of ban settings: Code:
BirdOPrey5 | 8:00 PM | 10:00 PM | 0456 Another example: Code:
501 | 20:00 | 5:00 Just be careful when doing "overnight" bans along with specific days of the week... Because if the day of the week isn't listed the overnight ban will end at 11:59PM regardless the time chosen if the next day is not listed as a ban day. See Post #6 on how to ban guests. This version is only compatible with VB 4.x.x. Tested on VB 4.2.x. Will not work on VB 3.x or 5.x. Demo: http://www.qapla.com/mods/ Username: ShortBanTest Password: iwasbanned The above user is banned from 12:01 AM to 11:59 PM so you can see the error message you will get, and confirm it works on ForumRunner and Tapatalk as well. ------------------------------------------------------ Please "Mark as Installed" if you use this. Donations always appreciated. :up: Nominate MOTM if you LOVE it! Download Now
Screenshots
Show Your Support
|
4 благодарности(ей) от: | ||
Bounce, goxy63, tbworld, TheLastSuperman |
Comments |
#12
|
||||
|
||||
BoP you are AWESOME
Thanks for giving me what i needed, bloody drunks lol |
Благодарность от: | ||
BirdOPrey5 |
#13
|
|||
|
|||
And there is no similar fashion to vbulletin 3.8.X????
|
#14
|
||||
|
||||
Quote:
As I have posted before I would much rather Moderate than Temp Ban any poster. Just curious as I see no other posts.. |
#15
|
||||
|
||||
Well, yes and no.
Yes it works if the user has no secondary (additional) usergroups. Since the way VB permissions work anyone who has a YES in a secondary group will override a NO in a primary group, even if they are moved to moderated users their secondary groups would possibly override their forced moderation depending how you have the groups set up. |
Благодарность от: | ||
QBart2011 |
#16
|
||||
|
||||
Thanks
|
#17
|
||||
|
||||
Hi,
This has stopped working and ive no idea why. Only recent upgrade was patching VB to 4.2.2 Patch Level 2 Any ideas BoP |
#18
|
||||
|
||||
What version of PHP are you running?
|
#19
|
||||
|
||||
5.3.17
I think its a usergroup problem as it works when banning an admin but not other users who also have additional usergroups. |
#20
|
||||
|
||||
Quote:
If you're moving them to some other group though, such as to moderate their posts rather than ban them, then you have to deal with the fact other usergroups can override it. I can probably add a line to fix this, as it wasn't the original intent of the mod I never thought about it before- let me know if you think that is the issue. |
#21
|
||||
|
||||
Quote:
The user in question is in a registered usergroup plus additional VIP and Subscriber. Im moving to the banned usergroup. I did a test on myself - Admin usergroup only and it worked. So it it because the user is in more than 1 usergroup? Since then the user has been binned completely so hes not an issue now but would still like it to work for the future if required, most other users on the list are just in the one usergroup so assuming they get binned at their times! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|