Old 15th October 2005, 11:30   #1
AutomanUK
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.
AutomanUK is offline   Reply With Quote
Old 15th October 2005, 12:28   #2
tuckerm
Forum Emo
 
tuckerm's Avatar
 
Join Date: Mar 2005
Posts: 8,364
yes, search the forum for php\html stats or try www.hotscripts.com
tuckerm is offline   Reply With Quote
Old 15th October 2005, 14:33   #3
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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.
djSpinnerCee is offline   Reply With Quote
Old 15th October 2005, 14:50   #4
AutomanUK
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?
AutomanUK is offline   Reply With Quote
Old 15th October 2005, 15:02   #5
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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.
djSpinnerCee is offline   Reply With Quote
Old 15th October 2005, 15:21   #6
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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.
djSpinnerCee is offline   Reply With Quote
Old 15th October 2005, 15:42   #7
AutomanUK
Junior Member
 
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
Your A Hero

Thanks for all the help djSpinnerCee
AutomanUK is offline   Reply With Quote
Old 3rd April 2006, 17:35   #8
paul9290
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
paul9290 is offline   Reply With Quote
Old 3rd April 2006, 20:20   #9
jeffy777
Major Dude
 
jeffy777's Avatar
 
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.
jeffy777 is offline   Reply With Quote
Old 3rd April 2006, 21:24   #10
paul9290
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
paul9290 is offline   Reply With Quote
Old 3rd April 2006, 21:30   #11
jeffy777
Major Dude
 
jeffy777's Avatar
 
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
jeffy777 is offline   Reply With Quote
Old 3rd April 2006, 21:42   #12
hackerdork
Forum King
 
hackerdork's Avatar
 
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.
hackerdork is offline   Reply With Quote
Old 3rd April 2006, 22:12   #13
jeffy777
Major Dude
 
jeffy777's Avatar
 
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.
jeffy777 is offline   Reply With Quote
Old 3rd April 2006, 22:21   #14
paul9290
Senior Member
 
Join Date: Aug 2004
Posts: 147
* Delete*

Last edited by paul9290; 3rd April 2006 at 22:56.
paul9290 is offline   Reply With Quote
Old 3rd April 2006, 22:55   #15
paul9290
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
paul9290 is offline   Reply With Quote
Old 3rd April 2006, 23:30   #16
jeffy777
Major Dude
 
jeffy777's Avatar
 
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:

<img src="http://yoursite.com/banner.php">



just change it to the URL of your site.
jeffy777 is offline   Reply With Quote
Old 4th April 2006, 02:59   #17
paul9290
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!
paul9290 is offline   Reply With Quote
Old 4th April 2006, 03:39   #18
jeffy777
Major Dude
 
jeffy777's Avatar
 
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.
jeffy777 is offline   Reply With Quote
Old 4th April 2006, 10:13   #19
kael
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?
kael is offline   Reply With Quote
Old 4th April 2006, 17:02   #20
jeffy777
Major Dude
 
jeffy777's Avatar
 
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
jeffy777 is offline   Reply With Quote
Old 13th April 2006, 17:21   #21
paul9290
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
paul9290 is offline   Reply With Quote
Old 13th April 2006, 19:13   #22
jeffy777
Major Dude
 
jeffy777's Avatar
 
Join Date: Jan 2006
Posts: 632
It can be an html file.
jeffy777 is offline   Reply With Quote
Old 13th April 2006, 21:45   #23
paul9290
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
paul9290 is offline   Reply With Quote
Old 13th April 2006, 21:56   #24
jeffy777
Major Dude
 
jeffy777's Avatar
 
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?
jeffy777 is offline   Reply With Quote
Old 17th April 2006, 04:20   #25
paul9290
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
paul9290 is offline   Reply With Quote
Old 30th August 2006, 11:31   #26
AutomanUK
Junior Member
 
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
Quick update the my site has now moved to HERE
AutomanUK is offline   Reply With Quote
Old 30th August 2006, 12:43   #27
tuckerm
Forum Emo
 
tuckerm's Avatar
 
Join Date: Mar 2005
Posts: 8,364
We don't care. It doesnt pertain to shoutcast.
tuckerm is offline   Reply With Quote
Old 30th August 2006, 20:26   #28
batistabombv3
Junior Member
 
batistabombv3's Avatar
 
Join Date: Jan 2006
Location: Windsor,On,Canada
Posts: 36
Quote:
Originally posted by djSpinnerCee
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.
hey DJ Spinnercee the script that is above doesn't work i have a html site, and i put the script in my site and the sciprt won't work, nothing displays so i was hoping what is the problem this is what i put in
<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!
batistabombv3 is offline   Reply With Quote
Old 30th August 2006, 20:43   #29
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
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.
djSpinnerCee is offline   Reply With Quote
Old 31st August 2006, 11:17   #30
AutomanUK
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
AutomanUK is offline   Reply With Quote
Old 31st August 2006, 11:20   #31
AutomanUK
Junior Member
 
Join Date: Oct 2005
Location: Northern Ireland
Posts: 8
Quote:
Originally posted by tuckerm
We don't care. It doesnt pertain to shoutcast.
Apart from the page thats streaming music using SHOUTCAST i would have to agree.
AutomanUK is offline   Reply With Quote
Old 31st August 2006, 13:04   #32
tuckerm
Forum Emo
 
tuckerm's Avatar
 
Join Date: Mar 2005
Posts: 8,364
No, your advertising your site. I'll rephrase: This doesnt deal with SHOUTcast Tech support no more.
tuckerm is offline   Reply With Quote
Old 25th September 2006, 05:38   #33
iscorp216
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?
iscorp216 is offline   Reply With Quote
Old 25th September 2006, 12:09   #34
tuckerm
Forum Emo
 
tuckerm's Avatar
 
Join Date: Mar 2005
Posts: 8,364
The way i've done it in the past is by using viralsound.com. I download their plugin and then whenever something changed in my winamp it'll update and spit out an image. I simply link to that image and volia.
tuckerm is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

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 Off

Forum Jump