vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Banning a user between a certain time of day/night? (https://vborg.vbsupport.ru/showthread.php?t=210465)

Bounce 04-06-2009 04:14 PM

Banning a user between a certain time of day/night?
 
anyone know if this is possible?

a user has requested he/she is banned between working hours lol.

:confused:

Bounce 04-19-2009 09:46 AM

:( lol

Lynne 04-19-2009 03:39 PM

Hehe, that's kinda funny. I suppose you could write a scheduled task to change them into the banned usergroup and run it at 9 and at 5. I'm not really sure - I don't think I've ever seen anyone request this before.

Bounce 04-19-2009 09:49 PM

Quote:

Originally Posted by Lynne (Post 1794483)
Hehe, that's kinda funny. I suppose you could write a scheduled task to change them into the banned usergroup and run it at 9 and at 5. I'm not really sure - I don't think I've ever seen anyone request this before.

Interesting, thanks lynne, its actually between 10PM and 6AM when they are having a bevvy:eek:why can't pc's be fitted with breathalysers lol :D

Bounce 05-07-2013 05:09 PM

Quote:

Originally Posted by Lynne (Post 1794483)
Hehe, that's kinda funny. I suppose you could write a scheduled task to change them into the banned usergroup and run it at 9 and at 5. I'm not really sure - I don't think I've ever seen anyone request this before.

Hi Lynne,

Sorry to bring this up again, how would i go about this ?

There are 2 users that are like the incredible hulk with a drink in them and Dr David Banner the rest of the time.

They usually post between midnight and 6am, rather than ban them completely as the rest of there posts are fine will it be possibly for you to help in setting this up with a scheduled task?

I have no idea where to start lol :D

Lynne 05-07-2013 08:29 PM

Make a copy of a scheduled task file and replace the meat of the file with a query that changes the usergroup for the two users from x to y. Then copy that task and change the query to move them from y to x. Then create a Scheduled Task and run the first one at 10pm and then second one at 6am.

BirdOPrey5 05-13-2013 09:32 PM

While Scheduled tasks will work the fact they don't always run at the exact time you specify made me think there was a better way to implement this-

Daily Short Term Bans (VB4) - https://vborg.vbsupport.ru/showthread.php?t=298126

Bounce 05-31-2013 01:36 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2421841)
While Scheduled tasks will work the fact they don't always run at the exact time you specify made me think there was a better way to implement this-

Daily Short Term Bans (VB4) - https://vborg.vbsupport.ru/showthread.php?t=298126

QUALITY Sir

Thank you :D


All times are GMT. The time now is 08:27 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.01216 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)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