View Full Version : Shoutcast Status Lite
Zachariah
02-22-2005, 10:00 PM
Shoutcast Status Lite 1.0.1 on your VB3.x Forum Home.
Hope it helps !!! Zack @ http://www.gzhq.net
There are 4 types of this script here on vb.org:
1) CMPS: Shoutcast Status Lite (https://vborg.vbsupport.ru/showthread.php?t=76988)
2) CMPS: Shoutcast Status Full (https://vborg.vbsupport.ru/showthread.php?t=72570)
3) Shoutcast Status Lite (https://vborg.vbsupport.ru/showthread.php?t=76920) (forum home)
4) Shoutcast Status Full (https://vborg.vbsupport.ru/showthread.php?t=76873) (forum home)
This script pulls the XML data from a shoutcast server.
http://www.shoutcast.com/download/serve.phtml
CREDITS:
GeZuS P - for giving me a leg up on some code.
NuclioN - Request for non-pw ver
(this hack does not need a password to pull stream information.) ---
Shoutcast Status 1.01 (https://vborg.vbsupport.ru/showthread.php?p=616066#post616066) (full w/ more options) need a password.
Changelog:
*1.0.1
Removed </span> tag in forumhome_shoutcast template.
== Install: 2-5 min ==
Collapsible Table
Server Name
Bitrate
Current Song
Users Connected
User Max
Online / Offline status
================================================== =====
Zerro queries added
Edit: 2 php files
Edit: 1 template
Upload: 2 images, 1 php file
Add: 2 templates
If you choose not to show any/all:
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
NuclioN
02-23-2005, 08:45 PM
The member's shoutcast server is offline right now. We will sit and wait and see if the info is poping up :) Tnx
T3MEDIA
02-23-2005, 08:51 PM
what is it exactly though... does this work with Yahoo or is this something differnt.
Zachariah
02-23-2005, 09:20 PM
what is it exactly though... does this work with Yahoo or is this something differnt.
SHOUTcast is a free-of-charge audio homesteading solution. It permits anyone on the internet to broadcast audio from their PC to listeners across the Internet or any other IP-based network (Office LANs, college campuses, etc.).
http://www.shoutcast.com
This script reads the XML stat feed from a server.
Selene
02-24-2005, 12:00 AM
Nice hack i will use it definat for ma shoutcast stream :)
MrLovellz
02-24-2005, 12:20 AM
Awesome, installed this and working fine :)
Zachariah
02-24-2005, 01:07 AM
Awesome, installed this and working fine :)
Thanks. Drop us a link when your feed is up and going. :banana:
hXc Radio
02-24-2005, 06:08 AM
this is pretty cool I think I will add it to my whats going on section....
I made a Shoutcast hack I been using since vb 2.2.9 for vbindex. I might release it someday.. It works nicely with vb 3.x It shows current song, listener count and links to both hi and lo band streams and the last 20 songs played. here is a screenie :)
Zachariah
02-24-2005, 12:40 PM
this is pretty cool I think I will add it to my whats going on section....
I made a Shoutcast hack I been using since vb 2.2.9 for vbindex. I might release it someday.. It works nicely with vb 3.x It shows current song, listener count and links to both hi and lo band streams and the last 20 songs played. here is a screenie :)
Nice, great idea on the multi bandwith.
I rem. hi and lo band streams on a pre-done script from shoucast.com years ago. It's not to hard to add another link and stream feed.
This is the "lite" ver of the hack " no password needed to gather stats and limited. The "full ver" (https://vborg.vbsupport.ru/showthread.php?t=76873) has tons of other stuff, but needs the shoutcast Admin PW.
Collapsible Table
Server Name
Last 5 songs - max 20
DJ Name
DJ ICQ
DJ AIM
Bitrate
Current Song
Genre
Users Connected
User Max
IRC Server and Room
Online / Offline status
I did a "v3 vBa CMPS" addon many moons ago that I am updating. :tired:
hXc Radio
02-24-2005, 11:26 PM
for the multi stream counts I use a php script to get the listener count and it gives the count output via png using the image tags to call to the php file. hope that helps :)
nyunyu
03-13-2005, 08:38 PM
this is pretty cool I think I will add it to my whats going on section....
I made a Shoutcast hack I been using since vb 2.2.9 for vbindex. I might release it someday.. It works nicely with vb 3.x It shows current song, listener count and links to both hi and lo band streams and the last 20 songs played. here is a screenie :)
ahh..really nice..do you have a date of when it will be available? i really loved to have this.
kthlnwrnr
03-29-2005, 01:44 PM
My frind, who is still using vb3.3 and is scared of updating due to the fear of loosing database elements wants to install shoutcast Full or Lite on his forum homepage. Is there a work around for vb3.3?
Zachariah
03-29-2005, 04:20 PM
My frind, who is still using vb3.3 and is scared of updating due to the fear of loosing database elements wants to install shoutcast Full or Lite on his forum homepage. Is there a work around for vb3.3?
Shoutcast Full and Lite only make template and file edits. There are no database table/field changes.
After the upgrade just reinstall the hack - re-edit: index.php, FORUMHOME template, and make sure forumhome_shoutcast and forumhome_shoutcast_off templates are in your template set.
kthlnwrnr
03-30-2005, 03:17 AM
I think I failed to communicate properly. My friend is actually afraid of updating to the latest version of VB since he thinks that he will loose all his hacks. This is the reason I wanted to know whether it is possible to install shoutcast full or lite on vb 3.3.
Harry72
03-30-2005, 06:55 AM
Thx Harry - works great ! Nice and fast install.
Cheers
Harry :nervous:
Zachariah
03-30-2005, 01:48 PM
I think I failed to communicate properly. My friend is actually afraid of updating to the latest version of VB since he thinks that he will loose all his hacks. This is the reason I wanted to know whether it is possible to install shoutcast full or lite on vb 3.3.
got ya .... yes this all 4 ver. will work w/ 3.x - 3.0.7+++ :D
Zachariah
03-30-2005, 01:54 PM
Thx Harry - works great ! Nice and fast install.
Cheers
Harry :nervous:
:up: looks good.
Harry72
04-01-2005, 04:46 PM
:up: looks good.
Yes. My users loves it. :nervous:
Breathex
04-23-2005, 03:57 AM
i have a question,
i installed this hack into my forum, there is no problem with this, everything is ok. also i installed this hack into both of my friends forum and i wrote my shoutcast servers info into scast.php files. first day everthing gone ok but second day when i start the radio in my forum it works with no problem but it doesn't show on my frinds forum, in my friends forum it still shows the radio is offline.
what should i do to solve this problem? thanx for ur answers.
NuclioN
05-24-2005, 12:23 PM
We are testing virtual dj but can't get the same stream info as with winamp. How to do this?
Zachariah
05-24-2005, 01:52 PM
We are testing virtual dj but can't get the same stream info as with winamp. How to do this?
I have not read a lot about "virtual dj". From a glance it looks to be a mixing program that makes WMA or MP3's. I read that you can use the same DSP as winamp? If this is so your in.
You need to edit the settings of the shoutcast plug-in (see attached image).
I have not installed or used "virtual dj", but the plug-in may be integrated differently.
NuclioN
05-24-2005, 06:00 PM
Yep, the plugin works great with virtual dj but the only thing it does not do is auto update the song titles although the settings in the plugin are correct. I think it has something to do with the code in scast.php where a 7.html is coded.
Zachariah
05-25-2005, 02:24 AM
Yep, the plugin works great with virtual dj but the only thing it does not do is auto update the song titles although the settings in the plugin are correct. I think it has something to do with the code in scast.php where a 7.html is coded.
PM/IM me a link of the shoutcast ip and port and a time when there is a Bcast. Ill look to see if the same data is passed to the server.
Also look @ the image
https://vborg.vbsupport.ru/external/2005/11/1.php?attachmentid=26525
** Make sure you have a check mark on the "Track Title/URL"
- Enable Title Updates
- Auto
- Auto
NuclioN
05-25-2005, 07:07 AM
These settings are correct. Strange is that the title is updated when i fill it in manual so it sends info alright. I'll PM you when it is onair.
Zachariah
05-25-2005, 10:56 AM
These settings are correct. Strange is that the title is updated when i fill it in manual so it sends info alright. I'll PM you when it is onair.
For the info of song title and artists to show up in car mp3 radios, portables, and the shoutcast system you will need to fill out the ID3v1 tag . If you do not, most systems give a "dash" as the feed title vs. the mp3 file name.
Another note:
ID3v2 tag can be filled out, but if it is blank of data and is enabled to send data then the feed will also show a "dash" w/o file info.
NuclioN
05-25-2005, 11:30 AM
How and where can we change that???? Maybe the output can be 'catched' and put into an iframe in a html file with auto refresh :)
Zachariah
07-13-2005, 12:21 AM
How and where can we change that???? Maybe the output can be 'catched' and put into an iframe in a html file with auto refresh :)
Sorry for the long time. I did not see you posted :ermm:. The ID3v1 tag is on each Mp3. You can access it getting the "options" of a song in your Winamp Playlist.
I USE:
MP3Ext is an extension for the Windows Explorer (http://odin.mutschler.de/mp3ext/).
It enhances it, so you can get information in many ways:
A PropertyPage is installed, where you can fully edit the ID3-Tag
An icon-handler for individual icons is included too
Tooltips, when you simply leave the mouse over the MP3-file (only with IE4.0 Active Desktop)
--------------------------------------------------------------------------------
The features in more detail are:
install/uninstall feature
running on Win95 / WinNT 4.0
multithreaded
easy to use GUI
editing of multiple files
ID3v2 support: this includes unlimited strings, classic support, ...
automatic generation of the ID3-tag from the filename
exporting the information in a file or clipboard
customizable Tooltips
it's giftware
What is ID3 (v1)?
The audio format MPEG layer I, layer II and layer III (MP3) has no native way of saving information about the contents, except for some simple yes/no parameters like "private", "copyrighted" and "original home" (meaning this is the original file and not a copy). A solution to this problem was introduced with the program "Studio3" by Eric Kemp alias NamkraD in 1996. By adding a small chunk of extra data in the end of the file one could get the MP3 file to carry information about the audio and not just the audio itself.
The placement of the tag, as the data was called, was probably chosen as there were little chance that it should disturb decoders. In order to make it easy to detect a fixed size of 128 bytes was chosen. The tag has the following layout (as hinted by the scheme to the right):
Song title: 30 characters
Artist: 30 characters
Album: 30 characters
Year: 4 characters
Comment: 30 characters
Genre: 1 byte
If you one sum the the size of all these fields we see that 30+30+30+4+30+1 equals 125 bytes and not 128 bytes. The missing three bytes can be found at the very beginning of the tag, before the song title. These three bytes are always "TAG" and is the identification that this is indeed a ID3 tag. The easiest way to find a ID3v1/1.1 tag is to look for the word "TAG" 128 bytes from the end of a file.
As all artists doesn't have a 30 character name it is said that if there is some bytes left after the information is entered in the field, those bytes should be fille with the binary value 0. You might also think that you cannot write that much in the genre field, being one byte big, but it is more clever than that. The byte value you enter in the genre field corresponds to a value in a predefined list. The list that Eric Kemp created had 80 entries, ranging from 0 to 79.
What is ID3v1.1?
ID3v1 may well be easy to implement for programmers, but it sure is frustrating for those with their own, creative ideas. Since the ID3v1 tag had a fixed size and no space marked "Reserved for future use", there isn't really room for that much improvement, if you want to maintain compatibility with existing software.
One who found a way out was Michael Mutschler who made a quite clever improvement on ID3v1. Since all non-filled fields must be padded with zeroed bytes its a good assumption that all ID3v1 readers will stop reading the field when they encounter a zeroed byte. If the second last byte of a field is zeroed and the last one isn't we have an extra byte to fill with information. As the comments field is to short to write anything useful in the ID3v1.1 standard declares that this field should be 28 characters, that the next byte always should be zero and that the last byte before the genre byte should contain which track on the CD this music comes from.
lewisbeech
07-27-2005, 09:04 AM
super mod!
i have installed it on www.a-2z.com/forum and it works beautifully!
thanks!
Lewis
dethfire
07-31-2005, 01:06 AM
plans for 3.5? this hack rocks!
Zachariah
08-01-2005, 06:14 PM
plans for 3.5? this hack rocks!
Yes sir I plan on putting out updates soon.
Sooner95
10-01-2005, 12:02 AM
excellent, thx Zach..
Zachariah
10-04-2005, 01:08 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=97500" target="_blank">Shoutcast Status Lite</a> (VB3.5)
================================================== =====
Changelog |
================
1.5
- added 12 Phrases "scast_" prefix
- Added Windows Media Player popup
- Added Real Media Player popup
- Added Quicktime Media Player popup
- Added marquee to Curent song playing
- Added 4 images for choice of media player
JourneyDeep
07-11-2006, 06:25 PM
Do these work in the vbulletin forums without the CMPS portal installed?
3) Shoutcast Status Lite (forum home)
4) Shoutcast Status Full (forum home)
I've been looking for a scrolling ticker or something to display "now playing" from my shoutcast server all day.
oldfan
07-11-2006, 09:43 PM
Ok, I'm not the smartest cookie.. :P
what rest do I have to install to make this work?
I believe i have shoutcast feature via my paid hosting.
oldfan
07-11-2006, 11:50 PM
Ok, I'm not the smartest cookie.. :P
what rest do I have to install to make this work?
I believe i have shoutcast feature via my paid hosting.
Yes, I have SHOUTcast is a streaming audio system for Windows and Un*x platforms. At the center of the system is this product, the SHOUTcast Distributed Network Audio Server (DNAS). The DNAS is responsible for accepting a broadcast feed from Winamp and the SHOUTcast Source DSP plug-in, and repeating the broadcast to listeners connected to this SHOUTcast DNAS. Once your source content is being fed into the SHOUTcast DNAS, it will also, dependent on the source content's configuration, list itself with the SHOUTcast directory so listeners can locate your broadcast. The DNAS also has the ability to deliver on-demand content in MP3 format stored in the content/ directory.
Could someone help me alittle more, please and thank you.
I'd really like to offer this to my members, thanks
Zachariah
07-12-2006, 12:55 AM
Yes, I have
Could someone help me alittle more, please and thank you.
I'd really like to offer this to my members, thanks
Hey :D
1) What vBulletin ver. do you have installed ?
2) Your shoutcast server is installed and running?
(a) If so, is the webserver and shoutcast server one in the same or 2 systems?
(b) If on the webserver, know this will eat tons of bandwidth.
3) Do your have a source feeding the shoutcast server for testing ?
(a) DJ sending a live feed.
(b) Server on endless loop playlist.
-+-+-+-+-+-+-+-+
What have you done and what do you have planed ?
oldfan
07-12-2006, 02:00 AM
Hey :D
1) What vBulletin ver. do you have installed ?
2) Your shoutcast server is installed and running?
(a) If so, is the webserver and shoutcast server one in the same or 2 systems?
(b) If on the webserver, know this will eat tons of bandwidth.
3) Do your have a source feeding the shoutcast server for testing ?
(a) DJ sending a live feed.
(b) Server on endless loop playlist.
-+-+-+-+-+-+-+-+
What have you done and what do you have planed ?
1. 3.05
2, I believe so? http://www.metallifukinca.com:8000/
I turned it on via the control panel
Sorry I'm a total newbie at this
JourneyDeep
07-12-2006, 11:02 PM
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?
https://vborg.vbsupport.ru/external/2006/07/19.jpg
https://vborg.vbsupport.ru/external/2006/07/20.jpg
v3.5.4
JourneyDeep
07-12-2006, 11:58 PM
nobody?
JourneyDeep
07-13-2006, 12:21 AM
if you guys can just help me with this one thing (howto add/make a template), I think I will have it going. Afterall, I only have to cut&paste the html into the new template, from the installation text. Everything else has been edited/uploaded.
Zachariah
07-13-2006, 01:58 AM
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?
https://vborg.vbsupport.ru/external/2006/07/19.jpg
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
dstjohn
07-21-2006, 11:02 PM
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
/*
// 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){
//for newer shoutcast servers
fputs ($scfp, "GET /admin.cgi?mode=viewxml HTTP/1.1\r\nHost: $scip:$scport\r\n .
User-Agent: SHOUTcast Song (author: dstjohn@mediacast1.com)(Mozilla Compatible)\r\n .
Authorization: Basic ".base64_encode ("admin:$scpass")."\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
//define xml elements
$loop = array("STREAMSTATUS", "BITRATE");
$y=0;
while($loop[$y]!=''){
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE)
$$scphp = urldecode($$scphp);
// uncomment the next line to see all variables
// echo'$'.$scphp.' = '.$$scphp.'<br>';
$y++;
}
//end intro xml elements
//get song info and history
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("</SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r=1;
while($songatime[$r]!=""){
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
//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
/*
// 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.
MrPHD
07-23-2006, 02:34 PM
I canĀ“t put this hack work.
ceedee
09-12-2006, 01:41 PM
Sweet, thanks!
*Clicks install* :)
Paultiscali
02-06-2007, 11:15 PM
I was just wondering
can this modification be installed on a vbulletin version 3.6 ??
Zachariah
02-06-2007, 11:34 PM
I was just wondering
can this modification be installed on a vbulletin version 3.6 ??
It was renamed and repacked.
Shoutcast Status 2.0 (VB3.6) (https://vborg.vbsupport.ru/showthread.php?t=126007)
Paultiscali
02-07-2007, 12:06 PM
Its only because i tried to install this on my forum and i got a error on my index.php page
I would like the latest shoutcast status lite only to work on vb 3.6
Zachariah
02-07-2007, 09:28 PM
Its only because i tried to install this on my forum and i got a error on my index.php page
I would like the latest shoutcast status lite only to work on vb 3.6
I understand the link above is what you need.
It is Shoutcast Lite and Full in 1 package.
If you have no DJ/Admin password its "Lite".
Paultiscali
02-08-2007, 10:50 AM
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
iMystik
02-20-2007, 10:33 PM
i unistalled this but i still see
forumhome_shoutcast_qt
and other templates how do i remove em?
Zachariah
02-20-2007, 11:25 PM
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
Try:
IP: 194.150.121.47
Port: 9088
i unistalled this but i still see
forumhome_shoutcast_qt
and other templates how do i remove em?
If the templates have not removed you can select the template and "revert" it.
AdminCP -> Styles & Templates -> Style Manager -> Edit Templates -> Select a template you wish to remove => Click the 'Revert' button
gullystation
02-28-2007, 07:19 PM
same happens here i put the correct information in and it jsut says the radio station is offline.
and wot does it mean wen it says Please enter in the Update time of your shoutcast station.
Note: seconds untill cache update
wt do i have to put in dere.
thanx ure hlep will be appreciated
TRa5H
05-27-2008, 08:55 AM
Ok so i am having issues .. i cannot get the shoutcast to work.. i have tried with like 15 different shoutcast ips.. so i know its not that.. below is what i currently have.. i am using shoutcast lite and the cmps shoutcast lite for other pages..
$scdef = "[XRM] - Alternative"; // Default station name
$scip = "66.207.166.59"; // ip shoutcast server
$scport = "8000"; // port of shoutcast server
and here is my forums.. www.rebelsofchaos.net there is a navigation menu top right kinda hidden takes you to all pages..
all that shows is the shoutcast is currently offline.. please help! thanks
Zachariah
05-27-2008, 11:57 AM
Ok so i am having issues .. i cannot get the shoutcast to work.. i have tried with like 15 different shoutcast ips.. so i know its not that.. below is what i currently have.. i am using shoutcast lite and the cmps shoutcast lite for other pages..
$scdef = "[XRM] - Alternative"; // Default station name
$scip = "66.207.166.59"; // ip shoutcast server
$scport = "8000"; // port of shoutcast server
and here is my forums.. www.rebelsofchaos.net there is a navigation menu top right kinda hidden takes you to all pages..
all that shows is the shoutcast is currently offline.. please help! thanks
9 out of 10 times this is because of settings (port,ip,password) or your webhost has blocked ports. Many hosts only allow queries for data on port 80 (http, rss, xml feeds). I have seen many webhosts designate a port for "other" needs of their clients.
TRa5H
05-27-2008, 07:18 PM
well I spoke with them and they said all their ports run off of 80 so i dont know what to say .. but it isnt just the ports i am using.. i went through like 20 diffrent Ip servers and stations and well i havent had a single one work yet.. Below is the full php that i have so if i am wrong with anything please let me know...
<?php
/* -----------------2/22/2005 6:23pm-----------------
Shoutcast Status Lite 1.0
This is a Nice hack to add Shoutcast Status on your VB3.x Forum Home.
Hope it helps !!! Zack @ http://www.gzhq.net
(this hack does not need a password to pull stream information.)
CREDITS:
GeZuS P - for giving me a leg up on some code.
-------------------------------------------------------*/
//Configuration
$scdef = "idobi Radio"; // Default station name
$scip = "208.53.158.213"; // ip shoutcast server
$scport = "80"; // port of shoutcast server
//End configuration
// Shoutcast Server Stats
// Parses shoutcasts xml to make an effective stats thing for any website
$scfp = @fsockopen($scip, $scport, &$errno, &$errstr, 1);
if(!$scfp) {
eval('$scast = "' . fetch_template('forumhome_shoutcast_off') . '";');
}else{
if($scsuccs!=1){
fputs($scfp,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
}
//define all the variables to get (delte any ones you don't want)
$page = ereg_replace(".*<body>", "", $page); //extract data
$page = ereg_replace("</body>.*", ",", $page); //extract data
$numbers = explode(",",$page); //extract data
$currentlisteners=$numbers[0];
$streamstatus=$numbers[1];
$peaklisteners=$numbers[2];
$maxlisteners=$numbers[3];
$currentlisteners=$numbers[4];
$bitrate=$numbers[5];
$song[0]=$numbers[6];
}
//end song info
if($scfp) {
fclose($scfp);
}
$listenlink = 'http://'.$scip.':'.$scport.'/listen.pls'; //make link to stream
//display stats
if($scfp) {
if($streamstatus == "1"){
eval('$scast = "' . fetch_template('forumhome_shoutcast') . '";');
} else {
eval('$scast = "' . fetch_template('forumhome_shoutcast_off') . '";');
}
}
?>
thanks again
i mean you can see on my site under forums that it stays turned off
www.rebelsofchaos.net
citroenar
06-09-2008, 07:10 PM
Try here if ports are open,if not you have to contact host to open port8000 for you.
http://www.canyouseeme.org/
theque
07-15-2008, 08:50 AM
Hi does anyone no how to grab the $servertitle = this will display the information the current live dj is playing :ie on his shoutcast description this is the only info i need to grab
theque
07-19-2008, 09:56 AM
hi ill explaing a bit more what i want to achive this is part of the code
//define all the variables to get (delte any ones you don't want)
$page = ereg_replace(".*<body>", "", $page); //extract data
$page = ereg_replace("</body>.*", ",", $page); //extract data
$numbers = explode(",",$page); //extract data
$currentlisteners=$numbers[0];
$streamstatus=$numbers[1];
$peaklisteners=$numbers[2];
$maxlisteners=$numbers[3];
$currentlisteners=$numbers[4];
$bitrate=$numbers[5];
$song[0]=$numbers[6];
}
//end song info
i want to add $servertitle to this or maybe $description i belive this can be done without the admin password -
any ideas please ive tried everyting i can but am no expert on this.
cheers
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.