Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Shoutcast Status 2.0 (3.5) Details »»
Shoutcast Status 2.0 (3.5)
Version: 2.0, by Zachariah Zachariah is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.5.6 Rating:
Released: 08-14-2005 Last Update: 11-17-2006 Installs: 122
Uses Plugins Template Edits
Additional Files  
No support by the author.

Shoutcast Status 2.0 on your VB3.5 ForumHome.

/* ----------------- 11/15/2006 -----------------
This is a Nice hack to add Shoutcast Status on your VB3.5 ForumHome.
Hope it helps !!!

Zachariah @ http://www.gzhq.net

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

http://www.shoutcast.com

Zerro Queries Added

================================================== =====
Tested On:

vBulletin 3.5+
SHOUTcast Server v1.9.5

DEMO
================================================== =====

== Install: 2-5 min ==


Full Stats
- Needs Shoutcast server admin password

Server Name
Song History
4 media layers (winamp, quicktime, media player, real player)
DJ Name
Bitrate
Current Song
Media Type
Most Ever Connected
Hit Count
Users Connected
Avj. Connect Time
User Max
Online / Offline status
XML Data Cache


Lite Stats
- Does not need shoutcast server admin password

Server Name
4 media layers (winamp, quicktime, media player, real player)
Bitrate
Current Song
Users Connected
User Max
Online / Offline status
XML Data Cache

================================================== =====
Adds: 2 plugins
Adds: 8 images, 2 files
Adds: 10 templates
Adds: 45 phrases


shoutcast full 3.5.zip (13.7 KB, 683 downloads)

Show Your Support

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

Comments
  #222  
Old 03-16-2006, 11:13 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 Orcun
Where will I add this info ?

The plugin at the forumhome hook also grab those values from $vbulletin_options -> etc.

Sorry but I didn't understand what u mean.

$scdef = $vbulletin->options['scname_full'];
$scip = $vbulletin->options['scip_full'];
$scport = $vbulletin->options['scport_full'];
$scpass = $vbulletin->options['scpass_full'];
$ircsite = $vbulletin->options['scirc_full'];
$file = $vbulletin->options['scxml_full'];
$cache_tolerance = $vbulletin->options['scupdate_full'];

Options are grabbed by plugin. What else ?
Admincp => vBulletin Options => Shoutcast Full - Forumhome

https://vborg.vbsupport.ru/attachmen...6&d=1140276425
Reply With Quote
  #223  
Old 03-17-2006, 03:01 PM
nestoras's Avatar
nestoras nestoras is offline
 
Join Date: Aug 2005
Location: Greece
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have just installthis hack!
i put everything right!
my server is up
but in forum says that is down!what can be wrong?
Reply With Quote
  #224  
Old 03-23-2006, 02:22 AM
HHU HHU is offline
 
Join Date: Sep 2005
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm unable to get this to display on my forum home template?

Uploaded the images, installed the product-shoutcast_home_full.xml and uploaded the other xml to my server, which I'm not sure if I'm supposed to install or not, but when I do try it states "
XML Error: not well-formed (invalid token) at Line 1"

But nothing is displaying on my Forumhome, no drop down box or anything at all regarding this hack?

Everything is installed correctly though.... thanks
Reply With Quote
  #225  
Old 03-24-2006, 03:52 PM
mpadc mpadc is offline
 
Join Date: Apr 2003
Location: Year 4512
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is in forumhome_shoutcast templates

but i dont see the variables being displayed i.;e most listenrs and all it dont show up

what im doing wrong?

<script type="text/javascript">
function scastmp(){
scastmpWindow = window.open("index.php?do=mp","mp","width=360,heig ht=75");
}
function scastrp(){
scastrpWindow = window.open("index.php?do=rp","rp","width=420,heig ht=160");
}
function scastqt(){
scastqtWindow = window.open("index.php?do=qt","qt","width=330,heig ht=50");
}
</script>
<tbody>
<tr >
<td class="thead" 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_thead$vbcollapse[collapseimg_forumhome_shoutcast].gif" alt="" border="0" /></a>
<div ><b>$scdef: $servertitle ($currentlisteners/$maxlisteners @ $bitrate kbs)</b></div>
</td>
</tr>
</tbody>
<td rowspan="3" class="alt2" align="center"><img src="$stylevar[imgdir_misc]/radio.gif" alt="$scdef: $servertitle ($currentlisteners/$maxlisteners @ $bitrate kbs)" /></td>
<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="50%" class="alt2" ><b>Now Playing:</b></td>
</tr>
<tr >
<td width="50%" style="padding-left: 5px><a href=" colspan="2" class="smallfont">
<img src="$stylevar[imgdir_misc]/im_winamp.gif" alt="Listen w/ Winamp" border="0" hspace="2" /><a href="$listenamp">Winamp</a>
<img src="$stylevar[imgdir_misc]/im_real.gif" alt="Listen w/ Realplayer" border="0" hspace="2" /><a href="javascript:scastrp()">Real</a>
<img src="$stylevar[imgdir_misc]/im_winmp.gif" alt="Listen w/ Media Player" border="0" hspace="2" /><a href="javascript:scastmp()">Media</a>
<a href="javascript:scastqt()"><img src="$stylevar[imgdir_misc]/im_qt.gif" alt="Listen w/ Quicktime" border="0" hspace="2" /></a>
<a href="javascript:scastqt()">Quicktime</a>
</td>
<td width="50%" 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="50%" 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>
Reply With Quote
  #226  
Old 03-24-2006, 06:43 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you hit the "collapse / expand" image on the table ?
- $streamhits is what your looking for
Reply With Quote
  #227  
Old 03-24-2006, 08:03 PM
HHU HHU is offline
 
Join Date: Sep 2005
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Zach.... did you manage to figure out what the issue was or should I just go delete that admin account, beacuse it's installed correctly but definately not showing up
Reply With Quote
  #228  
Old 03-30-2006, 09:44 AM
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Location: Scotland
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it doesn't work for me.... i tried diffrent shoutcast address but every time it just shows the shoutcast server is offline....
Reply With Quote
  #229  
Old 03-30-2006, 10:03 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is your server running a firewall?
Do you have the port open Shoutcast uses?
Can you connect to shoutcast ok?
Do you have the correct details within the shoutcast settings in admincp?

Laters

Quote:
Originally Posted by unitedpunjab
it doesn't work for me.... i tried diffrent shoutcast address but every time it just shows the shoutcast server is offline....
Reply With Quote
  #230  
Old 03-30-2006, 10:25 AM
unitedpunjab unitedpunjab is offline
 
Join Date: Feb 2006
Location: Scotland
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
Is your server running a firewall?
Do you have the port open Shoutcast uses?
Can you connect to shoutcast ok?
Do you have the correct details within the shoutcast settings in admincp?

Laters
I was tryin a a free online streaming radio. it work fine in my winamp, media player. even it work fine when i use the link in the forum using Any media BB code. i mean it is playing fine everywhere else....don't knw watz wrng wid it. please help me out.
Reply With Quote
  #231  
Old 04-08-2006, 02:57 AM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not updated the main package yet. :tired: :cross-eyed:

Bug fix
Hook Location : forumhome_complete
Shoutcast Status Full - Main

Find:
Code:
$averagemin = round($averagetime/60,2);
Replace:
Code:
$averagemin = "";
$hours = intval(intval($averagetime) / 3600); 
$averagemin .= ($padHours) ? str_pad($hours, 2, "0", STR_PAD_LEFT) : $hours. 'h&nbsp;';
$minutes = intval(($averagetime / 60) % 60); 
$averagemin .= str_pad($minutes, 2, "0", STR_PAD_LEFT). 'm&nbsp;';
$seconds = intval($averagetime % 60). 's'; 
$averagemin .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
Output:

- Changes
Avj. Time: 533.03

- To
Avj. Time: 8h 53m 2s
Reply With Quote
Reply


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 12:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05463 seconds
  • Memory Usage 2,324KB
  • 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
  • (3)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
  • (2)pagenav_pagelinkrel
  • (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