Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
kd8hho
Worker
Worker


Joined: Mar 30, 2009
Posts: 118

PostPosted: Thu Nov 05, 2009 2:55 pm Reply with quote

what i want to do is have a media player in a block but it plays certain files at certain times.

ie.

file1.mp3 gets played Mon-Fri from 12:00 to 16:00 ET
file2.mp3 gets played Mon-Fri from 18:00 to 21:00 ET
else file3.mp3 plays.

trying to think of a good way to do this.

_________________
Linux Register User #481509 | Ubuntu Register User #25492 
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Thu Nov 05, 2009 3:41 pm Reply with quote

There is a block addon at phpnuke-clan.net that allows for scheduling when a block will be shown. You could use that mod and make 3 blocks scheduling what time you want which one up.... Here is the link to the mod made by Duck Only registered users can see links on this board! Get registered or login!

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Thu Nov 05, 2009 4:48 pm Reply with quote

kd8hho, I would just create a block how you want it with html. Then use php to determine the time and select your mp3 based on that.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
floppydrivez
Involved
Involved


Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi

PostPosted: Thu Nov 05, 2009 7:45 pm Reply with quote

Palbin wrote:
kd8hho, I would just create a block how you want it with html. Then use php to determine the time and select your mp3 based on that.


That is a good suggestion and I am sure someone around here could help you with the timing (php and stuff).

_________________
Only registered users can see links on this board! Get registered or login!, Only registered users can see links on this board! Get registered or login!, Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©