vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Shoutcast Status 2.0 (3.5) (https://vborg.vbsupport.ru/showthread.php?t=94336)

Zachariah 08-14-2005 10:00 PM

Shoutcast Status 2.0 (3.5)
 
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)

Blam Forumz 08-15-2005 11:33 AM

Can this be integrated into vBAdvanced?

Zachariah 08-15-2005 11:38 AM

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

1.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:
Please choose the way your images should be displayed on the forum home.

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.



1.8 2.18.06
- Added XML cache + timer
- Added AdminCP setting vs. edit the php file

1.7 12.25.05
- Killed auto create Module on Install

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 3 templates for media players
================================================== =====

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

jugo 08-15-2005 12:26 PM

You should be able to just call it as a module and create the templates for it. Then just use the output variables that are listed on the first post.

GrendelKhan{TSU 08-15-2005 12:31 PM

wow.. cool idea... gotta fix some stuff up and then I'll give it a whirl. :D :D

jesus likes pie 08-15-2005 12:40 PM

I like it :D

Zachariah 08-15-2005 12:47 PM

Quote:

Originally Posted by jugo
You should be able to just call it as a module and create the templates for it. Then just use the output variables that are listed on the first post.

https://vborg.vbsupport.ru/showthread.php?t=72570
CMPS 1: Shoutcast Status Full

I have not tryed it on CMPS 2 - yet, I do not see a problem with it working. I'll take a look once I - RFRI. (reformat, reinstall)

Vizionz 08-15-2005 01:03 PM

man your the man haha i was just looking at your post in the v3 mods and was just about to post make this for v3.5 and blam its here good work installing now

Zachariah 08-15-2005 01:05 PM

Quote:

Originally Posted by Vizionz
man your the man haha i was just looking at your post in the v3 mods and was just about to post make this for v3.5 and blam its here good work installing now

I hear ya I got it finished ---8/15/2005 4:20AM--- :D
I could not sleep, you know how that goes. :tired:

Good luck w/ install

Vizionz 08-15-2005 01:23 PM

worked flawless now for the next mission :) ad the ability for multi servers. and the abilty to link other stream links

example: * these are just idea*
stream1
stream2


rap radio - listen now: winamp - windows media - real player
Metal radio - listen now: winamp - windows media - real player

they could be text links or images either way is good with me :)

might be hard to ad different streams just for the fact you got the latest 5 tracks going on that would nbe alot of space going on..

unless you changed the style to marquee the lastest 5 tracks

you could also make it clean by having a drop down menu for your streams.
and the links to listen

so like
stream1
winamp
windows media
real player

Stream 2
winamp
windows media
real player

that would save on the space issue and probably look cleaner if done that way..

Zachariah 08-15-2005 01:37 PM

I was thinking for a few months on showing milti -streams. - Might do a Sep. page vs. on the forumhome. I have done Multi-servers on VBA CMPS w/ Multi block many times. It will take some thought. I also would love to make an "all stats" hack vs. the small data this one pulls from the server. I thought the amount of info this gave was already taking a load of space as it was. I'll put some stuff on the fire and see what we can burn.

winamp - done
windows media - easy to do/add
real player - easy to do / have to read a bit on their tech.
Quote:

Originally Posted by Vizionz
worked flawless now for the next mission :) ad the ability for multi servers. and the abilty to link other stream links

example: * these are just idea*
stream1
stream2


rap radio - listen now: winamp - windows media - real player
Metal radio - listen now: winamp - windows media - real player

they could be text links or images either way is good with me :)

might be hard to ad different streams just for the fact you got the latest 5 tracks going on that would nbe alot of space going on..

unless you changed the style to marquee the lastest 5 tracks

you could also make it clean by having a drop down menu for your streams.
and the links to listen

so like
stream1
winamp
windows media
real player

Stream 2
winamp
windows media
real player

that would save on the space issue and probably look cleaner if done that way..


Vizionz 08-15-2005 01:54 PM

i made a few template edits for now to give ya a idea

Zachariah 08-15-2005 02:05 PM

:up:
Quote:

Originally Posted by Vizionz
i made a few template edits for now to give ya a idea

I hear ya .... nice and tight.

Vizionz 08-15-2005 02:07 PM

just gives ya an idea to maybe base another version later on :) anyway thanks for doing the hard part for us its much appreciated

Vizionz 08-15-2005 04:01 PM

this definetly slows your forum down so everyone knows. cause its calling the server so expect some delay

Zachariah 08-15-2005 04:08 PM

Quote:

Originally Posted by Vizionz
this definetly slows your forum down so everyone knows. cause its calling the server so expect some delay

Never seen that. I looked and seen you use a URL vs. IP. This will delay a bit. The URL vs. IP sends a DNS request then it returns a URL. Try using IP.

jesus likes pie 08-15-2005 04:21 PM

It sped mine up.

Anyhow this is an awesome mod.

Ah yes, and for some reason, the "listen now" image doesnt show up for me? Maybe it's just me, i dont know yet.

Thanks for the mod.

Zachariah 08-15-2005 04:26 PM

Quote:

Originally Posted by jesus likes pie
It sped mine up.

Anyhow this is an awesome mod.

Ah yes, and for some reason, the "listen now" image doesnt show up for me? Maybe it's just me, i dont know yet.

Thanks for the mod.

Upload the images to:
http://www.ugforums.org/ugforums/images/insignia/misc/


================================================== =====
Upload: Images |
===============
im_genre.gif, im_mirc.gif, radio.gif, shoutcast_off.gif, sound.gif

To:
$stylevar[imgdir_misc] - style_location/images/misc

Each style will need the images uploaded to their /images/misc folder.

Vizionz 08-15-2005 04:33 PM

thanks harry your right :) total difference so thats why jmy actual radio station site takes a while to load i thought it was from the multi stream stats

jesus likes pie 08-15-2005 04:40 PM

Quote:

Originally Posted by HarryButt
Upload the images to:
http://www.ugforums.org/ugforums/images/insignia/misc/


================================================== =====
Upload: Images |
===============
im_genre.gif, im_mirc.gif, radio.gif, shoutcast_off.gif, sound.gif

To:
$stylevar[imgdir_misc] - style_location/images/misc

Each style will need the images uploaded to their /images/misc folder.



oh....sorry...ill do that now. I didnt read that part right


EDIT: yup, that did it.

Zachariah 08-15-2005 04:43 PM

Quote:

Originally Posted by jesus likes pie
oh....sorry...ill do that now. I didnt read that part right

No biggie it could of been my wording. :nervous:

Use the image below. I'll update the 1st post. I forgot to test it on a dark theme.

Vizionz 08-15-2005 04:57 PM

have to rename it to gif though :P

Zachariah 08-15-2005 05:03 PM

Quote:

Originally Posted by Vizionz
have to rename it to gif though :P

eh ? -- Rt Click the image SaveAs , It is a Gif; just name it.
Quote:

Attach Files
Valid file extensions: bmp gif jpe jpeg jpg php png txt xml zip
radio.gif (1.4 KB)

jesus likes pie 08-15-2005 05:06 PM

Quote:

Originally Posted by HarryButt
No biggie it could of been my wording. :nervous:

Use the image below. I'll update the 1st post. I forgot to test it on a dark theme.


Thanks

Zachariah 08-15-2005 05:17 PM

Quote:

Originally Posted by jesus likes pie
Thanks

NP :ninja:

Hey you need a custom Guest Avatar for your welcome panel.
images/welcom_panel/guestavatar.gif (on every skin)

lamilein 08-24-2005 05:35 PM

great port to vB3.5
will be used on our public forums as soon as 3.5 is available as a final build :)

[high]* lamilein clicked install because he's using it on his local testing-machine :D[/high]

Staircase 08-27-2005 01:29 AM

Eh. It works, but not really.

Btw, do you HAVE to have the IRC? Because I left that with the standard not knowing what it was and when the radio is online it says it's offline.

Zachariah 08-27-2005 02:23 PM

Quote:

Originally Posted by Staircase
Eh. It works, but not really.

Btw, do you HAVE to have the IRC? Because I left that with the standard not knowing what it was and when the radio is online it says it's offline.

1st post. telling about the hack
*Note to self add this to install file readme.txt

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

I have a new ver perhaps today, that blows this out of the water. :tired:

Zachariah 08-28-2005 02:27 AM

================================================== =====
Changelog |
================

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


Party on ! :banana: :bunny:

On Closed:
https://vborg.vbsupport.ru/external/...chmentid=33967

On Open:
https://vborg.vbsupport.ru/external/...chmentid=33966

Media Player
https://vborg.vbsupport.ru/external/...chmentid=34148
Quicktime
https://vborg.vbsupport.ru/external/...chmentid=34149
Real
https://vborg.vbsupport.ru/external/...chmentid=34150

-------------------------------------------------------*/
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

Zachariah 08-29-2005 01:59 PM

================================================== =====
Changelog |
================
8/29/2005 8:00am

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

All Is well enjoy !!

question? 08-29-2005 06:02 PM

Any one made the module for VBADVANCED 2 Yet????

Zachariah 08-29-2005 06:36 PM

Quote:

Originally Posted by question?
Any one made the module for VBADVANCED 2 Yet????

https://vborg.vbsupport.ru/showthread.php?t=72570

Older ver, Ill have them updated w/ new code once all bugs are ironed out.

SmashinYoungMan 08-30-2005 03:53 AM

Quote:

Originally Posted by HarryButt
https://vborg.vbsupport.ru/showthread.php?t=72570

Older ver, Ill have them updated w/ new code once all bugs are ironed out.

That actually works fine for me in vB3.5 RC2 as is.

Zachariah 08-30-2005 01:07 PM

Quote:

Originally Posted by SmashinYoungMan
That actually works fine for me in vB3.5 RC2 as is.

cool !! :D - I upgraded the 3.0x forumhome. Ill work on the VBA mods soon.

Willy-K 08-31-2005 08:08 AM

please delete.

Zachariah 09-01-2005 01:52 PM

Quote:

Originally Posted by Blam Forumz
Can this be integrated into vBAdvanced?

https://vborg.vbsupport.ru/showthread.php?t=95394

GrendelKhan{TSU 09-13-2005 06:50 AM

ok sorry for the n00b question...this is the first time I've heard of shoutcast...but it seems pretty cool.

but I'm a bit confused. If I install this...that means....

members can broadcast their own radio via the forums? or they have to have a shoutcast server set up on their own and then I can show its status on the forums (via this mod) and then other members can listen to it? or do I have to set up a shoucast server particular to the forum and just let other people listen to it?

so from a member's perspective.....if I wanted to make a "radio station" and show it on the forums:

--i first set up a shoutcast server via shoutcast server download
--or do I set up a "BE A DJ"?

then what? :confused: from the members' view?

and from the admins view?


again sorry for the n00b questions...but a lot of background to soak if you've never heard of it.

I'm also not sure what the difference is between lite and full (from a forum admin perspective) other than you need a password from shoutcast (do listeners need a password to listen??)

thank you for your patience, and any help would be greatly appreciated.

^^

Zachariah 09-13-2005 01:27 PM

This hack connects to a server and relays its stats / info to your site. The server can be installed anywere as long as the IP can be accessed. You make the server or connect to a server.

The password I talk about is in the shoutcast server software itself. There is a mini web based client and admin section that the shoutcast server software makes on the computer it is installed to. This script needs the admin access to the shoutcast server to get the info to populate the forums w/ live info. It logs in collects the data and returns the info to the client.

The client does not need a password to connect.

I have a shoutcast server setup on a cable modem when I goof around and want to show some friends a few tunes I ran across. @60K upload I can do 16 people @ 24k music quility. (mono .. like AM radio)

Yes it is a hog. 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 in your case 256k uploadspeed / 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

BROADCASTING

Persons wanting to broadcast will need to run their own server, as per the instructions below, or find someone willing to run one for them. Once a server's located, broadcasters use Winamp and a plug-in called the SHOUTcast Source for Winamp Plug-In to send audio from Winamp to the SHOUTcast server. The tools are available here, and there's an entire section of the documentation dedicated to the plug-in.

RUNNING A SERVER

The magic of the SHOUTcast system happens inside the SHOUTcast Distributed Network Audio Server (DNAS). This software runs on a server attached to an IP network with lots of bandwidth, and is responsible for receiving audio from a broadcaster, updating the SHOUTcast directory with information about what the broadcaster is sending, and sending the broadcast out to listeners. More information is in the server section of the documentation.

More info

Mathiau 09-14-2005 09:13 PM

this looks nice!! checking it out.

Wordplay 09-16-2005 08:00 AM

i'm not entirely sure whether or not i get this currectly. so does this let you upload and play your own music or is it just another play radio extensions software?


All times are GMT. The time now is 07:44 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.01710 seconds
  • Memory Usage 1,862KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete