TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 515
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 160
  • Total: 160

Autotimer to turn block on/off

Started by kpence73, April 20, 2007, 01:19:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kpence73

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

IchBin

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.

kpence73

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 :)

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.