View Full Version : Module CMPS: Shoutcast Status Lite
Zachariah
02-23-2005, 10:00 PM
Module CMPS: Shoutcast Status Lite 1.0
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.
(this hack does not need a password to pull stream information.) ---
Module CMPS: Shoutcast Status Full (https://vborg.vbsupport.ru/showthread.php?s=&threadid=72570) (full w/ more options) need a password.
== Install: 2-5 min ==
Server Name
Bitrate
Current Song
Users Connected
User Max
Online / Offline status
================================================== =====
- Something that came to mind. You can take this add-on and rename the shoutcast.php file to say "shoutcast_lite1.php, shoutcast_lite2.php, etc." and make multi-blocks to get feeds from different servers. They all can use the same templates.
Upload: 1 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 "adv_portal_scastlite". 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
Zachariah
02-24-2005, 08:29 PM
The templates are not that flashy, but you can edit them. :D
Rushty
02-25-2005, 08:49 AM
any chance of a block for vbindex?
Zachariah
02-25-2005, 01:14 PM
any chance of a block for vbindex?
Should not be a problem. I'll do up a Full and Lite ver. over the next day or so.
:classic:
ericgtr
02-25-2005, 02:16 PM
Should not be a problem. I'll do up a Full and Lite ver. over the next day or so.
:classic:
How about a full for CMPS? Also, is it too wide for a side block?
Zachariah
02-25-2005, 03:44 PM
How about a full for CMPS? Also, is it too wide for a side block?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=72570
The Full ver layout was built with a center block in mind, but it's layout can be custom to fit anywere, just edit "adv_portal_shoutcast". It can also list more than the Top 5 (max top 20).
Full ver only:
$song[t] = Song History: t can range from 0-19. EX: $song[0], $song[1], $song[2] .... $song[19]
$song[0] (zerro) is the current song playing.
ericgtr
02-25-2005, 04:42 PM
https://vborg.vbsupport.ru/showthread.php?s=&threadid=72570
The Full ver layout was built with a center block in mind, but it's layout can be custom to fit anywere, just edit "adv_portal_shoutcast". It can also list more than the Top 5 (max top 20).
Full ver only:
$song[t] = Song History: t can range from 0-19. EX: $song[0], $song[1], $song[2] .... $song[19]
$song[0] (zerro) is the current song playing.
Cool, it's setup on the side now with a few template edits. Thanks man, my users will really dig this. :)
Zachariah
03-01-2005, 01:32 AM
Cool, it's setup on the side now with a few template edits. Thanks man, my users will really dig this. :)
I see you added <marquee> on the block. :cool:
ericgtr
03-01-2005, 01:47 AM
Yeah and I also added a background cell image, you would think that it would be a simple little task but I had to play with it for a little bit, it wouldn't work without creating a css for it.
That Rob Guy
03-01-2005, 11:42 PM
Is it possible to use a server that is already broadcasting for this, instead of my own? I listen to Defcon Radio alot on Winamp, and I'd like to know if I can set this hack up to broadcast Defcon instead of something of my own?
Zachariah
03-02-2005, 12:18 AM
Is it possible to use a server that is already broadcasting for this, instead of my own? I listen to Defcon Radio alot on Winamp, and I'd like to know if I can set this hack up to broadcast Defcon instead of something of my own?
Yes sir.
The light ver. only needs a ip and port.
The full ver. needs ip, port, shoutcast server admin pw.
- Change values with in the "quotes" to shoutcast server settings.
//Configuration
$scdef = "Server Name"; // Default station name
$scip = "0.0.0.0"; // ip or url of shoutcast server
$scport = "8000"; // port of shoutcast server
//End configuration
That Rob Guy
03-02-2005, 02:30 AM
Wait.. I went to install this and it's for CMPS... And also, there is only a link generated, which I can do on my own...
So, I didn't go on with installation, but, this doesn't actually play live on the forums, does it?
Zachariah
03-02-2005, 10:56 PM
Wait.. I went to install this and it's for CMPS... And also, there is only a link generated, which I can do on my own...
So, I didn't go on with installation, but, this doesn't actually play live on the forums, does it?
I am unsure what your talking about or wanting, but 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)
The 2 CMPS's need:
vBadvanced CMPS
https://vborg.vbsupport.ru/showthread.php?t=65797
Coded by: Tigga
The other 2 work on the forumhome.
This script pulls the XML data from a shoutcast server.
http://www.shoutcast.com/download/serve.phtml
Nice Job! My users are gonna love this! -Installed.
That Rob Guy
03-05-2005, 02:37 AM
Okay... So, does the Shoutcast stream play live on the forum, or does it just link to the stream to open up in Winamp? The thing is, I'm wanting this so that my users can just go to the forums and listen to the stream straight off of the forumhome instead of clicking a link and opening it up in Winamp.
Zachariah
03-05-2005, 01:42 PM
Okay... So, does the Shoutcast stream play live on the forum, or does it just link to the stream to open up in Winamp? The thing is, I'm wanting this so that my users can just go to the forums and listen to the stream straight off of the forumhome instead of clicking a link and opening it up in Winamp.
Sure you can embed a player to auto start If that is what you wish. Windows media player or a flash / java player can be used. If you do this on your forum home your user will disconnect when they leave the forum home. You may want to make a popup window w/ the player that can detach from the site.
That Rob Guy
03-05-2005, 03:11 PM
Well, I know I could do that... But, I'm wondering if the script does that.
Slave
04-23-2005, 08:21 AM
Brilliant .. thanks for a great hack :)
* Slave clicks install
Slave
05-23-2005, 07:26 AM
Harry .. I'm using the lite version at the moment but am getting the same problem as some of the guys in the following thread ..
https://vborg.vbsupport.ru/showthread.php?t=72570&highlight=shoutcast
Everything works fine unless the shoutcast process is stopped on the server and then it takes forever for the page this module is on to load.
I see you've added a fix to the full version. Can you please also update this lite version too.
Thanks :)
Zachariah
05-23-2005, 12:55 PM
Harry .. I'm using the lite version at the moment but am getting the same problem as some of the guys in the following thread ..
https://vborg.vbsupport.ru/showthread.php?t=72570&highlight=shoutcast
Everything works fine unless the shoutcast process is stopped on the server and then it takes forever for the page this module is on to load.
I see you've added a fix to the full version. Can you please also update this lite version too.
Thanks :)
Realy ? - I will have to look @ the code. I thought all that crap was good. :o
Slave
05-23-2005, 02:50 PM
Realy ? - I will have to look @ the code. I thought all that crap was good. :o
Lovely .. thanks :)
Got to be said my users love this hack .. :)
Zachariah
05-23-2005, 04:19 PM
@ Slave - With the curent builds of the hacks
I have a test install and @ 18 queries w/ both the full and light Module on the same page.
.45159 Sec - connected
.49724 sec - not connected
Are you useing an IP or a domain name for your $scip value ?
Slave
05-23-2005, 06:21 PM
* Slave goes to check ..
The $scip is an IP .. and I'm deffo using the same file as the download above ..
You sure you've updated it? :p
And you're also sure that you tested it with the shoutcast process completely off on the server .. and not just "off the air" with no one broadcasting?
Cheers for the help :)
Zachariah
05-24-2005, 05:01 PM
* Slave goes to check ..
The $scip is an IP .. and I'm deffo using the same file as the download above ..
You sure you've updated it? :p
And you're also sure that you tested it with the shoutcast process completely off on the server .. and not just "off the air" with no one broadcasting?
Cheers for the help :)
Yes sir.
I am useing the same ver as posted here. I can kill the server, change the IP, DJ or or off line, and I still have little if/any delay change.
Try this:
edit shoutcast_light.php
Find
$page .= fgets($scfp, 1000);
replace with
$page .= fgets($scfp, 5);
The value 5 may be to fast to get readings from the server, but you can change the value untill you get what you need. (larger the # the longer the time the script waits for the data from the server)
Slave
05-26-2005, 12:10 AM
Cool .. cheers .. I'll try that :)
tekram
05-31-2005, 08:13 PM
Yes Sir nice Hack...
Have a look at that: Shoutcast Lite (http://futurepirates.de/cmps_index.php?page=Radio)
Zachariah
06-01-2005, 01:45 PM
Yes Sir nice Hack...
Have a look at that: Shoutcast Lite (http://futurepirates.de/cmps_index.php?page=Radio)
HA !!!! :speechless:
Nice
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.