Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
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)
Mod Version: 1.0.0, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Feb 2019 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (4 votes - 5.00 average) Installs: 17
Released: 13 May 2013 Last Update: Never Downloads: 35
Supported Uses Plugins Re-usable Code Translations  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The above means the user BirdOPrey5 will be banned from 8PM to 10 PM on Sundays, Thursdays, Fridays, and Saturdays

Another example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The above means the user with userid 501 will be banned between 8PM and 5AM every day of the week.

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.
Nominate MOTM if you LOVE it!

Download Now

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

Screenshots

Click image for larger version

Name:	dstb-banmessage-bop5.jpg
Views:	197
Size:	94.9 KB
ID:	145016   Click image for larger version

Name:	dstb-settings-bop5.jpg
Views:	127
Size:	116.7 KB
ID:	145017  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 13 May 2013, 22:51
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Reserved.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #3  
Old 13 May 2013, 23:54
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Great Idea!
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #4  
Old 14 May 2013, 03:18
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Taking vB4 where no vB4 has gone before!
Reply With Quote
  #5  
Old 14 May 2013, 19:14
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Nice to see you here Dj!!

I really like this! I am trying to figure out a crafty way to incorporate this
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #6  
Old 14 May 2013, 19:23
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
An unintended feature, you can disable guest access (essentially ban guests) during certain hours by banning userid 0 on one of the lines.

Regular users will still be able to log in via the regular login form at the top of the page.

Example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The above will ban guest access from 6PM to 11:29 PM on weekdays.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #7  
Old 14 May 2013, 20:59
QBart2011's Avatar
QBart2011 QBart2011 is offline
 
Join Date: Jan 2013
I guess you can also throw members into the "Moderated" user group as well between certain hours from the look of the Mod..

Hence until a Moderator / Admin has had a chance to review their posts they don't get the privileged to show up.
Reply With Quote
  #8  
Old 15 May 2013, 03:12
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Real name: Paul L
I like this idea. Kinda like limiting your kids access to the TV or the Internet. Good job.

Snowhog
__________________
"It is a capital mistake to theorize in advance of the facts." - Sherlock Holmes
Kubuntu Forums . Net | ZB BLOCK | StopForumSpam
Reply With Quote
  #9  
Old 15 May 2013, 13:42
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by QBart2011 View Post
I guess you can also throw members into the "Moderated" user group as well between certain hours from the look of the Mod..

Hence until a Moderator / Admin has had a chance to review their posts they don't get the privileged to show up.
I can confirm that does indeed (at least mostly) work- Another unintended feature!

Create a usergroup called "Moderated Users" based off "Registered Users" - change all "Moderation" options to NO (there are a bunch, forum, photos, visitor messages, etc...) and save the Moderated Users group.

Then in this mod choose the "Ban Group" in settings to be "Moderated Users" - rather than being banned between certain hours the users will simply be moderated.

I will have to do some more extensive testing to be sure... Curious how it would affect Tapatalk/ForumRunner and Error Messages (which are set to say Banned by the mod) but probably could work out any kinks in a future version.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #10  
Old 15 May 2013, 21:53
QBart2011's Avatar
QBart2011 QBart2011 is offline
 
Join Date: Jan 2013
Thanks I would always look at Banning as a last option.. Even if it's only temporary.. I would rather Moderate and this Mod seems perfect for that. Great unintended work..

Thanks again.. Great stuff as I will keep checking in to see when it is fully tested for Moderation and will install it on my board..
Reply With Quote
  #11  
Old 31 May 2013, 15:52
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Real name: J
BoP you are AWESOME

Thanks for giving me what i needed, bloody drunks lol
__________________
Thanks for your help

J
Reply With Quote
  #12  
Old 21 Oct 2013, 15:30
Matriosh Matriosh is offline
 
Join Date: Jul 2010
And there is no similar fashion to vbulletin 3.8.X????
Reply With Quote
  #13  
Old 11 Apr 2014, 05:20
QBart2011's Avatar
QBart2011 QBart2011 is offline
 
Join Date: Jan 2013
Question

Originally Posted by BirdOPrey5 View Post
I can confirm that does indeed (at least mostly) work- Another unintended feature!

Create a usergroup called "Moderated Users" based off "Registered Users" - change all "Moderation" options to NO (there are a bunch, forum, photos, visitor messages, etc...) and save the Moderated Users group.

Then in this mod choose the "Ban Group" in settings to be "Moderated Users" - rather than being banned between certain hours the users will simply be moderated.

I will have to do some more extensive testing to be sure... Curious how it would affect Tapatalk/ForumRunner and Error Messages (which are set to say Banned by the mod) but probably could work out any kinks in a future version.
Hey BOP was this ever confirmed as a Moderation instead of Temp Ban ?

As I have posted before I would much rather Moderate than Temp Ban any poster.

Just curious as I see no other posts..
Reply With Quote
  #14  
Old 11 Apr 2014, 11:06
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #15  
Old 11 Apr 2014, 17:01
QBart2011's Avatar
QBart2011 QBart2011 is offline
 
Join Date: Jan 2013
Thanks
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:37.

Layout Options | Width: Wide Color: