![]() |
Module CMPS: Shoutcast Status Full
Shoutcast Status Full 1.89 on your VB3.5 CMPS Module.
/* -----------------11/29/2005 6:23pm----------------- This is a Nice hack to add Shoutcast Status on your VB3.5. Hope it helps !!! Zachariah @ http://www.gzhq.net Quote:
Quote:
Tested On: vBadvanced CMPS 2.0+ vBulletin 3.5+ SHOUTcast Server v1.9.5 ================================================== ===== == Install: 2-5 min == Collapsible Table Server Name Last 19 songs 3 Popup players (quicktime, media player, real player) DJ Name DJ ICQ DJ AIM Bitrate Current Song Media Type Most Ever Connected Hit Count Users Connected Avj. Connect Time User Max IRC Server and Room Online / Offline status XML Data Cache *Note: In the Configuration it asks for a password. This is the Admin password not the DJ password. *Note: This Module with it's current template layout was designed as a center block. ================================================== ===== Zerro queries added Add: 1 vBa CMPS Module Upload: 7 images, 2 files Add: 5 templates |
================================================== =====
Changelog | ================ 1.8 2.17.06 - Added XML cache + timer - Added AdminCP setting vs. edit the php file - Fixed "adv_portal_shoutcast" template - player popup. 1.7 12.25.05 - Killed auto create Module on Install 1.6 11.29.05 - Fixed popup players - phase errors - Added auto create Module on Install 1.5 08.31.05 - Added 19 song history vs. 5 - Added Windows Media Player popup - Added Real Media Player popup - Added Quicktime Media Player popup - Added marquee to Curent song playing - Added Avj. Connect Time (avj. of the total time users connected; untill server reboot) - Added Media Type (tells what the source file format is: mpeg, CDA, WAV) - Added Hit Count (total connections to the server since the server reboot) - Added Most Ever (total connections at one time to the server since the server reboot) - Added 4 images for choice of media player 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 $listenamp = http://$scip:$scport/listen.pls $listenlnk = http://$scip:$scport $averagemin = average listener time in minuets $peaklisteners = Most Ever $content = Media Type $streamhits = Hit Count |
very nice!
Thanks |
Quote:
================================================== ===== Changelog | ================ 1.5 - Added 19 song history vs. 5 - Added Windows Media Player popup - Added Real Media Player popup - Added Quicktime Media Player popup - Added marquee to Curent song playing - Added Avj. Connect Time (avj. of the total time users connected; untill server reboot) - Added Media Type (tells what the source file format is: mpeg, CDA, WAV) - Added Hit Count (total connections to the server since the server reboot) - Added Most Ever (total connections at one time to the server since the server reboot) - Added 4 images for choice of media player Party on ! :banana: :bunny: On Closed: https://vborg.vbsupport.ru/attachmen...chmentid=33967 On Open: https://vborg.vbsupport.ru/attachmen...chmentid=33966 Media Player https://vborg.vbsupport.ru/attachmen...chmentid=34148 Quicktime https://vborg.vbsupport.ru/attachmen...chmentid=34149 Real https://vborg.vbsupport.ru/attachmen...chmentid=34150 -------------------------------------------------------*/ |
I get a parse error on line 54 of shoutcast.php when trying to open anything other than winamp..
|
Any help on the above much appreciated...
|
looking now.
|
Cheers m8y
|
Quote:
Look in your Templates for: adv_portal_shoutcast adv_portal_shoutcast_mp adv_portal_shoutcast_rp adv_portal_shoutcast_qt adv_portal_shoutcast_off |
Yes to all the above, Ive even reinstalled it.
I will do some tinkering of my own and install it on my dev board to see if I get the same results.. Thanks for looking and also for the hack. |
<a href="https://vborg.vbsupport.ru/member.php?userid=6872" target="_blank">Instant Messaging ? </a>
|
How do you fix the background layout? If you look at my site www.247xtreme.com you will notice that the shoutcast block only has half on my background. If you look at the other blocks in the middle you will see what I mean.
|
Quote:
Code:
function scastmp(){ Code:
function scastmp(){ |
Quote:
:nervous: Ill shoot a fix soon. |
I'm useing them both myself. Found that I had to link it to work. It's a temp fix at least :)
|
Weird, when I click a media player, I just get a popup box showing the index page of my site again... Any ideas?
|
yes I am redoing this hack.
|
================================================== =====
Changelog | ================ 1.6 11.29.05 - Fixed popup players - phase errors - Added auto create Module on Install Upgrade: 1) Please Uninstall the old Product. 2) Delete shoutcast Module 2) edit: modules / shoutcast.php (downloaded Zip) 3) Upload and replace the files on the server. 4) install product XML ================================================== ===== vBa CMPS: Edit Module | ====================== Admincp => vBa CMPS => Edit Modules => Shoutcast Change: Module Title from Shoutcast to whatever you want. Change: Usergroups - Setings Save ================================================== ===== vBa CMPS: Edit Page | ====================== Admincp => vBa CMPS => Edit Pages Edit and enable the Module to the page. |
Demo: http://www.gzhq.net/index.php?page=Hacks
- Center Top block Todo's / Ideas: 1) XML Cache - this way there is less requests on the shoutcast server from the website. - makes the page that the hack is on have less lag time to load. 2) there is some more info the shoutcast server gives that can be collected and displayed. Like a WOL - Who's on Line - Client (connected info) -- IP address - this could be set to be hidden by usergroup access -- Useragent - IE: useing WinampMPEG/2.9 -- Under Run Count - # times listener gets "LAG" -- Connection Time - The time the user is tuned in. I was thinking of making a page w/ a link on the Module to perhaps a pop-up window or a Full page in a new window. 3) Re-do the code in the players so that if the player is selected and is not installed "auto install request" vs. a red X where the plugin should be. |
Quote:
|
Quote:
It is enabled, but I did not bind to all pages when installed. - some may have 100's of pages and only want it on one page Have a look @ 3 posts above. |
Quote:
Found where to enable it, and have done so... It finally appears on the front page - however! It has now brought the whole page out of alignment. All the right and center blocks have disappeared.. Only the left blocks remain on the page... Until you scroll down, and then they're all there! Also the pop-up players still don't display the play, but instead just display the index page of the site! :( |
Quote:
Replace w/: Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> What I did was add a SQL option to auto install the Module. (to make it simple) :nervous: hahahahahahhahaha I found that there was 2 Shoutcast modules. Module Settings: Admincp => vBa CMPS => Add Module [PHP File] Module Title: Soutcast Column: Center Display Order: your choice Active: yes File to Include: shoutcast.php Templates Used: Code:
adv_portal_shoutcast,adv_portal_shoutcast_mp,adv_portal_shoutcast_rp,adv_portal_shoutcast_qt,adv_portal_shoutcast_off Use Module Shell Template: No REM : Replace your php file on your server. |
:| where did you go
|
Quote:
|
Installed and works great !!!
One more thing ;-) We have 4 shoutcast servers (all streaming the same thing - but have 4 to load balance). Is there anyway to modify the code so it will query all 4 IP addresses and add the 'max users' 'current listeners' 'peak listeners' together? (and send me your PayPal address!!! :P) |
Quote:
Multi streams is not hard to get stats from. (I have this planned and AdminCP options.) - I would realy love to address the XML cache problem. ** This creates so much LAG on the site and eats up bandwith. I know how to load in a winamp playlist: multi streams - I will need to read up on the other players a bit. With your setup it loads all lists into a playlist and if 1 is busy it goes to the other ? Will it do that w/ media player , Real and all that, or do you have 4 IP's if 1 is full you need to go to another IP ? |
Quote:
So for your "$scip = "0.0.0.0";" in shoutcast.php, rather than putting a server IP address, I have put in broadband.eve-radio.com. This seems to work okay, but the only problem is the stats don't add up :-) |
Quote:
I think it would it be smart to have in the "setup area" connection IP $scip = "0.0.0.0"; and also have an area for adding 4 server IP's and 4 admin passwords - incase the systems have different logins. |
Hello Zachariah, thanks for these beautiful hack.
I have the forumhome version (full) and the CMPS version full. It works perfectly and has no problems if my server (own server) is online. But when the server is offline, then my frontpage where the CMPS version stand, are screwed up ( see screens). |
Nice :surprised:
- Ill get off a template fix on that ASAP. This new block uses its own <table> vs. "shell" - looks like on the export it did not save the new "off" template. Replace: adv_portal_shoutcast_off Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%"> Hack Updated : - template change - no ver Change Quote:
|
Quote:
|
Hi Zach!
Just to let you know I've sent you $50 via PayPal. Thank you so much for fixing this module :cool: Have a few beers on me! |
Quote:
I am working: - on multi server support. - on a Admin "stat page" that shows: * users connected - table list of (IP address, time online, client software used to listen, buffer underruns) - other things that I'll have to look over the notes to REM. |
Quote:
|
Hey Zach,
I've just been told this module doesn't seem to appear in Firefox - are you are of that issue? Is it possible to make it compatible with the firebox browser? Cheers. |
my scrn shots are in firefox.
- Ill take a look @ the code and hit firefox forums and see if there are issues. Did you get any info on what player(s) they were trying to use? |
================================================== =====
Changelog | ================ 1.8 2.17.06 - Added XML cache + timer - Added AdminCP setting vs. edit the php file - Fixed "adv_portal_shoutcast" template - player popup. 1.7 12.25.05 - Killed auto create Module on Install AdminCP - :D https://vborg.vbsupport.ru/attachmen...chmentid=42956 |
What would "Page not found" be within the pop up players?
Click on a player icon no page found it saids in window. |
why is it that when i click on the players the pop up shows my index.php page insted of the player... thanks
|
All times are GMT. The time now is 10:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|