Song Displayer is a WordPress plugin that displays what is playing in Winamp or SAM Broadcaster on your blog.
The plugin consists of 4 files :
The plugin reads the generated playlist and extracts the information to display the data contained in the ID3v1 tags. If the tags are incomplete or missing, the plugin displays the name of the files. By default, the artist name and song title is displayed, along with the album title if available. If the playlist hasn’t been regenerated in the laps of time you define, the plugin assumes your webradio is off and displays a ‘Radio is off’ message. Otherwise, it displays the song info on your blog and you can link it to your Shoutcast or Icecast stream.
http://www.skyminds.net/?download=song_displayer
First, you need the DoSomething plugin for Winamp.
Once installed, go to Winamp > Préférences > Plugins > General Purpose > DoSomething and select Configure. Activate the plugin by unticking the Disable Plugin box.
Playlist creation
In the drop-down menu, select Generate HTML Playlist. In Template In, enter the path of MP3-in.php that resides on your hard-drive. Do the same for Template Out with MP3-out.php. Click Update to save the changes.

Upload the playlist on your server via FTP
Once the playlist generated, you nedd to upload it on your server. Select the FTP service in the drop-down menu and fill in the fields with your FTP account info :

That’s it. Now on to the plugin configuration.
Setting up the playlist generation in SAM is pretty straight-forward :
/Program Files/SpacialAudio/SAMBC/samHTMweb/ directory.mp3-in-sam.php as input file and mp3-out.php as output file.Here is a screenshot of the configuration on SAM :

Upload the plugin
You now need to upload song_displayer.php in your /wp-contents/plugins/ directory. Chmod it 666 with your FTP client (right-click on the file > Chmod/permissions > 666) to be able to edit it via WordPress plugin editor.
The plugin has got 3 options : the URL of the playlist (mp3-out.php) from the index page of your blog, the delay in seconds before assuming Winamp is turned off (7 minutes by default, edit this value according to the average length of your songs) and the URL of your webradio stream if you have one.
Data integration on your blog
This is the last step : add the following code to your sidebar.php template where you want the information to appear :
<?php if(function_exists('show_playlist')) { show_playlist(1, " - ", ""); } ?>
That’s it ! You should now be set and have what’s playing in Winamp or SAM Broadcaster displayed on your blog.
THANKS ! I appreciate your help very much :)
My pleasure Hazel :)
I’ve been playing with this plugin all day. It always says “Radio is off !”. I have $playlist and file permissions set correctly. I started playing with the code and have not been able to get it to work at all. No matter what I do I cannot get it to display any data.
Hello golddave,
Is the playlist uploaded correctly ? If you access it in your browser, does it reflect what you’re playing ? What is your value in $playlist ?
I got it to work. Everything was working fine but the path I put in for $playlist didn’t account for the fact that I’m on a shared host. I had /public_html/mp3-out.php but since I’m on a shared host I really needed /home/golddave/public_html/mp3-out.php. Once I made that change it worked fine.
I’m glad you’re sorted golddave :)
Hi, it took me 15 minutes, but it works fine ! But the “DoSomething plugin for Winamp” is what makes me troubles. Since its installation Winamp crashes everytime I try to play some net-radio. Anybody knows what to do ??
Hi carpenter,
You need to disable the plugin when playing net-radios as it’s intended for local music only.
Hope that helps,
Hi, I would like to show more than only the last song on my page. Is there a way how to set it up ?
Hello carpenter,
To display the last 5 recently played songs, put :
Hi, I’ve been having a similar problem to what other have had : The DoSomething plugin works fine and the mp3-out.php uploads correctly, but for some reason the song_displayer.php file can’t pull it up. It just says the radio is off. I’ve tried setting the delay lower and it doesn’t work. The location of the mp3-out file is also correct — /home/.ellis/username/folder/mp3-out.php. The plugin used to work perfectly, but now for some reason it has stopped (I didn’t make any changes to the files).
Hello Jon,
Can you give me the mp3-out.php and the plugin URL via email ? Thanks.
Updated tutorial with SAM Broadcaster configuration.