Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Module CMPS: Shoutcast Status Full Details »
Module CMPS: Shoutcast Status Full
Mod Version: 1.2, by Zachariah (Coder/Designer) Zachariah is offline
Developer Last Online: Sep 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 29
Released: 06 Dec 2004 Last Update: 28 Nov 2005 Downloads: 149
Supported  

/* -----------------12/06/2004 10:45AM-----------------
Shoutcast Status Full 1.2 - CMPS Module

This is a Module for CMPS to place Shoutcast Status in a block. :alien:

Hope it helps !!! Zack - http://www.gzhq.net

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)

This script pulls the XML data from a shoutcast server.
http://www.shoutcast.com/download/serve.phtml
CREDITS:
GeZuS P - for giving me a leg up on some code.

(this hack requires a password form the shoutcast admin to pull stream information.) --- Module CMPS: Shoutcast Status Lite does not need one.


=======================================================
NEEDED To Install:

vBadvanced CMPS
http://www.vbulletin.org/forum/showthread.php?t=65797
Coded by: Tigga
=======================================================

Add: 2 templates
Upload: 4 images, 1 php file

Note: This Module with it's current template layout was designed as a center block.
--------------------------------------------------*/

== Install: 2-5 min ==

Server Name
Last 5 songs
DJ Name
DJ ICQ
DJ AIM
Bitrate
Current Song
Users Connected
User Max
IRC Server and Room
Online / Offline status
--------------------------------------------------*/
- Something that came to mind. You can take this add-on and rename the shoutcast.php file to say "shoutcast1.php, shoutcast2.php, etc." and make multi-blocks to get feeds from different servers. They all can use the same templates.


Changelog:
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
$listenlink = 'http://$scip:$scport/listen.pls

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	online.gif
Views:	540
Size:	7.8 KB
ID:	24212   Click image for larger version

Name:	offline.gif
Views:	320
Size:	5.6 KB
ID:	24213  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Module CMPS: Shoutcast Status Lite (VB3.5) Zachariah vBulletin 3.5 Add-ons 12 07 Jan 2010 17:55
Module CMPS: Shoutcast Status Full Zachariah vBulletin 3.5 Add-ons 61 15 Jul 2007 04:54
Module CMPS: Shoutcast Status Lite Zachariah vBulletin 3.0 Full Releases 26 01 Jun 2005 15:45

Comments
  #2  
Old 06 Dec 2004, 20:18
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
awesome! my board really needs this. great work!

*clicks install*
Reply With Quote
  #3  
Old 06 Dec 2004, 21:13
Hades-1 Hades-1 is offline
 
Join Date: May 2004
this is goddamn awsome but i need a version for regular Vbulletin
Reply With Quote
  #4  
Old 06 Dec 2004, 21:23
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Originally Posted by Hades-1
this is goddamn awsome but i need a version for regular Vbulletin

I'll work on it it should not be hard, give me a day or so. I got to paint a bedroom. :tired:

Do you think on a diff. page or on the forumhome? ideas ?
__________________
http://www.szone.us |

Facebook | My:Hacks @ vBulletin.org

Last edited by Zachariah; 06 Dec 2004 at 21:26.
Reply With Quote
  #5  
Old 06 Dec 2004, 21:58
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
harry - i'm not sure if this is unique to me, but if shoutcast is turned off (deactivated) from the server, the page with the shoutcast module goes haywire and shows basically warning messages.
Reply With Quote
  #6  
Old 06 Dec 2004, 22:01
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
http://www.gzhq.net/index.php?id=shoutcast => Off state

got a link ?
__________________
http://www.szone.us |

Facebook | My:Hacks @ vBulletin.org
Reply With Quote
  #7  
Old 07 Dec 2004, 00:34
Hades-1 Hades-1 is offline
 
Join Date: May 2004
Originally Posted by HarryButt
I'll work on it it should not be hard, give me a day or so. I got to paint a bedroom. :tired:

Do you think on a diff. page or on the forumhome? ideas ?
yeah maybe at the bottom of forum home would look nice.

in a little 150 wide box or something
Reply With Quote
  #8  
Old 07 Dec 2004, 01:47
lasto lasto is offline
 
Join Date: Jan 2002
Originally Posted by yinyang
harry - i'm not sure if this is unique to me, but if shoutcast is turned off (deactivated) from the server, the page with the shoutcast module goes haywire and shows basically warning messages.
not just u m8 same happens to me

i get thousands of these appearing and page takes forever to load + it never gets to load the page because the errors keep on comming and coming so u deffo not on your own.

Warning: feof(): supplied argument is not a valid stream resource (pathname)
Reply With Quote
  #9  
Old 07 Dec 2004, 01:57
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Originally Posted by lasto, yinyang
Warning: feof(): supplied argument is not a valid stream resource (pathname)

There is a step in the install that was over looked.


Edit shoutcast.php
- Change values with in the "quotes" to your shoutcast server settings.

//Configuration
$scdef = "Server Name"; // Default station name
$scip = "0.0.0.0"; // ip or url of shoutcast server
$scport = "8000"; // port of shoutcast server
$scpass = "changeme"; // password to shoutcast server
$maxusers = "???"; // max users for your server
//End configuration

Save.
__________________
http://www.szone.us |

Facebook | My:Hacks @ vBulletin.org

Last edited by Zachariah; 07 Dec 2004 at 02:14.
Reply With Quote
  #10  
Old 07 Dec 2004, 03:27
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Originally Posted by lasto
not just u m8 same happens to me

i get thousands of these appearing and page takes forever to load + it never gets to load the page because the errors keep on comming and coming so u deffo not on your own.

Warning: feof(): supplied argument is not a valid stream resource (pathname)
sorry harry, no link as i've disabled it for now. but it works beautiful when the thing was on, but i'm having the same problem as lasto.
Reply With Quote
  #11  
Old 07 Dec 2004, 04:07
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
If there is no server for the script to interact with it will error. I'll have to look @ <if> no server <then> show template.

If your shoutcast server is on-line but no one is DJing it will show off line status. If the server is shut off it errors.
__________________
http://www.szone.us |

Facebook | My:Hacks @ vBulletin.org
Reply With Quote
  #12  
Old 07 Dec 2004, 09:06
lasto lasto is offline
 
Join Date: Jan 2002
yep its the errors when the server is off thats causeing the problems

Imagine this - your ip changes from the one in your config file and u not updated it) now people on your board will be getting that error until u return and fix it and with the amount of errors it throws up i cant see anyone sitting there watching screens of the same error code.
Not knocking your hack m8 just saying its needs a backup just in case it cant connect.
Reply With Quote
  #13  
Old 07 Dec 2004, 14:23
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
ya, I am reading up on If no fsockopen connect then offline template. I almost got it done.
__________________
http://www.szone.us |

Facebook | My:Hacks @ vBulletin.org
Reply With Quote
  #14  
Old 07 Dec 2004, 17:44
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Originally Posted by lasto
yep its the errors when the server is off thats causeing the problems

Imagine this - your ip changes from the one in your config file and u not updated it) now people on your board will be getting that error until u return and fix it and with the amount of errors it throws up i cant see anyone sitting there watching screens of the same error code.
Not knocking your hack m8 just saying its needs a backup just in case it cant connect.

1.1 Fixed
- shoutcast.php file to show offline if sever IP can not be reached.

To update replace shoutcast.php file.
__________________
http://www.szone.us |

Facebook | My:Hacks @ vBulletin.org
Reply With Quote
  #15  
Old 07 Dec 2004, 20:13
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
good going harrybutt. it works beautifully now.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 11:55.

Layout Options | Width: Wide Color: