Recent Topics

1 Jul 06, 2005 07:33    

Hello everybody. Quick question. I am running a winamp server to stream mp3s through shoutcast. There is this little program called RadioToolbox which gives me the stats on the radio: Last X songs played, number of listeners etc. I would like to have that on my linkbar just below my link to the radio station.

Here is a link to my blog :

http://dirtylenses.com/b2evolution/

on the right there is the link to the radio. Below it i made a link to the stats page. The php code of that page is this :

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

<?php
include("includes.php");
?>
<HTML>
<TITLE>BLAH BLAH BLAH</TITLE>
<BODY bgcolor="000000">
<TABLE align="center" width="95%">
<TR><TD bgcolor="888888"><font face="Tahoma" color="FFFFFF" size="2">
Current Song: <b><?php echo $current_song; ?></b><br>
Listeners: <?php echo $listeners; ?>/<?php echo $max_listeners; ?></font><TD><TR>
</TABLE>

<?php
$i = 0;
echo "<table align=\"center\" width=\"60%\">
<tr>
<td rowspan=\"".sizeof($lastsong)."\" valign=\"top\" bgcolor=\"888888\"><font face=\"Tahoma\" color=\"FFFFFF\" size=\"2\">Last ".sizeof($lastsong).":</font></td>";
while ($lastsong[$i])
{
if ($i != 0)
{
echo "<tr>";
}
echo "<td bgcolor=\"888888\"><font face=\"Tahoma\" color=\"FFFFFF\" size=\"2\">";
echo $lastsong[$i];
echo "</font></td></tr>";
$i++;
}
echo "</TABLE>";
?>
</BODY>
</HTML>

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

I would like to have that neatky sitting as a little image on my linkbar. Doable ?

Any ideas appreciated

cheers

-ergin

2 Jul 06, 2005 09:10

This thing should do it.
Just copy paste it in _main.php, the exact spot where you want to place it.

Fuse wrote:

<?php
include("includes.php");
?>
<BODY bgcolor="000000">
<TABLE align="center" width="95%">
<TR><TD bgcolor="888888"><font face="Tahoma" color="FFFFFF" size="2">
Current Song: <b><?php echo $current_song; ?></b><br>
Listeners: <?php echo $listeners; ?>/<?php echo $max_listeners; ?></font><TD><TR>
</TABLE>

<?php
$i = 0;
echo "<table align=\"center\" width=\"60%\">
<tr>
<td rowspan=\"".sizeof($lastsong)."\" valign=\"top\" bgcolor=\"888888\"><font face=\"Tahoma\" color=\"FFFFFF\" size=\"2\">Last ".sizeof($lastsong).":</font></td>";
while ($lastsong[$i])
{
if ($i != 0)
{
echo "<tr>";
}
echo "<td bgcolor=\"888888\"><font face=\"Tahoma\" color=\"FFFFFF\" size=\"2\">";
echo $lastsong[$i];
echo "</font></td></tr>";
$i++;
}
echo "</TABLE>";
?>


Form is loading...