vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   ban for less than 1 day (https://vborg.vbsupport.ru/showthread.php?t=201531)

gmerin 01-12-2009 05:41 PM

ban for less than 1 day
 
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

Quote:

Originally Posted by Bellardia (Post 1710302)
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

Quote:

Originally Posted by Bellardia (Post 1711376)
: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


All times are GMT. The time now is 01:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01099 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete