UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Services > Web Designing and Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-2008, 10:41
Junior Member
 
Join Date: Sep 2007
Location: St Austell, Cornwall, UK
Posts: 23
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
InfernoWeb UK
www.infernoweb.org
www.infernogroup.org.uk

peterdaines [at] infernogroup.org.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-06-2008, 11:25
Site's Avatar
Premium Member
 
Join Date: Jan 2008
Location: UK
Posts: 518
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-06-2008, 12:09
Premium Member
 
Join Date: May 2006
Location: Cambridgeshire
Posts: 428
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.

__________________
If it ain't broke continue to fix it until it is.
Some cheap plugs... ...IkonForums... ...StNeotsFC... ...Riverside Theatre Company
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-06-2008, 14:11
Junior Member
 
Join Date: Sep 2007
Location: St Austell, Cornwall, UK
Posts: 23
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
InfernoWeb UK
www.infernoweb.org
www.infernogroup.org.uk

peterdaines [at] infernogroup.org.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-06-2008, 18:03
Site's Avatar
Premium Member
 
Join Date: Jan 2008
Location: UK
Posts: 518
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 20-06-2008, 15:12
borninblood's Avatar
Premium Member
 
Join Date: May 2007
Posts: 106
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 21-06-2008, 09:13
paul's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Virtual Private Server
Posts: 2,006
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
__________________
OrganizeOne
Darkness does not exist, it is just absence of Light..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 21-06-2008, 10:30
WelshTom's Avatar
Moderator
 
Join Date: May 2007
Location: Newport, Wales
Posts: 892
Send a message via AIM to WelshTom Send a message via MSN to WelshTom Send a message via Yahoo to WelshTom
Default

Iframes and Javascript = Evil....

Yes, you should be able to remotely connect to the eUKhost MySQL server.
__________________
Thomas Williams
JST Hosting
Freephone: 0800 622 6352
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 05:46.

 

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service