Version: 1.00, by Fatal Hazard
Developer Last Online: Nov 2023
Category: Moderators Functions -
Version: 4.2.1
Rating:
Released: 06-20-2013
Last Update: Never
Installs: 7
Template Edits
Re-useable Code
No support by the author.
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:
PHP Code:
// check that the number of days is valid if ($vbulletin->GPC['period'] != 'PERMANENT' AND !preg_match('#^(D|M|Y)_[1-9][0-9]?$#', $vbulletin->GPC['period'])) { print_stop_message('invalid_ban_period_specified'); }
Look at the (D|M|Y) code and do this:
PHP Code:
// check that the number of days is valid if ($vbulletin->GPC['period'] != 'PERMANENT' AND !preg_match('#^(h|D|M|Y)_[1-9][0-9]?$#', $vbulletin->GPC['period'])) { print_stop_message('invalid_ban_period_specified'); }
As you can see, I have added the h before it. DON't use a capital H as it will not work.
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!
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..
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.
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.
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!!