PDA


View Full Version : Module CMPS: Shoutcast Status Full


Zachariah
09-24-2005, 05:53 PM
Shoutcast Status Full 1.7 on your VB3.5 CMPS Module.

This is a Nice hack to add Shoutcast Status on your VB3.5.
Hope it helps !!! Zachariah @ http://www.szone.us

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

Old ver VB 3.0-3.0x Module CMPS: Shoutcast Status Full (http://www.vbulletin.org/forum/showthread.php?t=72570)


== 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

*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
Add: 1 plugins
Upload: 7 images
Add: 5 templates

=======================================================
Changelog |
================
1.6 11.29.05
- Fixed popup players - phase errors
- Added auto create Module on Install

1.5 08.31.05
- 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

1.2 - 02.22.05
- Added: DJ ICQ, DJ AIM, IRC Server and Room, 2 images
Edited: cleaned up code in templates and php file.

1.1 Fixed - 12.07.04
- shoutcast.php file to show offline if sever IP can not be reached.
To update replace shoutcast.php file.
=======================================================

If you choose not to show any/all:

Variables used.
Here is a list of variables that can be used in your "adv_portal_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

Zachariah
09-24-2005, 05:54 PM
Here are 3 images of the inline media players to tune in to your server.

There is a cosmetic bug / error not a operational bug. I have created this utilizing the collapsible table options. VB dose not allow 2 collapsible tables. While the server is online the built in module collapsible table does not operate. I have yet to read how to make a module w/o the default option of a collapsible table. When I know I’ll update it.

Have Fun !

FleaBag
10-01-2005, 08:49 PM
Have to admit, this is a fantastic module! I'm going to get Shoutcast up and running again tonight just to add this to my CMPS. :D

Thanks Harry, fantastic work.

EDIT: A couple of issues! It doesn't seem to be collapsible, and the Shoutcast template I see looks nothing like the one in your screenshots?

Zachariah
10-02-2005, 09:57 PM
Have to admit, this is a fantastic module! I'm going to get Shoutcast up and running again tonight just to add this to my CMPS. :D

Thanks Harry, fantastic work.

EDIT: A couple of issues! It doesn't seem to be collapsible, and the Shoutcast template I see looks nothing like the one in your screenshots?

I love it my self :cool:

Demo on my site (http://www.gzhq.net)
VB only allow 1 collapsible element command per table. VBA has a built in block element to allow each to collapse. This hack uses a collapsible element also. (in turn kills the main Block element). In this case vs. most of the time the shoutcast element on page refreash is "auto closed" and when you hit the button it expands.

Closed
http://www.vbadvanced.com/forum/attachment.php?attachmentid=1802

Expanded
http://www.vbadvanced.com/forum/attachment.php?attachmentid=1803

I will make a different Ver for a side block vs. center some day :rolleyes:

FleaBag
10-02-2005, 10:26 PM
Thanks Harry. How do I get links to use other players [media player, real, quicktime e.t.c.] like you have?

Zachariah
10-02-2005, 10:56 PM
Thanks Harry. How do I get links to use other players [media player, real, quicktime e.t.c.] like you have?

:confused: the templates are made when you import the product ? Got a link ?

od3m
10-03-2005, 11:51 AM
I got a problem with the collapsable box from vba... it appears, but sucks...

would you be so fine to take a look here: http://freakstyles.net .. seems to be a problem with this "module shell template"

maybe you can say more...

thanks all




od3m

Zachariah
10-03-2005, 12:22 PM
I got a problem with the collapsable box from vba... it appears, but sucks...

would you be so fine to take a look here: http://freakstyles.net .. seems to be a problem with this "module shell template"

maybe you can say more...

thanks all

od3m

Wow thats messed up. I mixed XML files. The hack has been updated.

od3m
10-03-2005, 12:38 PM
Can i just download the Hack again , and only update the .xml Product with "overwriting" ?

you think that should work ?

or do i have to deinstall the hack completely, and reinstall it ?!


thanks for fast support. great hack btw. ;)

FleaBag
10-03-2005, 06:00 PM
I thought the same... I had disabled the shell option - that's why I was complaining of no collapsible table. ;) I'll install update versions now...

EDIT: Still messed up for me... Uploaded the new module and overwrote the prouct XML [no collapsing working] and shell template seems messed up. Also images are pointing to forumtroot/images/image.img when it should be forumroot/images/misc/image.img.

od3m
10-04-2005, 03:39 AM
hi ... Just use Colspan in Module Options.. i fixed it like this... i was not sure if i could upload and overwrite the new xml... i´ll take a look later... after work ^^

cu

easyskillz
10-24-2005, 10:30 AM
Quote:
Originally Posted by FleaBag
Thanks Harry. How do I get links to use other players [media player, real, quicktime e.t.c.] like you have?

the templates are made when you import the product ? Got a link ?

So how do we get the other links to work guys ? "realplayer, windows media and quicktime" ?

thanks

Zachariah
10-25-2005, 01:30 AM
Can i just download the Hack again , and only update the .xml Product with "overwriting" ?

you think that should work ?

or do i have to deinstall the hack completely, and reinstall it ?!


thanks for fast support. great hack btw. ;)

That one you have is for the Forumhome. A mix of XML files. Re d/l replace. If this dont work try @ vb.org.

Diaego
11-06-2005, 02:49 PM
How easy would this be to port to 3.0.7 vbulletin boards?

Zachariah
11-11-2005, 10:35 AM
How easy would this be to port to 3.0.7 vbulletin boards?

Quote:
Old ver VB 3.0-3.0x Module CMPS: Shoutcast Status Full (http://www.vbulletin.org/forum/showthread.php?t=72570)

Sooner95
12-14-2005, 10:39 AM
Can this work if you use the Lite version? was trying to put one together myself, but I dont know how to get it to show the data, like what song is playing ect.

geoff
12-14-2005, 12:05 PM
this sounds really fun...thanks zachariah

blikos
12-19-2005, 07:41 PM
Great module! I just installed this and I am assuming that this script is what needs to be changed in order to get the realmedia, quicktime and media player working:

<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>
However, I can't seem to come up with a configuration that gets these players working. Can anyone share the answer? Thanks!

livedesi
12-30-2005, 04:14 AM
i installed it but cant see to get the players working

I also updates with the script above and i get this when i click media player

Parse error: syntax error, unexpected ')' in C:\forum\forums\modules\shoutcast.php(87) : eval()'d code on line 55

jazba
01-15-2006, 04:20 PM
I couldnt get the players to work either...

Also, how can we put the shoutcast on the forums/ page ? in the "Whats Going On?" category or even below the navigation on the forums page?

I installed it but it just seems to appear on the center block of index page?

Thanks.

---------------EDIT:------------
i installed the shoutcast full (not the CMPS) and it came up on the forums index page.. so now i have CMPS version for index page and the non CMPS version for forums page.
i hope this is the right solution to get the shoutcast status on both pages ?

Secondly, when clicking on any player except for winamp, i get the error:

Parse error: parse error, unexpected ')' in /home/dradio/public_html/vb/modules/shoutcast.php(92) : eval()'d code on line 33

each player gives a different line error but the error is the same... any idea?

livedesi
01-16-2006, 01:58 AM
It is made for the center block if you take it to the sides it will stretch the page. you will have to alter it majer code to take it to the side.

jazba
01-16-2006, 02:47 AM
did anyone get the players to work? nothing works except for winamp?

Zachariah
01-16-2006, 09:59 AM
Updated 1st Post.

I am working:
- on multi server support.
- on a Admin "stat page" that shows:
* users connected - table list of (IP address, time online, client software used to listen, buffer underruns)
- other things that I'll have to look over the notes to REM.

It will be a while there are many projects in the fire @ the moment.

jazba
01-16-2006, 01:52 PM
Zack, how about the other players that give the parse error ? You might want to add that in the to do list too :)

Zachariah
01-16-2006, 02:17 PM
Zack, how about the other players that give the parse error ? You might want to add that in the to do list too :)

No errors here:
http://www.gzhq.net/index.php?page=Hacks
- Lite and full Ver.
- What file name are you using for the CMPS ?

jazba
01-16-2006, 02:51 PM
Oh wait, i reinstalled the module today (didnt noticed it was updated)
works fine now, pretty neat !
I would suggest the following add on for future:

1> A request system where registered users can request songs (and can search)
2> A list on the left column with upcoming songs (requested list)

Great module Zack !! (Y)

H@K@N
04-21-2006, 06:10 AM
1> A request system where registered users can request songs (and can search)
2> A list on the left column with upcoming songs (requested list)


this would be a nice extension ...

Additionally, does somebody know, how i can open the Full Shoutcast by default, without hitting the collapse button ?

th@nks

JourneyDeep
07-14-2006, 03:44 PM
am I missing something here?

the install notes say:

=======================================================
vBa CMPS: Edit Module |
======================
Admincp => vBa CMPS => Edit Modules => Shoutcast

Change: Module Title from Shoutcast to whatever you want.

Change: Usergroups - Setings

Save

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

ok this is all fine, but where is the code to create the Shoutcast module, which you are supposed to edit? The module is not available. The install was running along fine until then. The shoutcast plug-in is listed under admincp>plug-ins.

wish someone would just make an offer to install it for us.

dj_deswab
07-29-2006, 12:54 AM
I had to change host for the second time, I have uploaded this hack as instructed, but it still shows that the server is down, how do I fix this? Check the link in my signature to see what I mean.

hades
08-31-2006, 03:33 PM
am I missing something here?

the install notes say:

=======================================================
vBa CMPS: Edit Module |
======================
Admincp => vBa CMPS => Edit Modules => Shoutcast

Change: Module Title from Shoutcast to whatever you want.

Change: Usergroups - Setings

Save

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

ok this is all fine, but where is the code to create the Shoutcast module, which you are supposed to edit? The module is not available. The install was running along fine until then. The shoutcast plug-in is listed under admincp>plug-ins.

wish someone would just make an offer to install it for us.



i agree, hey zack uhm u left out the install intruction, you need to go to add module not edit module, and when we go to add module what do we do?

what are the templates we add and stuff..

Crappy install instructions :(

murrtex
09-10-2006, 03:52 PM
it doent work on 3.6.0.. we r waiting upgrade

murrtex
09-10-2006, 04:00 PM
it doent work on 3.6.0.. we r waiting upgrade

dj_deswab
09-13-2006, 08:03 PM
It's working great for me since July and v3.6. Two things that I would like
#1. A way to add shoutcast within the forum.
#2. An auto refresh for the songs when they change.

murrtex
09-19-2006, 09:45 AM
yes it does dj deswab , but

I get this error top of my portal page....
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/vhosts/4umturk.com/httpdocs/forum/modules/shoutcast.php on line 48


what should I do?

easyskillz
10-12-2006, 08:20 AM
Zach Please get us a solution for the players ...

easyskillz
10-18-2006, 08:18 AM
to fix the players : edit the shoutcast template to point to your forum directory.

so just add /forums/ to the mp rp and mp lines in the adv_portal_shoutcast

exemple : function scastmp(){
scastmpWindow = window.open("/forums/index.php?do=mp","mp","width=360,height=75");

spikethecowboy
10-20-2006, 06:11 PM
Can someone tell me how to get this running?? The instructions like skip a few lines. Can someone please help.

spikethecowboy
10-23-2006, 06:31 PM
I guess this is a mute point now..

xsuaty
04-20-2007, 07:04 PM
i can't see any module file in zip so i can't see shoutcast module in edit modules..

so that i added a module with shoutcast.php it works. but only song name dj name. and a error under it
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/vhosts/4umturk.com/httpdocs/forum/modules/shoutcast.php on line 48

pls help me

v bulletin version is 3.6.5

angkor408
05-22-2007, 03:15 PM
Hi, where can I found all this information at? I follow this link below but doesn't that tell me the server name or IP address.

http://www.shoutcast.com/download/serve.phtml

// Shoutcast Server Stats
$scdef = "Server Name";
$scip = "0.0.0.0";
$scport = "8000";
$scpass = "tim123";
$ircsite = "irc.server.net";
//End configuration

angkor408
05-23-2007, 01:09 PM
where everybody?

silks
02-09-2008, 06:20 AM
when i got to Admincp => vBa CMPS => Edit Modules => Shoutcast

the shoutcast isnt there

add as a PHP file and it isnt listed - is there another way around this please

works fine on forum home

DarkFaCe
05-14-2008, 11:44 PM
thanks very nice

İnstalled

qbn720
10-12-2008, 08:04 PM
Are there going to be updates regarding this module for newer versions of vBulletin. I am currently using 3.7.3 and I didn't imagine there to be many different changes in an add-on feature but I guess there are, because it won't even show up in the vBa Edit Modules area. LOL. So if you guys could let me know if there will be or if you guys are currently working on something that would be a great help.

Semere
10-15-2008, 11:11 PM
this would be a nice extension ...

Additionally, does somebody know, how i can open the Full Shoutcast by default, without hitting the collapse button ?

th@nks


Yeah kind of an old post but how do you get this module to be expanded at first sight?

Semere

Semere
10-16-2008, 03:18 AM
Offending Piece of code seems to be:
Find:
<tbody id="collapseobj_forumhome_shoutcast" style="display: none;">
Replace With:
<tbody id="collapseobj_forumhome_shoutcast" style="">

Don't ask me but it worked and I am not gonna complain