Variables used.
Here is a list of variables that can be used in your "forumhome_shoutcast". If do not wish to show data, just remove the variables.
$scdef = Default station name $scip = IP shoutcast server $scport = Port of shoutcast server $song[0] = (zerro) is the current song playing. $bitrate = Quility of the Bitrate - setting in DJ - DSP . $currentlisteners = Current connected users. $maxlisteners = Max users for the server. $listenlink = 'http://$scip:$scport/listen.pls
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
not to sound stupid, but I came across this section in the install notes and I'm stuck...
Make Template: |
===============
forumhome_shoutcast
I was able to edit the forumhome template, but have no clue howto make a template. This is what I ended up with... i think the link was add style, not add template?
v3.5.4
Add New Template - is in the dropdown of each style in the style manager.
Journey Deep Lava Forums => there is a Dropdown on that style
- Add New Template
Here is an update for you if your having issues with the http auth,
i had to update my scsong for this at casterclub.com
scsong.php
PHP Code:
<?php
/*
// Author: dstjohn (Mediacast1/Casterclub)
// Date started: 05-03-2002 (10:00A.M)
// Date Ended: 05-03-2002 (6:03 P.M)
// Requirements:
// 1.SHOUTcast streaming server
// 2.Oddcast dsp with winamp/xmms (recomended setup)
// 3.Webserver with php 4.x (Recommended environment: Unix (Freebsd, Red Hat etc.. with Apache 3.x)
// Support: None, post in the casterclub forums
// Core script Information:
// SHOUTcast Song Status was written and developed on Windows Xp with apache and php4.1.2
// Has not been tested on IIs webservers, if you do so and get it to work please let us know
// At the forums (http://casterclub.com/forums)
// Also has been tested on freebsd with apache, php4.1.2 and works fine.
*/
//connect to shoutcast server
include('./config.php'); //you may edit this path to fit your server environment otherwise leave it alone
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' is Offline';
}
if($scsuccs!=1){
//format the date
$frmt_date[$t] = date('l dS of F Y h:i:s A',$playedat[$t]);
//you may edit the html below, make sure to keep variables intact
echo'
<b>'.$t.'.</b>Song: '.$song[$t].' - <b>Played @</b> '.$frmt_date[$t].'<BR>
';
$r++;
}
fclose($scfp);
}
?>
config.php
PHP Code:
<?php
/*
// Author: dstjohn (Mediacast1/Casterclub)
// Date started: 05-03-2002 (10:00A.M)
// Date Ended: 05-03-2002 (6:03 P.M)
// Requirements:
// 1.SHOUTcast streaming server
// 2.Oddcast dsp with winamp/xmms (recomended setup)
// 3.Webserver with php 4.x (Recommended environment: Unix (Freebsd, Red Hat etc.. with Apache 3.x)
// Support: None, post in the casterclub forums
// Core script Information:
// SHOUTcast Song Status was written and developed on Windows Xp with apache and php4.1.2
// Has not been tested on IIs webservers, if you do so and get it to work please let us know
// At the forums (http://casterclub.com/forums)
// Also has been tested on freebsd with apache, php4.1.2 and works fine.
*/
//Configuration
$scdef = "rogerdat"; // Default station name to display when server or stream is down
$scip = "127.0.0.1"; // ip or url of shoutcast server
$scport = "89000"; // port of shoutcast server
$scpass = "goodstuff"; // password to shoutcast server
//End configuration
?>
Just some tidbits for you to incorperate into your scastlite
as this formats the date/time songs are played
and addresses base64_encode.
I have installed the latest mod for my forum but no look as my ip is shoutcast2.tidyhosts.com and my ip is 9088 but when my radio is on and i go to my forum the server says its offline which it isnt
I have put in my correct dj/admin password which is correct and no luck