Log in

View Full Version : ban for less than 1 day


gmerin
01-12-2009, 05:41 PM
Any way to issue an hour ban? something similar to how stickam mods can kick someone for an hour?

Lynne
01-12-2009, 06:04 PM
I do not know of any modification to do that. I don't see a hook in the banning.php page to use around where the time periods are defined either, so I think you'd have to actually modify the code for that.

Bellardia
01-12-2009, 10:31 PM
You have to be careful, because I believe the cron that runs to unban users runs every day at midnight or I seem to remember it as such.. So if you wish to do this you'll not only have to code a mod to ban for less time but also run the cron more frequently.

gmerin
01-13-2009, 05:13 PM
You have to be careful, because I believe the cron that runs to unban users runs every day at midnight or I seem to remember it as such.. So if you wish to do this you'll not only have to code a mod to ban for less time but also run the cron more frequently.

of the two, cron is the easier to adjust ;)

Bellardia
01-13-2009, 08:05 PM
But adjusting the cron won't unban people sooner because the time limits are day based I believe...

Lynne
01-13-2009, 08:13 PM
I don't think I've change the Scheduled Task times on that job and mine runs every 15 minutes.

Bellardia
01-13-2009, 08:17 PM
:x my mistake! Like I said I never checked, thanks lynne :)

So you will have to redo the banning system itself and not the cron.

Lynne
01-13-2009, 08:23 PM
:x my mistake! Like I said I never checked, thanks lynne :)
I never checked until just now cuz we never do any sort of ban except for Never Lift Ban (which actually means we could just disable it, I suppose - oh, and I'm talking about on my site, not here). :D