![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||
Be able to ban users for a certain number of hours
![]() Developer Last Online: Dec 2020 ![]() ![]() ![]()
![]() 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:
Look at the (D|M|Y) code and do this:
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:
Above the 'D_1' => "1 $vbphrase[day]", add:
</span>
</span>
</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
No members have liked this post.
|
Comments |
#2
|
|||
|
|||
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. No members have liked this post.
|
#3
|
|||
|
|||
Your site is broke
__________________
No members have liked this post.
|
#4
|
||||
|
||||
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
![]() No members have liked this post.
|
#5
|
|||
|
|||
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).
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#6
|
|||
|
|||
Originally Posted by djbaxter
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.. No members have liked this post.
|
#7
|
|||
|
|||
Originally Posted by skol
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.
![]()
__________________
Psychlinks Web Services Affordable Website Design & Management WordPress, vBulletin, Xenforo Customization & Management No members have liked this post.
|
#8
|
||||
|
||||
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.
No members have liked this post.
|
#9
|
|||
|
|||
Originally Posted by Fatal Hazard
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!! ![]()
__________________
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 18:05.