Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 18

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 15.07.2005, 00:40   #11 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 3
magicmonkey is on a distinguished road
Default Re: rotating 'who's on air now' banner for a radio station? (newbie alert ;-) )

Sorry the domain is dead at the moment. We're swapping hosts.

I never got round to swapping to mambo. So can't give you a module or code but if you want some advice here's the general algoitham and pointers on what to put in your code:

N.b this is not a perfect solution by any strech of the imagination but it may get you going.

Set up two tables, one for show times, one for show info. Also have a directory of images to display what who is on now

in the show times table have fields for name, start time, end time, day of week

in the show info page have fields for show name and image name.

when run the script should get the current time and day. Pull out all the records in the show times table that match the current day. Then do some kind of logical operation that says if the current time is greater than the start time and less than the end time, then that show is on air.

eg:

while(more records){

if(startTime<current time && currentTime<endtime){
return showName
}
loop

Now you know what's on air you can use the image name and find the corresponding image in the directory so you can display it in on the page.

The code to run the script can just be placed in your template, I think. your script should return the link to the image file.

hope it makes some sort of sense
magicmonkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 15.07.2005, 00:44   #12 (permalink)
Expert Mamber
 
xjumper84's Avatar
 
Join Date: May 2005
Posts: 257
xjumper84 is on a distinguished road
Default Re: rotating 'who's on air now' banner for a radio station? (newbie alert ;-) )

if the current time is greater than the start time and less than the end time, then that show is on air.

this is what i was going for.. but i couldn't figure it out..

if the page where you have the info to for the dj's bio is a static page, you could just hard code it into a link to that page.
__________________
I work for the United States Government, my security clearence doesn't allow for you to know what I do. But!, its your tax dollars at work.
xjumper84 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 15.07.2005, 00:48   #13 (permalink)
Baby Mamber
 
Join Date: Dec 2004
Posts: 3
magicmonkey is on a distinguished road
Default Re: rotating 'who's on air now' banner for a radio station? (newbie alert ;-) )

i edited the reply above to show the rough logic. The return showname could just be a string with the full URL.
magicmonkey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 21:59.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.