A few questions...

Ask questions, request features, or just complement us about our software and services.
Post Reply
eggz
Posts: 2
Joined: Wed Oct 05, 2005 7:12 am

A few questions...

Post by eggz »

Thanks for a great piece of software.

Im using RTB and the "webserver" thing to display current song and last five songs on my site using the example.php method. I works good. But...

1. When the SHOUTcast server is down, example.php still shows that last played song as playing. I want it to say something like, "[MyRadioStationName] is currently down", or just "server offline", is that possible?

2. When displaying the last played songs, it displays current song as the first of the past 5. Can this be modified to display only the past songs in the list, not including current song ?

Thanks again !
User avatar
Jay
Will work for food (Administrator)
Posts: 3028
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

1. It is php so you can do anything you want, it will just take effort on to learn php on your part to get it there. Look in the includes.php file for all the different variables Radio Toolbox has passed to the script, you can modify the example files to use those variables to display conditions on your server.

2. Again just modify the example script to output the songs you want and in whatever order you like.
- Jay
eggz
Posts: 2
Joined: Wed Oct 05, 2005 7:12 am

Post by eggz »

Ok, I have never coded any PHP skills before but I managed to make some changes to the script to suit my needs:

Code: Select all

<?php                        

if($current_song == \\\"\\\"){   
echo \\\"Radio is down.\\\";                   
} else { 
	echo $current_song;
		}                          

?>
And to make the other one not display current song as top of last 5 I just changed $i = 0 to $i = 1

Code: Select all

<?php
$i = 1;
while ($lastsong[$i])
{
	?> <b><?php echo $i;?></b>. <?php echo $lastsong[$i];
	echo \\\"<br>\\\";
	$i++;
}
?>
But now i have another question/problem that is not in the php-scripts:

I have a server(computer) to run my SHOUTCast server on and to run playlists of mp3 that are stored on that server. Sometimes I want todo live shows, so i stop winamp(runing On the server) from broadcasting on the SHOUTcast server(localhost) and connect to the server from my computer via the server IP.

This works, there is only one problem:

It does not display the current song, it displays the last song played on winamp ON the server, not the song im broadcasting to it from my computer. This may not be a radiotoolbox problem since http://myserver.org:8000 and 7.html wont show current song, nor does RTB.

Any Ideas ?
User avatar
Jay
Will work for food (Administrator)
Posts: 3028
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

yea that is beyond the scope of Radio Toolbox. You will need to figure out a way to get titles to the server from your live broadcast. Or set the title to the show name using the dsp plugin.
- Jay
Post Reply