Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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

Version: 3.0.13 Rating:
Released: 02-22-2005 Last Update: 02-24-2006 Installs: 41
Template Edits
Code Changes Additional Files  
No support by the author.

Shoutcast Status Full 1.8 on your VB3.x Forum Home.

DEMO: http://www.gzhq.net/forums/index.php?

/* -----------------8/27/2005 6:23pm-----------------
This is a Nice hack to add Shoutcast Status on your VB3.X Forum Home.
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

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

================================================== =====

Edit: 1 template
Upload: 8 images, 2 files
Add: 5 templates


Tested On:
vBulletin v3.0.13
SHOUTcast Server v1.9.5
================================================== =====

Quote:
There are 4 types of this script here on vb.org:

1) CMPS: Shoutcast Status Lite
2) CMPS: Shoutcast Status Full
3) Shoutcast Status Lite (forum home)
4) Shoutcast Status Full (forum home)
-------------------------------------------------------*/
Variables used.
================================================== =====
If you choose not to show any/all:
Here is a list of variables that can be used in your "forumhome_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

================================================== =====
Changelog |
================
1.8 2.17.06
- Added XML cache + timer

1.6
- Fixed Media Player in non IE browsers
- Fixed Real Player in non IE browsers

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
- Added Template Installer

Show Your Support

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

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

Found it Sir.

I have many plans for this hack. soon.
Reply With Quote
  #63  
Old 12-10-2005, 01:44 PM
xfaethorx's Avatar
xfaethorx xfaethorx is offline
 
Join Date: May 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one! I'll get this version installed . Is there a CPMS version of this one by any chances

*ducks *
Reply With Quote
  #64  
Old 12-10-2005, 05:09 PM
xfaethorx's Avatar
xfaethorx xfaethorx is offline
 
Join Date: May 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sokay i edited the old one to support the new features.
Reply With Quote
  #65  
Old 12-23-2005, 01:24 AM
b65ran b65ran is offline
 
Join Date: Apr 2005
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice modification. I just installed it today. But I got one problem. Media player doesn't work with firefox. Anybody has any idea what I should do to fix this. Thanks in advanced.
Reply With Quote
  #66  
Old 12-23-2005, 04:22 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 b65ran
Nice modification. I just installed it today. But I got one problem. Media player doesn't work with firefox. Anybody has any idea what I should do to fix this. Thanks in advanced.
I need to find some sound code on the players that asks the "guest" that tunes in to to install if not installed. At the moment if the player is not installed Red X.

I'll read up some more for it to work cross browser.
Reply With Quote
  #67  
Old 12-26-2005, 10:29 PM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, i just seem to get a blank page when i "require_once(./scast.php); any idea's?
Reply With Quote
  #68  
Old 12-26-2005, 10:47 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 make the template edit to the FORUMHOME ?
Reply With Quote
  #69  
Old 12-27-2005, 05:47 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i added the templates to precache in index.php and included require_once scast.php and i added $scast to FORUMHOME yes
Reply With Quote
  #70  
Old 12-28-2005, 12:06 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
// Parses shoutcasts xml to make an effective stats thing for any website
$scfp = @fsockopen($scip$scport, &$errno, &$errstr1);

if(!
$scfp) {
eval(
'$scast = "' fetch_template('forumhome_shoutcast_off') . '";');

}else{
if(
$scsuccs!=1){
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!
feof($scfp)) {
  
$page .= fgets($scfp1000);
}

i was wondering if this piece of code is correct (i suppose it is, but just dubbelchecking). Could the shoutcast parameter "cleanxml=yes" ++++ this up?
Reply With Quote
  #71  
Old 12-28-2005, 12:53 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, zachariah

i just found out that the scast.php file you included in the zip here isn't closed with a "?>" php tag. adding that at the bottom of the file doesn't really help... Could you plz check that file out for further errors?
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 11:28 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.05555 seconds
  • Memory Usage 2,312KB
  • 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
  • (1)bbcode_php
  • (2)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