vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Module CMPS: Shoutcast Status Full (https://vborg.vbsupport.ru/showthread.php?t=95394)

Zachariah 11-30-2005 07:25 PM

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.

Diaego 11-30-2005 07:32 PM

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! :(

Zachariah 11-30-2005 07:54 PM

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.

Zachariah 11-30-2005 09:19 PM

:| where did you go

Diaego 12-01-2005 02:49 AM

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

Diaego 12-01-2005 03:04 AM

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)

Zachariah 12-01-2005 03:23 AM

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 ?

Diaego 12-01-2005 03:29 AM

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

Zachariah 12-01-2005 03:35 AM

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.

Rhoads 12-26-2005 01:06 AM

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


All times are GMT. The time now is 12:50 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.01120 seconds
  • Memory Usage 1,765KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete