vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Module CMPS: Shoutcast Status Lite (https://vborg.vbsupport.ru/showthread.php?t=76988)

Zachariah 02-23-2005 10:00 PM

Module CMPS: Shoutcast Status Lite
 
Module CMPS: Shoutcast Status Lite 1.0

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.

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


== Install: 2-5 min ==

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

================================================== =====
- Something that came to mind. You can take this add-on and rename the shoutcast.php file to say "shoutcast_lite1.php, shoutcast_lite2.php, etc." and make multi-blocks to get feeds from different servers. They all can use the same templates.

Upload: 1 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 "adv_portal_scastlite". 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

Zachariah 02-24-2005 08:29 PM

The templates are not that flashy, but you can edit them. :D

Rushty 02-25-2005 08:49 AM

any chance of a block for vbindex?

Zachariah 02-25-2005 01:14 PM

Quote:

Originally Posted by Rushty
any chance of a block for vbindex?

Should not be a problem. I'll do up a Full and Lite ver. over the next day or so.
:classic:

ericgtr 02-25-2005 02:16 PM

Quote:

Originally Posted by HarryButt
Should not be a problem. I'll do up a Full and Lite ver. over the next day or so.
:classic:

How about a full for CMPS? Also, is it too wide for a side block?

Zachariah 02-25-2005 03:44 PM

Quote:

Originally Posted by ericgtr
How about a full for CMPS? Also, is it too wide for a side block?

https://vborg.vbsupport.ru/showthrea...threadid=72570

The Full ver layout was built with a center block in mind, but it's layout can be custom to fit anywere, just edit "adv_portal_shoutcast". It can also list more than the Top 5 (max top 20).

Full ver only:
Code:

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


ericgtr 02-25-2005 04:42 PM

Quote:

Originally Posted by HarryButt
https://vborg.vbsupport.ru/showthrea...threadid=72570

The Full ver layout was built with a center block in mind, but it's layout can be custom to fit anywere, just edit "adv_portal_shoutcast". It can also list more than the Top 5 (max top 20).

Full ver only:
Code:

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


Cool, it's setup on the side now with a few template edits. Thanks man, my users will really dig this. :)

Zachariah 03-01-2005 01:32 AM

Quote:

Originally Posted by ericgtr
Cool, it's setup on the side now with a few template edits. Thanks man, my users will really dig this. :)

I see you added <marquee> on the block. :cool:

ericgtr 03-01-2005 01:47 AM

Yeah and I also added a background cell image, you would think that it would be a simple little task but I had to play with it for a little bit, it wouldn't work without creating a css for it.

That Rob Guy 03-01-2005 11:42 PM

Is it possible to use a server that is already broadcasting for this, instead of my own? I listen to Defcon Radio alot on Winamp, and I'd like to know if I can set this hack up to broadcast Defcon instead of something of my own?

Zachariah 03-02-2005 12:18 AM

Quote:

Originally Posted by That Rob Guy
Is it possible to use a server that is already broadcasting for this, instead of my own? I listen to Defcon Radio alot on Winamp, and I'd like to know if I can set this hack up to broadcast Defcon instead of something of my own?

Yes sir.
The light ver. only needs a ip and port.
The full ver. needs ip, port, shoutcast server admin pw.

- Change values with in the "quotes" to shoutcast server settings.

//Configuration
$scdef = "Server Name"; // Default station name
$scip = "0.0.0.0"; // ip or url of shoutcast server
$scport = "8000"; // port of shoutcast server
//End configuration

That Rob Guy 03-02-2005 02:30 AM

Wait.. I went to install this and it's for CMPS... And also, there is only a link generated, which I can do on my own...

So, I didn't go on with installation, but, this doesn't actually play live on the forums, does it?

Zachariah 03-02-2005 10:56 PM

Quote:

Originally Posted by That Rob Guy
Wait.. I went to install this and it's for CMPS... And also, there is only a link generated, which I can do on my own...
So, I didn't go on with installation, but, this doesn't actually play live on the forums, does it?

I am unsure what your talking about or wanting, but 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)

The 2 CMPS's need:

vBadvanced CMPS
https://vborg.vbsupport.ru/showthread.php?t=65797
Coded by: Tigga

The other 2 work on the forumhome.

This script pulls the XML data from a shoutcast server.
http://www.shoutcast.com/download/serve.phtml

deb0 03-03-2005 01:20 PM

Nice Job! My users are gonna love this! -Installed.

That Rob Guy 03-05-2005 02:37 AM

Okay... So, does the Shoutcast stream play live on the forum, or does it just link to the stream to open up in Winamp? The thing is, I'm wanting this so that my users can just go to the forums and listen to the stream straight off of the forumhome instead of clicking a link and opening it up in Winamp.

Zachariah 03-05-2005 01:42 PM

Quote:

Originally Posted by That Rob Guy
Okay... So, does the Shoutcast stream play live on the forum, or does it just link to the stream to open up in Winamp? The thing is, I'm wanting this so that my users can just go to the forums and listen to the stream straight off of the forumhome instead of clicking a link and opening it up in Winamp.

Sure you can embed a player to auto start If that is what you wish. Windows media player or a flash / java player can be used. If you do this on your forum home your user will disconnect when they leave the forum home. You may want to make a popup window w/ the player that can detach from the site.

That Rob Guy 03-05-2005 03:11 PM

Well, I know I could do that... But, I'm wondering if the script does that.

Slave 04-23-2005 07:21 AM

Brilliant .. thanks for a great hack :)

[high]* Slave clicks install[/high]

Slave 05-23-2005 06:26 AM

Harry .. I'm using the lite version at the moment but am getting the same problem as some of the guys in the following thread ..

https://vborg.vbsupport.ru/showthrea...ight=shoutcast

Everything works fine unless the shoutcast process is stopped on the server and then it takes forever for the page this module is on to load.

I see you've added a fix to the full version. Can you please also update this lite version too.

Thanks :)

Zachariah 05-23-2005 11:55 AM

Quote:

Originally Posted by Slave
Harry .. I'm using the lite version at the moment but am getting the same problem as some of the guys in the following thread ..

https://vborg.vbsupport.ru/showthrea...ight=shoutcast

Everything works fine unless the shoutcast process is stopped on the server and then it takes forever for the page this module is on to load.

I see you've added a fix to the full version. Can you please also update this lite version too.

Thanks :)

Realy ? - I will have to look @ the code. I thought all that crap was good. :o

Slave 05-23-2005 01:50 PM

Quote:

Originally Posted by HarryButt
Realy ? - I will have to look @ the code. I thought all that crap was good. :o

Lovely .. thanks :)

Got to be said my users love this hack .. :)

Zachariah 05-23-2005 03:19 PM

@ Slave - With the curent builds of the hacks

I have a test install and @ 18 queries w/ both the full and light Module on the same page.

.45159 Sec - connected
.49724 sec - not connected

Are you useing an IP or a domain name for your $scip value ?

Slave 05-23-2005 05:21 PM

[high]* Slave goes to check ..
[/high]

The $scip is an IP .. and I'm deffo using the same file as the download above ..

You sure you've updated it? :p

And you're also sure that you tested it with the shoutcast process completely off on the server .. and not just "off the air" with no one broadcasting?

Cheers for the help :)

Zachariah 05-24-2005 04:01 PM

Quote:

Originally Posted by Slave
[high]* Slave goes to check ..
[/high]

The $scip is an IP .. and I'm deffo using the same file as the download above ..

You sure you've updated it? :p

And you're also sure that you tested it with the shoutcast process completely off on the server .. and not just "off the air" with no one broadcasting?

Cheers for the help :)

Yes sir.

I am useing the same ver as posted here. I can kill the server, change the IP, DJ or or off line, and I still have little if/any delay change.

Try this:
edit shoutcast_light.php

Find
Code:

$page .= fgets($scfp, 1000);
replace with
Code:

$page .= fgets($scfp, 5);
The value 5 may be to fast to get readings from the server, but you can change the value untill you get what you need. (larger the # the longer the time the script waits for the data from the server)

Slave 05-25-2005 11:10 PM

Cool .. cheers .. I'll try that :)

tekram 05-31-2005 07:13 PM

Yes Sir nice Hack...

Have a look at that: Shoutcast Lite

Zachariah 06-01-2005 12:45 PM

Quote:

Originally Posted by tekram
Yes Sir nice Hack...

Have a look at that: Shoutcast Lite

HA !!!! :speechless:

Nice


All times are GMT. The time now is 11:24 PM.

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.01698 seconds
  • Memory Usage 1,804KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete