Go Back   SZONE.US Forums > Do it yourself (DIY) > Web Tips > vBulletin > vBulletin 3.6x / 3.8x

vBulletin 3.6x / 3.8x Modules, Hacks, & Modifications

[vB 3.6.x] Shoutcast Status 2.0

Views:16990
Reply
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average.
  #1  
Unread 05.13.07, 01:15 PM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
[vB 3.6.x] Shoutcast Status 2.0

Shoutcast Status 2.0 on your VB3.6 ForumHome.

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


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

SHOUTcast | Free internet radio!

Zerro Queries Added

Demo

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

vBulletin 3.6+
SHOUTcast Server v1.9.5

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

== 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
Attached Images
File Type: jpg admin.jpg (77.9 KB, 1562 views)
File Type: jpg history.jpg (44.9 KB, 580 views)
File Type: jpg mp.jpg (11.6 KB, 273 views)
File Type: gif offline.gif (13.1 KB, 394 views)
File Type: jpg qt.jpg (8.7 KB, 242 views)
File Type: jpg real.jpg (17.9 KB, 425 views)
File Type: jpg stats.jpg (15.4 KB, 531 views)
Attached Files
File Type: zip scast_vb36_2.zip (17.1 KB, 960 views)
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #2  
Unread 05.13.07, 01:17 PM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
================================================== =====
Changelog |
================
2.0
11.15.06

- Merged shoutcast lite and full into 1 program
** If you do not have an admin password for your shoutcast server you can get limited information from the server "lite".

- Stats and History moved
** There was a need to hit collapsible +/- image to show song history and server stats. This has been moved to a 2 vbmenus as a click dropdown.

- Show Off Line Status
** Set to "No" to remove off line template when the shoutcast server is off line, or there is no DJ source

- Select what usergroups can see the add-on
- Fully phrased
- Cleaned up code in templates
- Changed and added templates.

v1.9

9.06.06
- Moved body of hack to: /includes/shoutcast/scast.php vs. in datastore.
- added 2 templates: forumhome_shoutcast_who, forumhome_shoutcast_who_off
- popup player url from index.php to $vboptions[forumhome].php
- Locations:
  • Above Header
  • Below Header
  • Under Navbar
  • Above What's going on
  • Inside What's going on
  • Below What's going on
  • Custom

Select "Custom" and place $scast in FORUMHOME template for custom location.

Upgrade:
** You may need to revert forumhome_shoutcast, forumhome_shoutcast_off
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #3  
Unread 05.13.07, 01:17 PM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
Quote:
Originally Posted by ANARCH¥
not a real problem, but only 9 song appear in list of "last 19 songs":


there is a way to solve that ?
ah, an other question ... i have 19 DJ's ... there is a way to show who is the DJ ?
- sc_sevr.ini (on the shoutcast server)

This is the "Boss in Charge" of what feeds to the XML files.

Code:
; ShowLastSongs specifies how many songs to list in the /played.html
; page.  The default is 10.  Acceptable entries are 1 to 20.
ShowLastSongs=20
If you can not change it you can remove the $song[9] - $song[18] from the "forumhome_shoutcast" template.

$servertitle = "Discription" - setting in DJ - DSP (I used for DJ Name).

If you choose not to show any/all:

Variables used.
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
$peaklisteners = Most Ever
$content = Media Type
$streamhits = Hit Count

Name:  source[1].jpg
Views: 2144
Size:  13.0 KB
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #4  
Unread 05.13.07, 01:18 PM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
Bandwith Thoughts

Most people pay for a shoutcast service, co-locate a server, host small servers on their local cable / dsl modem, or install via SSH to their web host.

Make sure you have Unlimited Bandwith on your web package.

The bandwith useage depends on "# of users connected" and the quility of the song in kbps.

uploadspeed / bitrate = max listeners , always leave some for overhead

Example: 256k upload speed / 56k bitrate = max 4 listeners ( 4* 56 = 224kbps ) keep in mind that your provider says he gives you 256kbps upload, the actual speed might be much lower.

Bitrates
192k CD quility
56k stereo
24k mono (like an AM radio, but works for music)
8k voice
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #5  
Unread 05.13.07, 01:20 PM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
HELP !! I Install the hack and I am always off line


CHMOD 666 scast_home.xml
- This file should be in the root of the forums folder. ($vboptions[bburl])

/forums/scast_home.xml - The vBulletin install folder.

To put less load on the shoutcast server and to speed up page loads. The shoutcast info the script gets is cached to your local webserver in that XML file. The XML file is called up when a request to show the data. If your cache file does not update then you are not connecting to the shoutcast server.

9 out of 10 times this is because of settings (port,ip,password) or your webhost has blocked ports. Many hosts only allow queries for data on port 80 (http, rss, xml feeds). I have seen many webhosts designate a port for "other" needs of their clients.

If you are 100% sure your setting and install is correct.

Send a ticket to your webhost and see if ports are blocked (ie:8000). If so they may give you another port you can use. Reset your shoutcast server to output on that port. Lastly, if there is nothing that your host will do, you can move the shoutcast server to output on port 80 vs. 8000.
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #6  
Unread 05.16.07, 10:31 PM
zeuxxx zeuxxx is offline
Junior Member
 
Join Date: 05.07
Posts: 5
Hi, How can I add Shoutcast Status 2.0 in all pages forum?
Thanks in advance
Reply With Quote
  #7  
Unread 05.17.07, 10:22 AM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
QUESTION:
Hi, How can I add Shoutcast Status 2.0 to all pages in the forum?

ANSWER

There is a few things that must be done.

1)
AdminCP => Plugins & Products => Plugin Manager
- Shoutcast Status Full - Main

Edit and move this plugin to hook location:
- parse_templates

2)
Edit:
forums\includes\shoutcast\cache_templates.php

Hash out line 2 and line 13
Code:
//if (THIS_SCRIPT == 'index'){ 

//}
3)
AdminCP = > vBulletin Options => Shoutcast Forumhome
- Location
-- Select: Custom

You can edit navbar, header, or footer (a template that shows on every page)
- place $scast where you want the display to be
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #8  
Unread 05.19.07, 03:44 PM
zeuxxx zeuxxx is offline
Junior Member
 
Join Date: 05.07
Posts: 5
thanks, it works
Reply With Quote
  #9  
Unread 05.23.07, 03:55 PM
zep zep is offline
Junior Member
 
Join Date: 05.07
Posts: 4
ive tried to install it but it gives my site some kind of error.. ive tried to CHMOD 777 it but my friend says it can only be done on a linux server..

im new at this.. any help on how i can do that step by step? would really be of some help.. thank you

this is what my site looks like after

Warning: Unknown(D:\inetpub\vhosts\torontonissan.ca\httpdoc s\forums/includes/shoutcast/cache_templates.php): failed to open stream: No such file or directory in \global.php(341) : eval()'d code on line 57

Fatal error: (null)(): Failed opening required 'D:\inetpub\vhosts\torontonissan.ca\httpdocs\forum s/includes/shoutcast/cache_templates.php' (include_path='.;./includes;./pear') in D:\inetpub\vhosts\torontonissan.ca\httpdocs\forums \global.php(341) : eval()'d code on line 57
Reply With Quote
  #10  
Unread 05.23.07, 06:32 PM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
Quote:
Originally Posted by zep View Post
ive tried to install it but it gives my site some kind of error.. ive tried to CHMOD 777 it but my friend says it can only be done on a linux server..
I understand, I develop on a windows box.
Do not worry about CHMOD.

In the zip build.

product-shoutcast_home_full.xml
install.txt
- upload
-- scast_home.xml
-- includes
---- shoutcast
------ scast.php
------ cache_templates.php
-- images
---- misc
-------- shoutcast_off.gif
-------- radio.gif
-------- im_winmp.gif
-------- im_real.gif
-------- im_qt.gif
-------- im_mirc.gif
-------- im_genre.gif

When you upload the files to your web server you want to keep the folder structure in tact.

Everything in the "upload" folder will be placed in the root of your vBulletin install.

D:\inetpub\vhosts\torontonissan.ca\httpdocs\forums

/forums/scast_home.xml

The forums/includes/shoutcast folder will be made and the php files uploaded.

The images by default will upload where the default style is installed. /forums/images/misc/. If you have a custom style with a different location then upload the images to the custom /images/misc/.

$stylevar[imgdir_misc] - style_location/images/misc
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
Reply

Tags
36x, shoutcast, status

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone PHP Shoutcast Status Zachariah Boren Standalone 53 08.27.12 10:14 AM
ISS Status Report: SS07-33 @NASA N.A.S.A. 0 07.06.07 04:01 PM
ISS Status Report: SS07-32 @NASA N.A.S.A. 0 06.29.07 03:02 PM
ISS Status Report: SS07-31 @NASA N.A.S.A. 0 06.11.07 10:50 AM
ISS Status Report: SS07-28 @NASA N.A.S.A. 0 06.08.07 08:14 AM


All times are GMT -8. The time now is 11:57 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright ©2007 - 20017 SZONE.US All rights reserved
You Rated this Thread: