View previous topic :: View next topic |
Author |
Message |
Josh Camplin Guest
|
Posted: Mon Oct 03, 2005 3:17 pm Post subject: How can I show my stats on my web forum |
|
|
Below is the code I use to display my stats from my icecast.
Does anyone know just by looking at this code how I could implement any of this into my web forum, so that people can view what is being broadcasted and such....
How do all these online radio stations do it? I mean someone has to know how to do this right? There are a ton of sites on the net that do this.
Code: |
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:template match = "/icestats" >
<link rel="stylesheet" type="text/css" href="css.css" />
<xsl:for-each select="source">
<xsl:if test="server_description">
<xsl:value-of select="server_description" />
<br />
<br />
</xsl:if>
<xsl:choose>
<xsl:when test="listeners">
<xsl:if test="listeners">
<b>Current Listeners: <xsl:value-of select="listeners" /></b>
<br />
<br />
</xsl:if>
<h4>Playing Now:</h4>
<xsl:if test="artist">
<b><xsl:value-of select="artist" /></b>
<br></br>
</xsl:if>
<xsl:value-of select="title" />
<br />
<br />
<xsl:choose>
<xsl:when test="authenticator">
<a href="auth.xsl">Click to Listen!</a>
</xsl:when>
<xsl:otherwise>
<a href="http://my ip:8000{@mount}.m3u"><b>Click to Listen!</b></a>
<br></br>
<br></br>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@mount" /> - Not Connected
<br />
<br />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;
<br />
<br />
<br />
</xsl:template>
</xsl:stylesheet> |
|
|
Back to top |
|
|
Anonymous Guest
|
|
Back to top |
|
|
|