Hey All,

I am running Drupal 5 and am using it as a Radio Station Site.

I would like to add a block that holds a java script to our web cam but only 3 shows actually use the webcam so I dont want the block to stay on the front page 24/7 I would like to program that particular block to only display during certain hours on certain days.

Are there any modules that I can install that would allow me to configure a block down to exact days and hours for display and go dormant during the other hours and days?

Thanks everyone

Comments

WorldFallz’s picture

I don't know of any module, but you can use php for the block visibility settings and there's plenty of php code for this type of thing on the net-- just google around I'm sure you find it.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

ipwa’s picture

I think there are many techniques to get the results you want, maybe you could use http://drupal.org/project/scheduler with something like node as block or views to display the node in a block. If you add a published filter to the view, the block won't show up if the node is unpublished. I think this could also be done with actions, but the scheduler way seems easier.

HTH

Nicolas
-------------------------
http://nic.ipwa.net

Nicolas
-------------------------