Results 1 to 8 of 8
  1. #1
    petedaines's Avatar
    petedaines is offline Member
    Join Date
    Sep 2007
    Location
    St Austell, Cornwall, UK
    Posts
    66

    Default "Now on Air" message...

    Hi,
    My boss at the radio station has asked me to investigate to see if I can put a "Now on Air" feature on the site, to show which presenter is currently on air.
    The web site hosting is located at Radio St Austell Bay - it is all CSS & HTML, but I could convert it to PHP if that is the only way.

    If anyone has any ideas, it would be appreciated!!! I have scoured the internet but can't find anything that would work... but most stations have a feature like that!

    Thanks!

    Peter
    Peter Daines
    Blue Crush Media
    www.bluecrushmedia.co.uk

    pete.daines@bluecrushmedia.co.uk




    _________

  2. #2
    Site's Avatar
    Site is offline Premium Member
    Join Date
    Jan 2008
    Location
    UK
    Posts
    640

    Default

    Hi,
    Would you have a schedule that you would like to make it auto list for that time?

    Or ping on change over from a program on the computer streaming?

  3. #3
    Eidolon is offline Premium Member
    Join Date
    May 2006
    Location
    Cambridgeshire
    Posts
    484

    Default

    I guess you could store the 'whose on air' info via a database table. The table could include a 'start time' column, along with a column defining whether it's a weekday or specific day (as presumably normal weekdays are the same). The table could also contain a column defining which file to load.

    Then via PHP you could get the date & time, using the day (ie. Monday etc.) you could query along the lines for where CURRENT DATE = "Weekday" or equals "Monday" (though would need adapting to cope with weekends). It could additionally have a query where CURRENT TIME is greater than the start time (column). The query would have a limit of 1, so that only one record loads via an include.

    The only complication would be where the presenter goes over midnight, in which instant two rows would probably be needed with one set to 00:00 to prevent no record/file from showing.

    To err is human, but to really screw up you need a computer.

  4. #4
    petedaines's Avatar
    petedaines is offline Member
    Join Date
    Sep 2007
    Location
    St Austell, Cornwall, UK
    Posts
    66

    Default

    Quote Originally Posted by Eidolon View Post
    I guess you could store the 'whose on air' info via a database table. The table could include a 'start time' column, along with a column defining whether it's a weekday or specific day (as presumably normal weekdays are the same). The table could also contain a column defining which file to load.

    Then via PHP you could get the date & time, using the day (ie. Monday etc.) you could query along the lines for where CURRENT DATE = "Weekday" or equals "Monday" (though would need adapting to cope with weekends). It could additionally have a query where CURRENT TIME is greater than the start time (column). The query would have a limit of 1, so that only one record loads via an include.

    The only complication would be where the presenter goes over midnight, in which instant two rows would probably be needed with one set to 00:00 to prevent no record/file from showing.

    Thanks both for your replies!
    The problem I will have is that the radio station website hosting is hosted on a server with different company (uk2 i think), as it was done before I came in. I only have FTP access to the site, and cannot do MySQL with it - but is it possible to do the database thing on my Dedicated Server with eukhost and remotely access it?

    Also I am not fluent with PHP... so if I do that I will probably be posting for help on here!!!! MySQL is fine, as I use PHPmyadmin which is pretty easy.

    Thanks again!!!

    Peter
    Peter Daines
    Blue Crush Media
    www.bluecrushmedia.co.uk

    pete.daines@bluecrushmedia.co.uk




    _________

  5. #5
    Site's Avatar
    Site is offline Premium Member
    Join Date
    Jan 2008
    Location
    UK
    Posts
    640

    Smile

    Hi,
    You could do the MySQL Server on your server with a dynamic php page, and simply iframe it in with no scroll into their current site.



    Site

  6. #6
    borninblood's Avatar
    borninblood is offline Premium Member
    Join Date
    May 2007
    Posts
    105

    Default

    It is old school - But javascript and arrays would do it.

    Basically store the images or text as needed in an array, and javascript check the time and if it falls between starttime and endtime for an elemet of an array, print out the on air thing (or custom graphic/text).
    BornInBlood (Metal) || SimplyTied (Bondage)

  7. #7
    paul's Avatar
    paul is offline Moderator
    Join Date
    Nov 2005
    Posts
    2,518

    Default

    Yea for manipulating information javascript and arrays would do the job, you need to initialize the array with pre-defined data which will accomplish the task that you would like to do. Also refer this article, I hope it may help you; earthcode.com/blog/2006/02/javascript_event_broadcasting.html

  8. #8
    WelshTom is offline Senior Member
    Join Date
    May 2007
    Location
    Newport, Wales
    Posts
    998

    Default

    Iframes and Javascript = Evil....

    Yes, you should be able to remotely connect to the eUKhost MySQL server.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Content Relevant URLs by vBSEO 3.6.0