Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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

Version: 3.0.9 Rating:
Released: 02-22-2005 Last Update: 11-27-2005 Installs: 22
Additional Files  
No support by the author.

Shoutcast Status Lite 1.0.1 on your VB3.x Forum Home.

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

Quote:
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.
NuclioN - Request for non-pw ver

(this hack does not need a password to pull stream information.) ---
Shoutcast Status 1.01 (full w/ more options) need a password.

Changelog:
*1.0.1
Removed </span> tag in forumhome_shoutcast template.


== Install: 2-5 min ==

Collapsible Table

Server Name
Bitrate
Current Song
Users Connected
User Max
Online / Offline status

================================================== =====
Zerro queries added


Edit: 2 php files
Edit: 1 template
Upload: 2 images, 1 php file
Add: 2 templates

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
$song[0] = (zerro) is the current song playing.
$bitrate = Quility of the Bitrate - setting in DJ - DSP .
$currentlisteners = Current connected users.
$maxlisteners = Max users for the server.
$listenlink = 'http://$scip:$scport/listen.pls

Show Your Support

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

Comments
  #52  
Old 02-20-2007, 11:25 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 Paultiscali View Post
I have installed the latest mod for my forum but no look as my ip is shoutcast2.tidyhosts.com and my ip is 9088 but when my radio is on and i go to my forum the server says its offline which it isnt

I have put in my correct dj/admin password which is correct and no luck
Try:
IP: 194.150.121.47
Port: 9088

Quote:
Originally Posted by iMystik View Post
i unistalled this but i still see

forumhome_shoutcast_qt

and other templates how do i remove em?
If the templates have not removed you can select the template and "revert" it.

AdminCP -> Styles & Templates -> Style Manager -> Edit Templates -> Select a template you wish to remove => Click the 'Revert' button
Reply With Quote
  #53  
Old 02-28-2007, 07:19 PM
gullystation gullystation is offline
 
Join Date: Jun 2006
Location: England UK
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same happens here i put the correct information in and it jsut says the radio station is offline.

and wot does it mean wen it says Please enter in the Update time of your shoutcast station.
Note: seconds untill cache update

wt do i have to put in dere.

thanx ure hlep will be appreciated
Reply With Quote
  #54  
Old 05-27-2008, 08:55 AM
TRa5H's Avatar
TRa5H TRa5H is offline
 
Join Date: Apr 2008
Location: Middletown, PA
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok so i am having issues .. i cannot get the shoutcast to work.. i have tried with like 15 different shoutcast ips.. so i know its not that.. below is what i currently have.. i am using shoutcast lite and the cmps shoutcast lite for other pages..

Code:
$scdef = "[XRM] - Alternative";   // Default station name
$scip = "66.207.166.59";   // ip shoutcast server
$scport = "8000";        // port of shoutcast server
and here is my forums.. www.rebelsofchaos.net there is a navigation menu top right kinda hidden takes you to all pages..

all that shows is the shoutcast is currently offline.. please help! thanks
Reply With Quote
  #55  
Old 05-27-2008, 11:57 AM
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 TRa5H View Post
Ok so i am having issues .. i cannot get the shoutcast to work.. i have tried with like 15 different shoutcast ips.. so i know its not that.. below is what i currently have.. i am using shoutcast lite and the cmps shoutcast lite for other pages..

Code:
$scdef = "[XRM] - Alternative";   // Default station name
$scip = "66.207.166.59";   // ip shoutcast server
$scport = "8000";        // port of shoutcast server
and here is my forums.. www.rebelsofchaos.net there is a navigation menu top right kinda hidden takes you to all pages..

all that shows is the shoutcast is currently offline.. please help! thanks
9 out of 10 times this is because of settings (port,ip,password) or your webhost has blocked ports. Many hosts only allow queries for data on port 80 (http, rss, xml feeds). I have seen many webhosts designate a port for "other" needs of their clients.
Reply With Quote
  #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
  #57  
Old 06-09-2008, 07:10 PM
citroenar citroenar is offline
 
Join Date: Jan 2007
Location: Serbia
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try here if ports are open,if not you have to contact host to open port8000 for you.

http://www.canyouseeme.org/
Reply With Quote
  #58  
Old 07-15-2008, 08:50 AM
theque's Avatar
theque theque is offline
 
Join Date: Jul 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi does anyone no how to grab the $servertitle = this will display the information the current live dj is playing :ie on his shoutcast description this is the only info i need to grab
Reply With Quote
  #59  
Old 07-19-2008, 09:56 AM
theque's Avatar
theque theque is offline
 
Join Date: Jul 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi ill explaing a bit more what i want to achive this is part of the code

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

i want to add $servertitle to this or maybe $description i belive this can be done without the admin password -

any ideas please ive tried everyting i can but am no expert on this.

cheers
Reply With Quote
Reply

Thread Tools

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 10:02 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.04625 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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