View Single Post
  #56  
Old 05-27-2008, 07:18 PM
TRa5H's Avatar
TRa5H TRa5H is offline
 
Join Date: Apr 2008
Location: Middletown, PA
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well I spoke with them and they said all their ports run off of 80 so i dont know what to say .. but it isnt just the ports i am using.. i went through like 20 diffrent Ip servers and stations and well i havent had a single one work yet.. Below is the full php that i have so if i am wrong with anything please let me know...

Code:
<?php
/* -----------------2/22/2005 6:23pm-----------------
Shoutcast Status Lite 1.0

This is a Nice hack to add Shoutcast Status on your VB3.x Forum Home.
Hope it helps !!!  Zack @ http://www.gzhq.net

(this hack does not need a password to pull stream information.)
CREDITS:
GeZuS P  - for giving me a leg up on some code.
-------------------------------------------------------*/
//Configuration

$scdef = "idobi Radio";   // Default station name
$scip = "208.53.158.213";   // ip shoutcast server
$scport = "80";        // port of shoutcast server

//End configuration

// Shoutcast Server Stats
// Parses shoutcasts xml to make an effective stats thing for any website
$scfp = @fsockopen($scip, $scport, &$errno, &$errstr, 1);

if(!$scfp) {
eval('$scast = "' . fetch_template('forumhome_shoutcast_off') . '";');

}else{
if($scsuccs!=1){
fputs($scfp,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
  $page .= fgets($scfp, 1000);
}
}

//define all the variables to get (delte any ones you don't want)
 $page = ereg_replace(".*<body>", "", $page); //extract data
 $page = ereg_replace("</body>.*", ",", $page); //extract data
 $numbers = explode(",",$page);  //extract data
 $currentlisteners=$numbers[0];
 $streamstatus=$numbers[1];
 $peaklisteners=$numbers[2];
 $maxlisteners=$numbers[3];
 $currentlisteners=$numbers[4];
 $bitrate=$numbers[5];
 $song[0]=$numbers[6];
}

//end song info
if($scfp) {
fclose($scfp);
}
$listenlink = 'http://'.$scip.':'.$scport.'/listen.pls';  //make link to stream

//display stats
if($scfp) {
if($streamstatus == "1"){
eval('$scast = "' . fetch_template('forumhome_shoutcast') . '";');
} else {
eval('$scast = "' . fetch_template('forumhome_shoutcast_off') . '";');
}
}
?>
thanks again

i mean you can see on my site under forums that it stays turned off

www.rebelsofchaos.net
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01200 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete