Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Module CMPS: Shoutcast Status Full Details »»
Module CMPS: Shoutcast Status Full
Version: 1.8, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 08-30-2005 Last Update: 02-16-2006 Installs: 34
DB Changes Template Edits
Additional Files  
No support by the author.

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:
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.).

This script pulls the XML data from a shoutcast server.
http://www.shoutcast.com/download/serve.phtml
(this hack requires a password form the shoutcast admin to pull stream information.)
Quote:
Old ver VB 3.0-3.0x Module CMPS: Shoutcast Status Full
================================================== =====
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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-30-2005, 07:25 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Diaego
Just installed - but now the Shoutcast box doesn't seem to show up at all on the front page!
Correct:
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.
Reply With Quote
  #23  
Old 11-30-2005, 07:32 PM
Diaego Diaego is offline
 
Join Date: Oct 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
Correct:
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.
ah my bad!

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!
Reply With Quote
  #24  
Old 11-30-2005, 07:54 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Diaego
ah my bad!

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!
- There was a template that was not removed from the old install. adv_portal_shoutcast

Replace w/:
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<script type="text/javascript">
function scastmp(){
scastmpWindow = window.open("index.php?do=mp","mp","width=360,height=75");
}
function scastrp(){
scastrpWindow = window.open("index.php?do=rp","rp","width=420,height=160");
}
function scastqt(){
scastqtWindow = window.open("index.php?do=qt","qt","width=330,height=50");
}
</script>
<tbody> 
<tr > 
<td class="tcat" width="100%" colspan="6"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_shoutcast')"> 
<img id="collapseimg_forumhome_shoutcast" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapse_tcat_shoutcast].gif" alt="" border="0" /></a> 
<div><span class="smallfont"><strong>$vba_style[portal_blockbullet] $scdef: $servertitle ($currentlisteners/$maxlisteners @ $bitrate kbs)</strong></span></div> 
</td> 
</tr> 
</tbody> 
<td valign="top" align="left" class="alt1"> 
<table border="0" cellpadding="1" cellspacing="0" width="100%"> 
<tr > 
<td class="alt2" ><b>Tune-In:</b></td> 
<td width="5" > </td> 
<td width="60%" class="alt2" ><b>Now Playing:</b></td> 
</tr> 
<tr > 
<td style="padding-left: 5px><a href=" colspan="2" class="smallfont" align="center"> 
<a href="$listenamp">
<img src="$stylevar[imgdir_misc]/im_winamp.gif" alt="Listen w/ Winamp" border="0" hspace="0" /></a> 
<a href="javascript:scastrp()">
<img src="$stylevar[imgdir_misc]/im_real.gif" alt="Listen w/ Realplayer" border="0" hspace="5" /></a>
<a href="javascript:scastmp()">
<img src="$stylevar[imgdir_misc]/im_winmp.gif" alt="Listen w/ Media Player" border="0" hspace="5" /></a> 
<a href="javascript:scastqt()">
<img src="$stylevar[imgdir_misc]/im_qt.gif" alt="Listen w/ Quicktime" border="0" hspace="0" /></a> 
</td> 
<td width="60%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0]</marquee></tt></td> 
</tr> 

<tbody id="collapseobj_forumhome_shoutcast" style="display: none;"> 
<tr> 
<td width="100%" colspan="3"> </td> 
</tr> 
<tr > 
<td class="alt2" ><b>Stream Info:</b></td> 
<td width="5"> </td> 
<td width="60%" class="alt2" align="left"><b>Last 19 Songs:</b> 
</td> 
</tr> 
<tr > 
<td valign="top" rowspan="4" style="padding-left: 5px" colspan="2" class="smallfont"> 
<div >Most Ever: <b>$peaklisteners</b><br />Current Listening: <b>$currentlisteners/$maxlisteners</b><br />Speed: <b>$bitrate</b> kbs<br />Media Type: <b>$content</b><br />Hit Count: <b>$streamhits</b><br />Avj. Time: <b>$averagemin</b></div> 
<br /><hr width="90%" size="1"> 
<img src="$stylevar[imgdir_misc]/im_genre.gif" alt="Genre" /> $servergenre<br /><img src="$stylevar[imgdir_misc]/im_icq.gif" alt="ICQ the DJ" /> $icq<br /><img src="$stylevar[imgdir_misc]/im_aim.gif" alt="AIM the DJ" /> $aim<br /><img src="$stylevar[imgdir_misc]/im_mirc.gif" alt="IRC Chat with the DJ" /> <a href="$irclink">$ircsite</a> : #$irc<br /> 
</td> 
</tr> 
<tr > 
<td valign="top" rowspan="5" style="padding-left: 5px" class="smallfont"><div ><tt>+ $song[1]<br />+ $song[2]<br />+ $song[3]<br />+ $song[4]<br />+ $song[5]<br />+ $song[6]<br />+ $song[7]<br />+ $song[8]<br />+ $song[9]<br />+ $song[10]<br />+ $song[11]<br />+ $song[12]<br />+ $song[13]<br />+ $song[14]<br />+ $song[15]<br />+ $song[16]<br />+ $song[17]<br />+ $song[18]<br />+ $song[19]</tt></div> 
</td> 
</tr> 
</table> 
</td> 
</tr> 
</tbody>
</table>
<br />
Also make sure that the Old Module was DELed.

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
Clean File Output: No
Use Module Shell Template: No

REM : Replace your php file on your server.
Reply With Quote
  #25  
Old 11-30-2005, 09:19 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:| where did you go
Reply With Quote
  #26  
Old 12-01-2005, 02:49 AM
Diaego Diaego is offline
 
Join Date: Oct 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
:| where did you go
hehe sorry! Will give this a go now... By the way, Zachariah - do you have a PayPal account? If you can you PM me your username
Reply With Quote
  #27  
Old 12-01-2005, 03:04 AM
Diaego Diaego is offline
 
Join Date: Oct 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #28  
Old 12-01-2005, 03:23 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Diaego
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)
Yes Sir,

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 ?
Reply With Quote
  #29  
Old 12-01-2005, 03:29 AM
Diaego Diaego is offline
 
Join Date: Oct 2005
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachariah
Yes Sir,

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 ?
Basically, we have a DNS - broadband.eve-radio.com which will randomly send the user to one of the 4 IPs.

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 :-)
Reply With Quote
  #30  
Old 12-01-2005, 03:35 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Diaego
Basically, we have a DNS - broadband.eve-radio.com which will randomly send the user to one of the 4 IPs.

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 :-)
Got ya. that is not a big problem at all.

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.
Reply With Quote
  #31  
Old 12-26-2005, 01:06 AM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:38 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
  • Page Generation 0.09426 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete