A few questions...
A few questions...
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 !
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 !
- Jay
- Will work for food (Administrator)
- Posts: 3028
- Joined: Mon Jan 14, 2002 12:48 am
- Location: Next Door
- Contact:
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.
2. Again just modify the example script to output the songs you want and in whatever order you like.
- Jay
Ok, I have never coded any PHP skills before but I managed to make some changes to the script to suit my needs:
And to make the other one not display current song as top of last 5 I just changed $i = 0 to $i = 1
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 ?
Code: Select all
<?php
if($current_song == \\\"\\\"){
echo \\\"Radio is down.\\\";
} else {
echo $current_song;
}
?>
Code: Select all
<?php
$i = 1;
while ($lastsong[$i])
{
?> <b><?php echo $i;?></b>. <?php echo $lastsong[$i];
echo \\\"<br>\\\";
$i++;
}
?>
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 ?