Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Be able to ban users for a certain number of hours Details »
Be able to ban users for a certain number of hours
Mod Version: 1.00, by Fatal Hazard (Coder/Designer) Fatal Hazard is offline
Developer Last Online: Jun 2019 I like it Show Printable Version Email this Page

vB Version: 4.2.1 Rating: (1 vote - 5.00 average) Installs: 7
Released: 20 Jun 2013 Last Update: Never Downloads: 0
Supported Template Edits Re-usable Code  

Be able to ban users for a certain number of hours
[LEFT]
Template Edit Description:

This is an edit of the /modcp/banning.php file.
It allows you to ban users for a certain number of hours (you choose).
Difficulty: Easy

Step 1:

Open modcp/banning.php in an editor of your choice, for this tutorial I will be using Notepad ++.

On line 261 find the code:

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

Look at the (D|M|Y) code and do this:


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

As you can see, I have added the h before it. DON't use a capital H as it will not work.

Step 2:

On line 395 find this code:

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

Above the 'D_1' => "1 $vbphrase[day]", add:


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

</span>

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

</span>

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

</span>

You can change these to suit you best (or add more).

Download Now

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

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 21 Jun 2013, 14:07
Amaury Amaury is offline
 
Join Date: Nov 2011
Real name: Amaury
Originally Posted by Fatal Hazard View Post
You have just contradicted yourself. This is so you can ban users for a certain number of hours not days.
Why would you want to ban them in hours, though?
__________________
I am a former vBulletin user and am no longer regularly active here.

KH-Flare moved to XenForo on January 1, 2014.
Reply With Quote
  #3  
Old 22 Jun 2013, 00:32
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Originally Posted by Fatal Hazard View Post
How is this like default settings when that is in days and this is in hours? Also stop posting here if all you are going to do is hate and be angry. Oh and you did contradict yourself, end of story!
Your site is broke
__________________

Reply With Quote
  #4  
Old 22 Jun 2013, 09:44
Fatal Hazard's Avatar
Fatal Hazard Fatal Hazard is offline
 
Join Date: Oct 2012
Real name: Matt
Originally Posted by GaryT View Post
Your site is broke
Oh yeah, sorry about that, I used it as a test site but it got overun by spam. I am installing vB 4 on it soon and might try to start a new forum
Reply With Quote
  #5  
Old 22 Jun 2013, 13:34
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
If you need something like this, there's a better option with no core file edits at Daily Short Term Banning by BOP5 (Ban users during part of the day or night).
Reply With Quote
  #6  
Old 22 Jun 2013, 15:13
skol skol is offline
 
Join Date: Oct 2008
Originally Posted by djbaxter View Post
If you need something like this, there's a better option with no core file edits at Daily Short Term Banning by BOP5 (Ban users during part of the day or night).
Both look different to me..The one you posted,you have to set the physical time for the ban and very useful for knocking them off on a recurring basis at specific times..Were as this mod seems to be fine for using as an immediate cooling off period but not with the harshness of a severe ban.
Just more friendlier banning options for yourself and your staff to use.If both work together you have the best of both worlds..
Reply With Quote
  #7  
Old 22 Jun 2013, 17:18
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Originally Posted by skol View Post
Both look different to me..The one you posted,you have to set the physical time for the ban and very useful for knocking them off on a recurring basis at specific times..Were as this mod seems to be fine for using as an immediate cooling off period but not with the harshness of a severe ban.
Just more friendlier banning options for yourself and your staff to use.If both work together you have the best of both worlds..
The one I posted does not have to ban the member - for example, it can be used to move him temporarily to a post-moderation group during times when moderators and admins are less likely to be online.
Reply With Quote
  #8  
Old 23 Jun 2013, 23:36
Fatal Hazard's Avatar
Fatal Hazard Fatal Hazard is offline
 
Join Date: Oct 2012
Real name: Matt
As skol pointed out, this is mainly to be used if a member is say trying to be annoying just to frustrate staff then you can just block them for say 1 hour or so.
Reply With Quote
  #9  
Old 25 Jun 2013, 02:09
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Originally Posted by Fatal Hazard View Post
As skol pointed out, this is mainly to be used if a member is say trying to be annoying just to frustrate staff then you can just block them for say 1 hour or so.
If they are trying to be annoying why would you want them back a couple of hours later?

Ban'em, punch'em, hunt'em down and pee on their front porch!!
__________________

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 13:53.

Layout Options | Width: Wide Color: