|
|
#1 |
|
Junior Member
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
|
station status indicator
Is there such a thing? and if so can someone please post an example of the HTML code, to allow me to have an on/off air indicator on my website.
|
|
|
|
|
|
#2 |
|
Forum Emo
Join Date: Mar 2005
Posts: 8,364
|
yes, search the forum for php\html stats or try www.hotscripts.com
|
|
|
|
|
|
#3 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
How about an image?
<img src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php?index=10&host={your_host_or _IP}&port={DNAS_PortBase}"> Returns an image == [ONline] when the DNAS is up and a source is connected -- [OFFline] when there is no source (DJ) and/or the DNAS is not running. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
|
Thanks
Excellent thanks very much for the help.
image now added to site and everything working as it should Beeches Radio ok theres on other thing i would like on the though and again if anyone who knows can supply the html code i would be very greatful. How do i get make the current track being played display on my website? |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
Right now, it's the only image pair I have, and they are kinda "plain" -- If you have any alternatives, I can add them as options....
Just keep in mind that the image knows nothing about the page it is appearing on, so it should not be transparent and look good (be visible) on either a white or black background. I expect a pair (.gif/.jpg/.png) that are the same size. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
|
|
#6 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
current song....
<script language="javascript" src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php? index=5&host=MYIP&port=PORTNUMBER"></script> Returns HTML text. The whole thing is one line. This will insert the current track text as a clickable link to your listen.pls along with the current load (% currentlisteners/maxlisteners). It inherits the current page colors. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
|
Your A Hero
Thanks for all the help djSpinnerCee
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
I am trying to acheive the same thing on my HTML only website. I copy/pasted the above javascript and entered my socket info, but while my station is on air, this script is saying it is off-air. Maybe, I didnt enter the socket information correctly......?
This is what I did <script language="javascript" src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php? index=5&host=66.249.66.142&8000=8000"></script> and I did this <script language="javascript" src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php? index=5&host=http://66.249.66.142&8000=8000"></script> Did I miss something? Also do you have a similiar script that tells visitors to my site what song Im playing? I have searched the forums for Winamp/Shoutcast plug ins, but it looks that a lot of these plug ins are for sites built with PHP. My site is 100% HTML. Well thanks for your help! Paul |
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
It should be
<script language="javascript" src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php? index=5&host=66.249.66.142&port=8000"></script> You changed the word "port" when it shouldn't be changed, and putting in http:// will mess it up as well. |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
Thank you! This script is very cool! The load time and display information doesnt match my page's design. I wonder if there is a more elegant way to place this information on my webpage? www.ryanismy.name
Another script? A program I can install into my Shoutcast broadcaster client or server? Cheers, Paul |
|
|
|
|
|
#11 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
mess around with the php scripts on this page and you can make them look like whatever you want:
http://www.streamsolutions.co.uk/index.php?page=scripts That is: If you know a thing or two about php |
|
|
|
|
|
#12 |
|
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
You offering the source code (php) ???
~ DK ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
|
|
|
|
|
#13 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
The scripts on that page (for showing "now playing" etc.) are open source and can be easily edited if you know how.
|
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
* Delete*
Last edited by paul9290; 3rd April 2006 at 22:56. |
|
|
|
|
|
#15 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
Hmm...I downloaded a script from there, but Im not skilled with PHP. I saw a place within the banner.php to add my IP and port info, but is that all that needs to be adjusted within this script(http://www.streamsolutions.co.uk/scripts/banner.zip)? From there I know I need to add a similiar javascript within my page, but not exactly sure what to write.
Well any further help is much appreciated! Thanks Paul |
|
|
|
|
|
#16 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
You need to change this line:
$url="http://www.streamsolutions.co.uk/scripts/banner/Statbanner.png"; to the location of the image you want to use for the banner. but no, you couldn't just add a similiar javascript, but you could display the php page in an iframe since your page is probably HTML and not php. In order for these scripts to work, you must have php enabled on your site. edit: nevermind, I forgot that script generates the banner image, so you can just link to it like a normal picture. So if you upload the script to your site, you would insert this where ever you want the banenr to appear: code: just change it to the URL of your site. |
|
|
|
|
|
#17 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
I assume within banner.php I need to where it says
$ip="69.250.165.XXX"; $port="8000"; $url="http://www.streamsolutions.co.uk/scripts/banner/Statbanner.png"; Place my stations IP and port? Thanks, Paul! |
|
|
|
|
|
#18 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
yes, of course. And you can change the path to the Statbanner.png if you want to use a different image.
|
|
|
|
|
|
#19 |
|
Junior Member
Join Date: Oct 2004
Posts: 24
|
@ DJSpinnerCee:
that's some nice coding. Is this scaststatus_x.php page also available for download? Like this I can put it on my own site so that it can be independent from yours dyndns. I suppose there are also other function possible with it (index=... last 10 played maybe?) Do you also have a solution to display album/single covers? |
|
|
|
|
|
#20 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
You can download lots of good shoutcast scripts here:
http://www.streamsolutions.co.uk/index.php?page=scripts With those you can show the last 10 tracks, and other nice things, including an on-off indicator
|
|
|
|
|
|
#21 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
I am having a problem getting the banner.php script to work.
on my webpage www.ryanismy.name I edited the banner.php script.... $ip="69.250.165.XXX"; $port="8000"; $url="http://ryanismy.name/Statbanner.png"; Placed the Statbanner.png and the banner.php in my site's main directory where the index is. My host and domain is PHP supported and active. Within my index.html code you will see I added <img src="http://ryanismy.name/banner.php"> , but nothing appears. Can my page be an index.html or does it need to be a index.php page in order for this banner.php script to work properly? Thanks, Ryan |
|
|
|
|
|
#22 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
It can be an html file.
|
|
|
|
|
|
#23 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
Thanks
Im still confused as to why nothing appears within my index, when I have <img src="http://ryanismy.name/banner.php"> coded in the place I want it to appear. Any ideas? Thanks again, Ryan Thanks |
|
|
|
|
|
#24 |
|
Major Dude
Join Date: Jan 2006
Posts: 632
|
Are you sure php is configured properly? What happens when you load the php file directly in a browser, do you get any errors?
|
|
|
|
|
|
#25 |
|
Senior Member
Join Date: Aug 2004
Posts: 147
|
OK, I know this is an html question but I think it a simple one as I search the net high and low for the answer(thought Id try to ask around as well).
I have decided to use DJ spinners cool script as it works, but I am trying to style it within my right column div. If a title is long then some of the song title wording jumps down next to my firefox button. I just want it the title of the song if long to go line 1..line 2...line 3...line 4...etc ...not line 1...line 2 and then skip done to line 10. www.ryanspahn.net Well I think the answer is easy and thought maybe someone might know how to style text within a div in regards to DJ spinners php script. Cheers, Ryan |
|
|
|
|
|
#28 | |
|
Junior Member
Join Date: Jan 2006
Location: Windsor,On,Canada
Posts: 36
|
Quote:
<script language="javascript" src="http://djspinnercee.servemp3.com:32768/php-cgi/scaststatus_x.php? index=5&host=64.228.92.122&port=8000"></script> Nothings happens can u help me plz thx!
|
|
|
|
|
|
|
#29 |
|
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
the URL is one line... there cannot be a CR between src= and </script>
It does work... try it -- notice the comments... A link to the page you have it on would help. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
|
|
|
|
#30 |
|
Junior Member
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
|
yep it works fine i have it on my site aswell http://www.automanuk.co.uk/Pages/beeches_radio.html
although the alignment is a little screwed up if you are viewing with anything other than IE but thats nothing to do with the script |
|
|
|
|
|
#31 | |
|
Junior Member
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
|
Quote:
|
|
|
|
|
|
|
#33 |
|
Junior Member
Join Date: Sep 2006
Location: florida
Posts: 34
|
how could i get a html code for my current or passed play list for my website?
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|