TinyPortal
Development => Support => Topic started by: kpence73 on April 20, 2007, 01:19:09 AM
Is there a mod or way to set a schedule for a block to be available. For example, from 9am to 5pm the block is disabled/not accessible, but after 5pm it turns itself on?
Before you ask why I need that....I just do :D
No such block has been posted that I know of. I suppose it could do it fairly easy with a bit of PHP though. :) So is it set to off based on users time, or based on your sites server time. I don't know how to grab a users time, but I'm sure it could be done by grabing the server time.
I'm completely clueless when it comes to php code...
The site if for my students..I just dont want them to play the arcade during school hours...that is why I asked. I suppose I could just remove the arcade, but I thought it was cool :)
Well if your students are smart, they'll likely be able to get to the arcade even if you don't have a block showing. Perhaps you could ask the arcade guys if they could give you some code to disable the arcade during those times.