The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Module CMPS: Shoutcast Status Full Details »» | ||||||||||||||||||||||||||
/* -----------------12/06/2004 10:45AM-----------------
Shoutcast Status Full 1.2 - CMPS Module This is a Module for CMPS to place Shoutcast Status in a block. :alien: Hope it helps !!! Zack - http://www.gzhq.net Quote:
GeZuS P - for giving me a leg up on some code. (this hack requires a password form the shoutcast admin to pull stream information.) --- Module CMPS: Shoutcast Status Lite does not need one. ================================================== ===== NEEDED To Install: vBadvanced CMPS https://vborg.vbsupport.ru/showthread.php?t=65797 Coded by: Tigga ================================================== ===== Add: 2 templates Upload: 4 images, 1 php file Note: This Module with it's current template layout was designed as a center block. --------------------------------------------------*/ == Install: 2-5 min == Server Name Last 5 songs DJ Name DJ ICQ DJ AIM Bitrate Current Song Users Connected User Max IRC Server and Room Online / Offline status --------------------------------------------------*/ - Something that came to mind. You can take this add-on and rename the shoutcast.php file to say "shoutcast1.php, shoutcast2.php, etc." and make multi-blocks to get feeds from different servers. They all can use the same templates. Changelog: 1.2 - 02.22.05 - Added: DJ ICQ, DJ AIM, IRC Server and Room, 2 images Edited: cleaned up code in templates and php file. 1.1 Fixed - 12.07.04 - shoutcast.php file to show offline if sever IP can not be reached. To update replace shoutcast.php file. If you choose not to show any/all: Variables used. Here is a list of variables that can be used in your "adv_portal_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 $scpass = Admin password (not DJ) to shoutcast server $ircsite = IRC Server - EX: irc.server.com $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. $servertitle = "Discription" - setting in DJ - DSP (I used for DJ Name). $servergenre = - setting in DSP. $bitrate = Quility of the Bitrate - setting in DJ - DSP . $icq = ICQ# of DJ - setting in DJ - DSP. $aim = AIM# of DJ - setting in DJ - DSP. $irc = IRC room of DJ - setting in DJ - DSP. $url = URL - setting in DJ - DSP $currentlisteners = Current connected users. $maxlisteners = Max users for the server. $irclink = irc://$ircsite/$irc $listenlink = 'http://$scip:$scport/listen.pls Supporters / CoAuthors Show Your Support
|
Comments |
#12
|
||||
|
||||
If there is no server for the script to interact with it will error. I'll have to look @ <if> no server <then> show template.
If your shoutcast server is on-line but no one is DJing it will show off line status. If the server is shut off it errors. |
#13
|
|||
|
|||
yep its the errors when the server is off thats causeing the problems
Imagine this - your ip changes from the one in your config file and u not updated it) now people on your board will be getting that error until u return and fix it and with the amount of errors it throws up i cant see anyone sitting there watching screens of the same error code. Not knocking your hack m8 just saying its needs a backup just in case it cant connect. |
#14
|
||||
|
||||
ya, I am reading up on If no fsockopen connect then offline template. I almost got it done.
|
#15
|
||||
|
||||
Quote:
1.1 Fixed - shoutcast.php file to show offline if sever IP can not be reached. To update replace shoutcast.php file. |
#16
|
||||
|
||||
good going harrybutt. it works beautifully now.
|
#17
|
|||
|
|||
nice going m8 and really appreciae the time u took to solve this small problem
/me clicks installs and says `thank u m8` |
#18
|
|||
|
|||
This works great, well done.
I would love to see this to be incorporated elsewhere as well, perhaps with the option of a significantly more compact template. |
#19
|
||||
|
||||
This seems to be the best hack for a long period of time.
|
#20
|
||||
|
||||
Quote:
|
#21
|
|||
|
|||
Great, thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|