Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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

Version: 3.5.6 Rating:
Released: 08-14-2005 Last Update: 11-17-2006 Installs: 122
Uses Plugins Template Edits
Additional Files  
No support by the author.

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)

Show Your Support

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

Comments
  #42  
Old 09-17-2005, 06:37 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It allows you to broadcast music or any audio file from your own PC, then its transmited via the server and via your forum for members to listen to.

Laters

Quote:
Originally Posted by Wordplay
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?
Reply With Quote
  #43  
Old 09-17-2005, 06:40 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now another question:

Is the below details:
$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.

Is this in the template or file?

If I change the template +$song[0] as below to +$song[19] it does not show the last 19 songs played?

<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0]</marquee></tt></td>
</tr>

Any ideas?

Laters
Reply With Quote
  #44  
Old 09-17-2005, 07:11 PM
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 The Realist
Now another question:

Is the below details:
$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.


Is this in the template or file?

If I change the template +$song[0] as below to +$song[19] it does not show the last 19 songs played?

<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0]</marquee></tt></td>
</tr>

Any ideas?

Laters
$song[0] - current song "on-air"
$song[1] - song that played before $song[0]
$song[2] - song that played before $song[1]
$song[3] - song that played before $song[2]
$song[4] - song that played before $song[3]

and soforth to $song[19]



all of these are in the current Hack - If installed and "on the Air" hit the collapse / expand Image.

I added the " + " (plus sign) as a place holder, it is not needed


If you want a many songs to list in the "marquee ", try:
List current and last 4 songs (total 5 songs)

Code:
<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0] + $song[1] + $song[2] + $song[3] + $song[4] + $song[5]</marquee></tt></td> 
</tr>
Reply With Quote
  #45  
Old 09-17-2005, 07:34 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks M8, testing now.

regards,

Brian

Quote:
Originally Posted by Zachariah
$song[0] - current song "on-air"
$song[1] - song that played before $song[0]
$song[2] - song that played before $song[1]
$song[3] - song that played before $song[2]
$song[4] - song that played before $song[3]

and soforth to $song[19]



all of these are in the current Hack - If installed and "on the Air" hit the collapse / expand Image.

I added the " + " (plus sign) as a place holder, it is not needed


If you want a many songs to list in the "marquee ", try:
List current and last 4 songs (total 5 songs)

Code:
<td width="50%" style="padding-left: 5px" class="smallfont"><tt><marquee width="98%" scrolldelay="100" scrollamount="5">+ $song[0] + $song[1] + $song[2] + $song[3] + $song[4] + $song[5]</marquee></tt></td> 
</tr>
Reply With Quote
  #46  
Old 09-25-2005, 04:22 AM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need help, i added all the information in the plug in, but it still says that my server isnt up, and it is. I cant enable it, im uh, lost thanks
Reply With Quote
  #47  
Old 09-25-2005, 04:23 AM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

// Shoutcast Server Stats
$scdef = "UGM Shoutcast";
$scip = "68.59.104.15";
$scport = "8000";
$scpass = "password";
$ircsite = "irc.server.net";
//End configuration

thats my code... whats wrong
Reply With Quote
  #48  
Old 09-25-2005, 02:53 PM
Zachariah's Avatar
Zachariah Zachariah is offline
 
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all looks correct

I have had another person have problems and here is what they did....


Isn't it a bummer when you find you cant use a good script cause your hosting provider is blocking outgoing an all non descript ports and your website is not on the same server as something like a shoutcast stream.

Dont let that stop you if an xml file is behind a port that you cant access from your site try something like this mod I did for this shoutcast hack

Extra requirements: LyNX browser on your shoutcast server - this is a command line browser, if your on a shoutcast shell you would normally find it allready is installed
If you have your own dedicated server for streaming its not hard to install if it isnt allready there

usage here lynx = starts the browser
-auth= to get into protected directories/files
-source will drop the content source to stdout
1> filename will trap the stdout to a file

lynx then just drops straigh back to command line ready for the next command as you added the switches for its job
eg:
Code:
lynx -auth=admin:dNASpasshere -source http://dNAS-IP-Or-Domain:port/admin.cgi?mode=viewxml 1> /webserver/path/public_html/filename.xml
to automate this just add a crontrab entry, dont do this till you are satisfied you have it right

How to install so you can grab your shoutcast status from a permitted port 80:

You will need the files from the hack and a simple edit.

Find:
PHP Code:
// ######################## CONFIGURATION AREA ############################

$scdef "Shoutcast";   // Default station name
$scip "0.0.0.0";   // ip or url of shoutcast server
$scport "8000";        // port of shoutcast server
$scpass "CHANGEME";      // admin password (not DJ) to shoutcast server
$ircsite "irc.server.net";   // IRC Server - EX: irc.server.com

// ######################## END CONFIGURATION AREA ############################ 
change to:

PHP Code:
// ######################## CONFIGURATION AREA ############################
$domain "www.domainhere.com";  // The domain to retrieve the xml
$xmlfile "filename.xml";  //xml filename from your saved stdout 1> filename.xml
$scdef "Shoutcast";   // Default station name
$scip "0.0.0.0";   // ip or url of shoutcast server
$scport "8000";        // port of shoutcast server
$scpass "CHANGEME";      // admin password (not DJ) to shoutcast server - In LynX to www mode no need for it
$ircsite "irc.server.net";   // IRC Server - EX: irc.server.com

// ######################## END CONFIGURATION AREA ############################ 
Now edit the config section to suit. noting the 2 extra bits here

do the template bits and upload the images and index.php file as directed in the hack

run your lynx command in shell and then check out your Shoutcast module page if it worked great
you may want to try it a few times before you add your crontab entry.

Adding crontab from shell is easy, you will more than likely enter the vi editor after issuing the command crontab -e
you might want to do crontab -l first and copy that text safe, so you can easily restore the original cron entries if you mess up.

move your cursor to the line above where you would like your new cron line, hit o
now your in insert mode copy to your clip board your prepared cron line, to run this every 5 minutes would look something like:

Code:
*/5 * * * * lynx -auth=admin:dNASpasshere -source http://dNAS-IP-Or-Domain:port/admin.cgi?mode=viewxml 1> /webserver/path/public_html/filename.xml
paste it in (shift + insert)

hit the esc key

now input :x and hit enter to install your new crontab

enjoy
Reply With Quote
  #49  
Old 09-25-2005, 06:44 PM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont really understand that :x
Reply With Quote
  #50  
Old 09-25-2005, 10:01 PM
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 Logik
i dont really understand that :x
You might edit the Shoutcast server config file "sc_serv.ini" and change the port from 8000 to 80 and see if your host can get the stats from your shoutcast server.

Rem to edit your plugin to the new port also.
Reply With Quote
  #51  
Old 09-25-2005, 11:07 PM
Logik's Avatar
Logik Logik is offline
 
Join Date: Nov 2002
Location: Tx
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh yes, that worked <333 Thanks man!
Reply With Quote
Reply


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 08:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05140 seconds
  • Memory Usage 2,337KB
  • 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
  • (4)bbcode_code
  • (2)bbcode_php
  • (4)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
  • (1)pagenav_pagelinkrel
  • (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