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)

The Realist 09-17-2005 06:37 PM

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?


The Realist 09-17-2005 06:40 PM

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

Zachariah 09-17-2005 07:11 PM

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]

https://vborg.vbsupport.ru/external/...chmentid=33910

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>


The Realist 09-17-2005 07:34 PM

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]

https://vborg.vbsupport.ru/external/...chmentid=33910

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>



Logik 09-25-2005 04:22 AM

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

Logik 09-25-2005 04:23 AM

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

Zachariah 09-25-2005 02:53 PM

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

Logik 09-25-2005 06:44 PM

i dont really understand that :x

Zachariah 09-25-2005 10:01 PM

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.

Logik 09-25-2005 11:07 PM

ahh yes, that worked <333 Thanks man!


All times are GMT. The time now is 04:58 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.01467 seconds
  • Memory Usage 1,765KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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