View Full Version : Dynamic Track Listing on Web Page
28th December 2000, 21:36
I would like to list what is currently playing on my radio station on my home page. I liek the way the shoutcast listing have it set up. Is there somehwere I can go to get the code for that? I would prefer it to be a something compatible with .asp pages. If not that would be alright. You can email me at email@example.com. thanks!
28th December 2000, 21:54
Heh... I'm not e-mailing, since that would make the whole message board idea useless. Anyway, http://www.oddsock.org offers a program called DoSomething that will do exactly what you want. It's the only program I know of so far that is also customisable to fit nicely into your webpage and all, definitely worth checking out.
28th December 2000, 22:33
SAM is another program that will create playlists, request pages, and last 10, 20, etc... webpages & a whole lot more. Check out www.AudioRealm.com for more info.
28th December 2000, 22:41
Oh yes forgot about that one. It makes my computer crash though, but that's probably because running winamp and SAM at the same time is just too much for the poor thing (ugh).
28th December 2000, 23:57
Does anyone have a short tutorial on setting up the oddsock plugin?
29th December 2000, 00:18
Short Tutorial on DoSomething
1) Download DoSomething
2) Install it
[ok now the real thing]
Depending on what you want to do, the following steps will vary, but let's say you want to create a webpage with the currently playing song on it, you would have to do the following:
- Create the webpage. You can use any HTML-code you want, but you will have to insert DoSomething tags on the places where you want the currently playing song to appear. This would be %%CURRENTSONGTITLE%% (maybe followed by - %%CURRENTARTIST%%. There are many more tags supported, they're all listed on Oddsock's site.) Save this page somewhere and give it a nice name. This will be used as the temp-file, so you might want to call it something like that. Let's say you saved it at c:\files\dosomething_temp.html
- Go to the DoSomething plugin in Winamp and from the list choose "generate HTML page". Specify c:\files\dosomething_temp.html as Template In and specify the path and filename that you want the file that you're going to upload in the end as Template Out. In this example that would be c:\files\dosomething.html. Then choose Add.
- From the list choose FTP a file. Specify c:\files\dosomething.html as the local file. In remote file you put the path on your webpage where you want it to end up; http://www.mywebpage.com/dosomething.html (I'm actually not sure if you need the http, so if this doesn't work try without). Enter your FTP-host (this is of course without http, so www.mywebpage.com), password blah blah etc. and click Add.
- Now you may want to check the box "show status box" and (of course) uncheck the box that's with "disable DoSomething", click OK and start playing songs in Winamp. See if it works (ie check on www.mywebpage.com/dosomething.html to see if there is anything appearing at all).
By the way, in case of a page that is listing the currently playing song, or the last played song, or anything else that needs to be updated regularly for that matter, it would be a good idea to make the page refresh automatically every x minutes.
I hope I didn't forget something essential in here and that you could understand this. Forgive my crappy English, I'm in the middle of a major language crisis caused by a lack of sleep that is about the same size. Just shout again if it doesn't work :)
29th December 2000, 00:23
Thanks, I installed it and got it working anyway - only problem I'm having is %%currentsongtitle%% won't work - gonna go try %%currentsong%% and hope for the best!
29th December 2000, 00:28
It works for me and I got it from the Oddsock site (ah yes I back my answers up (sometimes)), but you do need to have ID3 tags. %%CURRENTSONG%% gets its data from the playlist. Oh well what's the big difference?
Well congratulations on being able to read through that immense post without falling asleep or becoming mentally damaged. And on getting it to work :)
29th December 2000, 00:44
Thanks ;) I just used %currentsong%% instead - you can see at http://www.digitalgunfire.com if you care
something weird though..
I am doing !--#include virtual="current.shtml"-- and it works fine.. but if i do !--#include virtual="../../current.shtml"-- it doesn't!
So I can only put it on files in the root directory.. which is bizarre.
29th December 2000, 08:17
Don't forget the XML interface. If you connect to your SHOUTserver with this URL:
(where, of course, you fill in the blanks with the appropriate information), you can get all sorts of nifty info. Some of the scripting languages have XML parsing support (PHP does, I think) to make this less painful.
29th December 2000, 14:14
Ooo, cool. I'll have to experiment..
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.