PDA

View Full Version : Forum Home Enhancements - Shoutcast Status 3 (VB4)


Zachariah
03-13-2010, 10:00 PM
Shoutcast Status 3.0 on your VB4 ForumHome.

/* ----------------- 03/13/2010 -----------------
This is a Nice hack to add Shoutcast Status on your VB4 ForumHome.
Hope it helps !!!

Zachariah @ http://www.szone.us

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 4+
SHOUTcast Server v1.9.5
================================================== =====

== Install: 2-5 min ==

Full Stats
- Needs Shoutcast server admin password

Server Name
Last 19 songs
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
- Dose not need shoutcast server admin password

Server Name
4 media players (winamp, quicktime, media player, real player)
Bitrate
Current Song
Users Connected
User Max
Online / Offline status

================================================== =====
Adds: 2 plugins
Adds: 8 images, 2 files
Adds: 10 templates
Adds: 45 phrases
================================================== =====

VB3.8X - https://vborg.vbsupport.ru/showthread.php?t=126007
(Shoutcast Status 2.0, 4387 downloads)

Zachariah
03-13-2010, 11:08 PM
================================================== =====
Changelog |
================
v3.0 - 03.15.2010
- Made the hack work for VB4.0
- Custom variable for location changed from $scast to {vb:raw scast}

v2.0 - 11.15.06

- Merged shoutcast lite and full into 1 program
** If you do not have an admin password for your shoutcast server you can get limited information from the server "lite".

- Stats and History moved
** There was a need to hit collapsible +/- image to show song history and server stats. This has been moved to a 2 vbmenus as a click dropdown.

- Show Off Line Status
** Set to "No" to remove off line template when the shoutcast server is off line, or there is no DJ source

- Select what usergroups can see the add-on
- Fully phrased
- Cleaned up code in templates
- Changed and added templates.

v1.9

9.06.06
- Moved body of hack to: /includes/shoutcast/scast.php vs. in datastore.
- added 2 templates: forumhome_shoutcast_who, forumhome_shoutcast_who_off
- popup player url from index.php to $vboptions[forumhome].php
- Locations:

* Above Header
* Below Header
* Under Navbar
* Above What's going on
* Inside What's going on
* Below What's going on
* Custom

Select "Custom" and place {vb:raw scast} in FORUMHOME template for custom location.

Zachariah
03-13-2010, 11:15 PM
not a real problem, but only 9 song appear in list of "last 19 songs":


there is a way to solve that ?
ah, an other question ... i have 19 DJ's ... there is a way to show who is the DJ ?

- sc_sevr.ini (on the shoutcast server)

This is the "Boss in Charge" of what feeds to the XML files.

; ShowLastSongs specifies how many songs to list in the /played.html
; page. The default is 10. Acceptable entries are 1 to 20.
ShowLastSongs=20

If you can not change it you can remove the $song[9] - $song[18] from the "forumhome_shoutcast" template.

$servertitle = "Discription" - setting in DJ - DSP (I used for DJ Name).

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
$scpass = Admin password (not DJ) to shoutcast server
$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.
$servertitle = "Discription" - setting in DJ - DSP (I used for DJ Name).
$servergenre = - setting in DSP.
$bitrate = Quility of the Bitrate - setting in DJ - DSP .
$url = URL - setting in DJ - DSP
$currentlisteners = Current connected users.
$maxlisteners = Max users for the server.
$listenamp = http://$scip:$scport/listen.pls
$listenlnk = http://$scip:$scport
$averagemin = average listener time in minuets
$peaklisteners = Most Ever
$content = Media Type
$streamhits = Hit Count

Zachariah
03-13-2010, 11:16 PM
Most people pay for a shoutcast service, co-locate a server, host small servers on their local cable / dsl modem, or install via SSH to their web host.

Make sure you have Unlimited Bandwith on your web package if you plan to host the shoutcast server on your web server.

The bandwidth usage depends on "# of users connected" and the quality of the song in kbps.

uploadspeed / bitrate = max listeners , always leave some for overhead

Example: 256k upload speed / 56k bitrate = max 4 listeners ( 4* 56 = 224kbps ) keep in mind that your provider says he gives you 256kbps upload, the actual speed might be much lower.

Bitrates
192k CD quality
56k stereo
24k mono (like an AM radio, but works for music)
8k voice

Zachariah
03-13-2010, 11:16 PM
HELP !! I Install the hack and I am always off line :(


CHMOD 666 scast_home.xml
- This file should be in the root of the forums folder. ($vboptions[bburl])

/forums/scast_home.xml - The vBulletin install folder.

To put less load on the shoutcast server and to speed up page loads. The shoutcast info the script gets is cached to your local webserver in that XML file. The XML file is called up when a request to show the data. If your cache file does not update then you are not connecting to the shoutcast server.

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.

If you are 100% sure your setting and install is correct.

Send a ticket to your webhost and see if ports are blocked (ie:8000). If so they may give you another port you can use. Reset your shoutcast server to output on that port. Lastly, if there is nothing that your host will do, you can move the shoutcast server to output on port 80 vs. 8000.

Zachariah
03-13-2010, 11:18 PM
ive tried to install it but it gives my site some kind of error.. I have tried to CHMOD 777 it but my friend says it can only be done on a linux server..

I understand, I develop on a windows box. :)
Do not worry about CHMOD.

In the zip build.

product-shoutcast_home_full.xml
install.txt
- upload
-- scast_home.xml
-- includes
---- shoutcast
------ scast.php
------ cache_templates.php
-- images
---- misc
-------- shoutcast_off.gif
-------- radio_sm.gif
-------- im_winmp.gif
-------- im_real.gif
-------- im_qt.gif
-------- im_mirc.gif
-------- im_genre.gif

When you upload the files to your web server you want to keep the folder structure in tact.

Everything in the "upload" folder will be placed in the root of your vBulletin install.

D:\httpdocs\forums

/forums/scast_home.xml

The forums/includes/shoutcast folder will be made and the php files uploaded.

The images by default will upload where the default style is installed. /forums/images/misc/. If you have a custom style with a different location then upload the images to the custom /images/misc/.

$stylevar[imgdir_misc] - style_location/images/misc

Netaudio
03-14-2010, 01:26 AM
mERCI!

Juggernaut
03-14-2010, 01:42 AM
<i>I use a free shout cast service, will this mod work with the free service? </i>

dengbej
03-14-2010, 01:44 AM
lite or full?

Juggernaut
03-14-2010, 01:56 AM
<i>I installed, but don't get anything on my forum, just offline shows. </i>

Netaudio
03-14-2010, 02:36 AM
I installed, but don't get anything on my forum, just offline shows.

Upload: files |
================
- scast_home.xml

forums\scast_home.xml
* CHMOD 777

Juggernaut
03-14-2010, 02:51 AM
Uploaded all the files, and followed all the instructions, did the CHMOD 777, uploaded all
Image files into their directories, and the Includes files into their directories as well, but
only shows offline. :(

Zachariah
03-14-2010, 03:11 AM
lite or full?

This is both full and lite in 1 hack.
- With an admin password the hack will pull more info from the shoutcast feed.

AzzidReign
03-14-2010, 07:01 PM
Thanks, nice mod!

anaksimandros
03-14-2010, 07:26 PM
thank you :)

i am going to try in nowadays :D

dvbusuario
03-14-2010, 11:17 PM
Thank you!

Install & nominated!!!

Rated 5 Stars.

sojobo
03-15-2010, 04:04 AM
Nice to see this has been updated for 4.0, thanks.

W!cKeD
03-15-2010, 03:06 PM
Hello Zachariah,

Thanks for the Port ;)

I have IceCast, you can code a Addon for Icecast?

Zachariah
03-15-2010, 03:27 PM
Hello Zachariah,

Thanks for the Port ;)

I have IceCast, you can code a Addon for Icecast?

I'll download it and set up a system. I'll take a look.

Q: not knowing a lot about the output yet;
- what are some things you would like to see ?
- what media type are you using on the server ? (mp3's, video, other ?)

W!cKeD
03-15-2010, 04:56 PM
I'll download it and set up a system. I'll take a look.

Thanks ;)
Q: not knowing a lot about the output yet;
The Outputfile is the xsl-file (status.xsl), with many output like listener, mountpoint, bitrate, etc.


- what are some things you would like to see ?
I think the same as the shoutcast plugin, listener, bitrate, dj, mountpoints etc.

- what media type are you using on the server ? (mp3's, video, other ?)

Mp3, but videos would be nice..

Each icecast server can house multiple broadcasts (or mountpoints) each containing a separate stream of content. A listener can only listen to a single mountpoint at a time. This means you can have a single icecast server contain either multiple broadcasts with different content, or possibly the same broadcast but with streams of different bitrates or qualities. In this case each broadcast or stream is a separate mountpoint.

IceCast is very nice, better than shoutcast, take a look on http://www.icecast.org/docs/icecast-2.3.1/icecast2_config_file.html and then the "fallback-mount"

Thank you in Advance.. i hope you code a Addon for it :) in the moment i use on 3.8. your Shoutcast Addon and i love it ;)..

Bluefin221
03-15-2010, 05:12 PM
Is it possible to have this show two servers?

PS: Thanks for updating I love this mod.

maidos
03-15-2010, 06:01 PM
Is it possible to have this show two servers?

PS: Thanks for updating I love this mod.

ditto, i plan to run 4 radio servers and it would be neat to display more than one radio host

and thanks ALOT for updating :)

Hornstar
03-15-2010, 07:15 PM
Do you guys use your home PC or rent a shoutcast server? By memory last time I gave this a go I was using my home PC but it was just too slow. Any recommendations for shoutcast servers?

Bluefin221
03-15-2010, 09:06 PM
Do you guys use your home PC or rent a shoutcast server? By memory last time I gave this a go I was using my home PC but it was just too slow. Any recommendations for shoutcast servers?

I used fastserv (http://www.fastserv.com/stream-hosting/) for years before I ran dedicated servers and never had any problems, the prices were really reasonable as well.

Kr33p3r
03-16-2010, 06:00 PM
I'll download it and set up a system. I'll take a look.

Do you know how long I've wanted you to say those words about Icecast?

If you need help with the server, please let me know.

Lqd
03-16-2010, 09:36 PM
Is it possible to get this under the NAVBAR? Awesome work btw!! :-)

Thank you!

Dr.osamA
03-16-2010, 10:23 PM
thanxxx man

i well try it

installed

Zachariah
03-16-2010, 11:02 PM
Is it possible to get this under the NAVBAR? Awesome work btw!! :-)

Thank you!

I'll work on that @ the moment you can place it above the forums
- AdminCP => Settings => Options => Shoutcast Forumhome
- Location
-- Above Forums

Aclikyano
03-17-2010, 12:51 AM
haha something to do on weekend, like i didnt have enough to do on my site!!! :)

DjEddie
03-19-2010, 06:45 AM
Hi Zachariah,

before I download and install this ... is there a way to have this as a widget in the cms or even in the forum block sidebar? If thats possible let me know an i'll install :)

Thanks

Zachariah
03-19-2010, 11:41 AM
Hi Zachariah,

before I download and install this ... is there a way to have this as a widget in the cms or even in the forum block sidebar? If thats possible let me know an i'll install :)

Thanks

Sure the concept is simple enough to do, I will read up on the HOWTO's and see what I can do.

voidmind
03-21-2010, 03:02 PM
Sure the concept is simple enough to do, I will read up on the HOWTO's and see what I can do.

I Second this, I've been playing around with variables all morning trying to get this info into a CMS Widget. I guess I don't know the correct syntax to make it pull those variables.

I love this plugin! Now I just need to get this data onto my front page via that cms widget.

Thank you for all your work Zachariah!

maidos
03-21-2010, 04:35 PM
any supportn for videocastr? :)

DeviantFlash
03-21-2010, 04:58 PM
I installed and everything still shows up as offline.

I know it isnt offline because I am streaming to an off-forum website right now.

I doubt my hosting service is blocking the port because it is on the same site.

Any ideas?

voidmind
03-21-2010, 05:14 PM
I installed and everything still shows up as offline.

I know it isnt offline because I am streaming to an off-forum website right now.

I doubt my hosting service is blocking the port because it is on the same site.

Any ideas?

Make sure you have scast_home.xml CHMODed to 777 as writable so it can update your current status.

Zachariah
03-21-2010, 05:25 PM
I installed and everything still shows up as offline.

I know it isnt offline because I am streaming to an off-forum website right now.

I doubt my hosting service is blocking the port because it is on the same site.

Any ideas?

Also try:
- For your vBulletin shoutcast server setting , are you using an IP address to connect ?

- there may be firewall setting or web server setting in place to not allow the request to ports other than 80. The shoucast server can still be running on a PORT, but the web server setting can still stop PHP scripts from requesting info on all ports other than 80.

As a test you could test your settings on a station sending on port 80 to see if your web server can get data. If it works on a station on port 80, you should send a request to your host to allow your web server to get external data with php files (XML / RSS feed) from remote IP:Port. Request the Port if you know what you want, they may open it.

DeviantFlash
03-21-2010, 07:15 PM
Make sure you have scast_home.xml CHMODed to 777 as writable so it can update your current status.

Was already done.

DeviantFlash
03-21-2010, 07:16 PM
Also try:
- For your vBulletin shoutcast server setting , are you using an IP address to connect ?

- there may be firewall setting or web server setting in place to not allow the request to ports other than 80. The shoucast server can still be running on a PORT, but the web server setting can still stop PHP scripts from requesting info on all ports other than 80.

As a test you could test your settings on a station sending on port 80 to see if your web server can get data. If it works on a station on port 80, you should send a request to your host to allow your web server to get external data with php files (XML / RSS feed) from remote IP:Port. Request the Port if you know what you want, they may open it.

Will look into it and get back to you

DeviantFlash
03-21-2010, 07:40 PM
When I tested it using port 80, info DID show, unfortunately it was to a different unknown radio station

DeviantFlash
03-21-2010, 07:58 PM
One other question, if port 8580 wasnt open, would I be able to have a widget on my content page showing what is playing on the radio station

balkanboy
03-22-2010, 12:29 AM
Thanks installed gonna give fastserv ago....

ellinofatsa
03-22-2010, 02:02 PM
i turn the shoutcast on and i see that any help??

Warning: require([path]/includes/shoutcast/cache_templates.php) [function.require]: failed to open stream: No such file or directory in [path]\includes\class_bootstrap.php(1146) : eval()'d code on line 100

Fatal error: require() [function.require]: Failed opening required 'C:\IIS_WEBSITES\ellinofatsa.www\forums/includes/shoutcast/cache_templates.php' (include_path='.;C:\php5\pear') in C:\IIS_WEBSITES\ellinofatsa.www\forums\includes\cl ass_bootstrap.php(1146) : eval()'d code on line 100

Zachariah
03-22-2010, 02:10 PM
/includes/shoutcast/cache_templates.php) [function.require]: failed to open stream: No such file or directory

There are 2 files in the hack that need to be FTP'ed (uploaded) to the server.

forums/includes/shoutcast
- cache_templates.php
- scast.php

ellinofatsa
03-22-2010, 02:18 PM
thanks wait i go to see that

ellinofatsa
03-22-2010, 02:21 PM
- cache_templates.php
- scast.php
____________

can you tel my were mast i put this ??

in the andmincp??? or no??

thanks again

ellinofatsa
03-22-2010, 02:23 PM
take a look of by board

http://www.ellinofatsa.gr

ellinofatsa
03-22-2010, 02:23 PM
any help....my board is off

Zachariah
03-22-2010, 02:56 PM
- cache_templates.php
- scast.php
____________

can you tel my were mast i put this ??

in the andmincp??? or no??


thanks again

forums/includes/shoutcast/cache_templates.php
forums/includes/shoutcast/scast.php

ellinofatsa
03-22-2010, 03:01 PM
look again why that???

Warning: require([path]/includes/shoutcast/cache_templates.php) [function.require]: failed to open stream: No such file or directory in [path]\includes\class_bootstrap.php(1146) : eval()'d code on line 100

Fatal error: require() [function.require]: Failed opening required 'C:\IIS_WEBSITES\ellinofatsa.www\forums/includes/shoutcast/cache_templates.php' (include_path='.;C:\php5\pear') in C:\IIS_WEBSITES\ellinofatsa.www\forums\includes\cl ass_bootstrap.php(1146) : eval()'d code on line 100

forums/includes/shoutcast/cache_templates.php
forums/includes/shoutcast/scast.php

a have put oll the shoutcast folder and look now my forum http://www.ellinofatsa.gr/forums/forum.php

i have do that but....

any ather to try??

ellinofatsa
03-22-2010, 03:16 PM
look now

Warning: fopen(scast_home.xml) [function.fopen]: failed to open stream: Permission denied in [path]\includes\shoutcast\scast.php on line 130

Warning: fwrite(): supplied argument is not a valid stream resource in [path]\includes\shoutcast\scast.php on line 131

Warning: fclose(): supplied argument is not a valid stream resource in [path]\includes\shoutcast\scast.php on line 132

Warning: fopen(scast_home.xml) [function.fopen]: failed to open stream: No such file or directory in [path]\includes\shoutcast\scast.php on line 135

edwinlar
03-22-2010, 03:24 PM
no funtion to me...offline always

ellinofatsa
03-22-2010, 03:27 PM
i am the admin ok i have do that but i wont to put this radio in my forum ......

Zachariah
03-22-2010, 03:29 PM
An empty file: scast_home.xml (zero KB )it should be in your forums folder.
- CHMOD 666

ellinofatsa
03-22-2010, 03:35 PM
sorry my english is do but ...

can you help my step by step ...i need to make this radio to play...

Zachariah
03-22-2010, 03:42 PM
sorry my english is do but ...

can you help my step by step ...i need to make this radio to play...

================================================== =====
Upload: Images |
===============
im_qt.gif, im_winmp.gif, im_winamp.gif, im_real.gif, im_genre.gif, im_mirc.gif, radio_sm.gif, shoutcast_off.gif

To:
$stylevar[imgdir_misc] - style_location/images/misc


================================================== =====
Upload: files |
================
- scast_home.xml

forums\scast_home.xml
* CHMOD 666


================================================== =====
In your Admin Control Panel |
============================

Admincp => Plugin System => Manage Products
Click [Add/Import Product]
Browse for the file "product-shoutcast_home_full.xml"
Allow Overwrite
Import


Settings:

Admincp => vBulletin Options => Shoutcast Forumhome
[ EDIT ]

Zachariah
03-22-2010, 03:49 PM
In the zip build.

product-shoutcast_home_full.xml

install.txt
upload to vBulletin
-- scast_home.xml
-- includes
---- shoutcast
------ scast.php
------ cache_templates.php
-- images
---- misc
-------- shoutcast_off.gif
-------- radio.gif
-------- im_winmp.gif
-------- im_real.gif
-------- im_qt.gif
-------- im_mirc.gif
-------- im_genre.gif

When you upload the files to your web server you want to keep the folder structure in tact.

Everything in the "upload" folder will be placed in the root of your vBulletin install.

/public_html/httpdocs/forums

/forums/scast_home.xml

The forums/includes/shoutcast folder will be made and the php files uploaded.

The images by default will upload where the default style is installed. /forums/images/misc/. If you have a custom style with a different location then upload the images to the custom /images/misc/.

$stylevar[imgdir_misc] - style_location/images/misc

ellinofatsa
03-22-2010, 04:17 PM
i cant....

DeviantFlash
03-22-2010, 06:58 PM
Just for the record, I had my host open up the appropriate port and everything works correctly.

Kudos for this great mod.

Thanks

ellinofatsa
03-23-2010, 06:08 AM
good morning look my forum thats the problem for my any help??

https://vborg.vbsupport.ru/external/2010/03/28.png

Antonio Pereira
03-23-2010, 08:15 AM
Work ok, only to have to add TCP port to firewall ;)

Its possible to add an option auto Popup (http://www.forum.info/forum/index.php?do=mpwen) .
Off course just one time after enter in the site?

Best Regards

odonel
03-23-2010, 10:47 AM
zach, one of the greatest mod indeed. a pretty widget to bring it home is all that is needed.

anybody got the quicktime player to work?

thanx

bartek24m
03-24-2010, 01:18 PM
is there any way to show it up in CMS portal ?

Zachariah
03-24-2010, 02:40 PM
is there any way to show it up in CMS portal ?

Sure, I'll look in on the CMS code on how to build a block, and see what can be made.

karkey
03-24-2010, 03:04 PM
I have been doing abit of customizing :P

On our login bar when you are logged in

Zachariah
03-24-2010, 03:39 PM
I have been doing abit of customizing :P

On our login bar when you are logged in

hey that is cool :)

Lqd
03-24-2010, 05:46 PM
I'll work on that @ the moment you can place it above the forums
- AdminCP => Settings => Options => Shoutcast Forumhome
- Location
-- Above Forums


How is it coming along ohh great developer? :D

voidmind
03-25-2010, 12:20 AM
I have been doing abit of customizing :P

On our login bar when you are logged in

Very Cool! Care to share that bit of code with us?

AliMadkour
03-25-2010, 10:19 AM
thanks !
but its always offline!
I c*mod 666 scast_home.xml but noway!

Juggernaut
03-27-2010, 12:31 AM
Do you need to have shoutcast running on the same server or website as the vBulletin forum?

maidos
03-27-2010, 10:26 AM
dont know why but the shoutcast is randomely displaying offline despite the radio is still running
firewall is allowing the port number so im not sure whats going. and i have chmoded the files to 777 yet it doesnt show online

naiker
03-31-2010, 12:23 PM
I tried on a hosting windows and linux on another and I can not do that
work

The server is 91,121,135,144
Port 8063

I've added the permissions to 777 to hosting linux scast_home.xml

But there is no way recognizes the radio all the time and offline

Sorry my English

Zachariah
03-31-2010, 02:47 PM
Do you need to have shoutcast running on the same server or website as the vBulletin forum?
No they do not - https://vborg.vbsupport.ru/showthread.php?p=2003135#post2003135

I tried on a hosting windows and linux on another and I can not do that
work

The server is 91,121,135,144
Port 8063

I've added the permissions to 777 to hosting linux scast_home.xml

But there is no way recognizes the radio all the time and offline


Sorry my English
Make sure you use . not , in IP address:
EX: 91.121.135.144 not 91,121,135,144

naiker
03-31-2010, 03:52 PM
Sorry the ip is 91.121.135.144

odonel
04-06-2010, 10:42 AM
Zach, any news on that CMS thingy?

werewolves69
04-07-2010, 11:44 PM
Man this is awesome thanks installed perfect on the first try on 4.0.2 newest

balkanboy
04-15-2010, 02:07 AM
cant get the mod to pick it up i can access my box via thru the web address

Server Status: Server is currently up and public.
Stream Status: Stream is up at 128 kbps with 0 of 32 listeners (0 unique)

but vbulletin mod saying its offline password is correct chmod 777 ..... dunno wat else to do...

Juggernaut
04-17-2010, 12:51 AM
forums/includes/shoutcast/cache_templates.php
forums/includes/shoutcast/scast.php

How about my forum, I don't have it installed in a forum directory, I have it installed directly in the public_html directory?

Juggernaut
04-17-2010, 01:09 AM
I have installed all the files in the required folders and I have CHMOD the scast_home.xml file 777 but I still get this message, even though I have all the files uploaded in the right folders.

Warning: fopen(/scast_home.xml) [function.fopen]: failed to open stream: Permission denied in [path]/includes/shoutcast/scast.php on line 130

Warning: fwrite(): supplied argument is not a valid stream resource in [path]/includes/shoutcast/scast.php on line 131

Warning: fclose(): supplied argument is not a valid stream resource in [path]/includes/shoutcast/scast.php on line 132

Warning: fopen(/scast_home.xml) [function.fopen]: failed to open stream: No such file or directory in [path]/includes/shoutcast/scast.php on line 135

ShogunLord
04-19-2010, 03:21 PM
Download & Installed as instructions...

But I have the offline message also , like others have reported....

I did notice that the scat_home.xml file would not upload via normall ftp method , had to upload via CPanels File Manager.. Permissions altered to 777 but nothing shows..

Shame as this could be a very handy addon...

Regards..

odonel
04-19-2010, 06:25 PM
check to make sure you have the right password and port# in the settings. this thing works great in the forum

ShogunLord
04-19-2010, 08:34 PM
I have triple checked everything, believe me...

It still reports as being off line....

butty
04-19-2010, 08:44 PM
hi zach great mod still using it on vb3 and gona be upgrading to vb4 soon. also would really like it working on the cms also

maidos
04-28-2010, 11:05 AM
using icecast here and i cant get the radio to work
i entered the correct pw and the server ip including port but doesnt work
as icecast it should recuire to enter a
mountpoint entry which your add onn doesnt so need help

Zachariah
04-28-2010, 12:26 PM
using icecast here and i cant get the radio to work
i entered the correct pw and the server ip including port but doesnt work
as icecast it should recuire to enter a
mountpoint entry which your add onn doesnt so need help

This is for shoutcast not icecast. I plan to make a icecast version.

Alien
04-29-2010, 08:53 PM
Is there a way to get this information on a separate page other than the forumhome?

Let's say "radio.php", if you have a dedicated radio page?

Zachariah
04-29-2010, 08:57 PM
Is there a way to get this information on a separate page other than the forumhome?

Let's say "radio.php", if you have a dedicated radio page?

I'll work on a VB version, but I do have a standalone I made.
http://www.szone.us/f6/standalone-php-shoutcast-status-5/

Juggernaut
05-01-2010, 05:14 PM
Couldn't get it to work following these instructions, will have to uninstall :(

maidos
05-02-2010, 03:08 PM
This is for shoutcast not icecast. I plan to make a icecast version.
ok thanks :)
can we know maybe an eta when this can get released.

Alien
05-02-2010, 04:53 PM
I'll work on a VB version, but I do have a standalone I made.
http://www.szone.us/f6/standalone-php-shoutcast-status-5/

Excellent! Thank you so much! I'm setting up a completely dedicated radio page and this would be excellent on top.

coberr
05-06-2010, 12:36 AM
I have been doing abit of customizing :P

On our login bar when you are logged in

https://vborg.vbsupport.ru/showpost.php?p=2009435&postcount=64

Zachariah, How can I do this ?

Please help me ...

TeknoSounds
05-17-2010, 01:13 AM
greetings, I'm trying to get this to show up for my vbAdvanced portal page. I have to pass the proper variables for it to show up on the forum page. Any help with this?
I've added the scast variable, but still no luck :(

TeknoSounds
05-21-2010, 01:49 AM
Greetings, any help getting this working on other pages besides FORUMHOME and the presets for this?
Would really like to get this into my vBAdvanced either as it shows up when placed above the forums or as a module.

Zachariah
05-21-2010, 04:19 AM
Greetings, any help getting this working on other pages besides FORUMHOME and the presets for this?
Would really like to get this into my vBAdvanced either as it shows up when placed above the forums or as a module.

Well there is a forumhome hook used to make it show on forumhome.
- edit that plugin and try to move it to global_start or global_complete.
- scast variable

Not sure on the results. I plan to make a vbadvanced block out of it soon.

TeknoSounds
05-21-2010, 04:20 AM
Thanks muchly Zachariah :D Will be looking forward to the module! In that case I'll just try the hook move and see if I can get it to show.

TeknoSounds
05-21-2010, 04:49 AM
Mmk, so changed it to global_complete in the plugin.
Under options, I set it to Custom.
Inserted {vb:raw scast} in the navbar template after the breadcrumb div (trying to set it in the same place (over/under) as VSA Donation bar, tho that is set by the plugin)

Still nothing showing though, doesn't even show in the main forums. :(
Any ideas?

For my forums, please click the first link in my sig.

p@ndu
05-21-2010, 04:21 PM
though i followed all instructions its always showing server offline but im starming in in other way

now what should i do??

plz help me in getting this.......

maidos
05-23-2010, 02:21 PM
though i followed all instructions its always showing server offline but im starming in in other way

now what should i do??

plz help me in getting this.......

maybe you are using icecast as me. this mods is just for shoutcast server

wired420
05-23-2010, 06:20 PM
Well there is a forumhome hook used to make it show on forumhome.
- edit that plugin and try to move it to global_start or global_complete.
- scast variable

Not sure on the results. I plan to make a vbadvanced block out of it soon.

I'd like to be able to attach this to the VB navbar or header section so it shows on every page on the site. Would keep this installed if I could do that. Most of my users stay in the chatbox or cms and not so much in the forums.

TeknoSounds
05-26-2010, 01:39 AM
Something interesting. At work I have WinXP and the WMP link loads up fine and shows the player. However at home I'm using Win7 and the window will continually show "loading..." though the audio stream will play.

Xencored
05-26-2010, 11:07 PM
Holysh*t cant belive ive only just seen this!!!

Tagged (will be using this :D)

p.s hope you had a good day on the 18th Zach :D you and me have the same day :)

xabo
05-28-2010, 08:29 PM
Hello,

First of all, thanks for a nice hack.

Anyhows im having a question, is there any chance to implent this as a widget on my CMS, or in vBadvance in any way?

Tried all possible ways with PHP Import and stuff...

\\ X

TeknoSounds
05-29-2010, 09:16 AM
Hello,

First of all, thanks for a nice hack.

Anyhows im having a question, is there any chance to implent this as a widget on my CMS, or in vBadvance in any way?

Tried all possible ways with PHP Import and stuff...

\\ X
Earlier he mentioned he was going to work on a vBa module. Hopefully he finishes it soon :D Would really love to put it on my portal.

WhatChaMissin
05-31-2010, 02:25 PM
I have a station that broadcast two streams (128kbps and 32kpbs). Would love for there to be a way to include both streams. I only need to have a second set of players with total listeners information for the other stream and not a second "What Playiing"

* I'm willing to pay for this modification, please see attachment

Thanks

raagaswaram
05-31-2010, 06:45 PM
Thanks a lot it works gr8 i have installed on my vb 4.0.3 but problem is i couldn't see the song details get refreshed auto.can u tell me how to do it?.

Zachariah
05-31-2010, 08:41 PM
Earlier he mentioned he was going to work on a vBa module. Hopefully he finishes it soon :D Would really love to put it on my portal.

Almost done with a VBA block.

I have a station that broadcast two streams (128kbps and 32kpbs). Would love for there to be a way to include both streams. I only need to have a second set of players with total listeners information for the other stream and not a second "What Playiing"

* I'm willing to pay for this modification, please see attachment

Thanks

That should not be a problem.

Thanks a lot it works gr8 i have installed on my vb 4.0.3 but problem is i couldn't see the song details get refreshed auto.can u tell me how to do it?.

by default there is a 120 SEC cache setup and updates are on refreash.
- I will work on auto update in new version

TeknoSounds
06-01-2010, 01:54 AM
That's awesome Zachariah :D I can't wait.

Also had some recent ideas for some other shoutcast mods. Gonna look into what all it takes to create an addon. :)

Oh and on that two stream request, it looked pretty simple but the main changes would be in the admincp settings to allow settings for multiple streams?
So I was thinking, along the lines of his request, to allow the mod to have set and show stats for multiple stations., would just have to have a different xml file, and then have an option to show the song/track/mix title in case the stream is the same one or different. All that make sense?

Anyway nothing I need, just seemed a logical step of improvement :)

Oh and did you see my Windows7 error? When attempting to use the WMP link from the addon, the window that loads up doesn't show the player, it just keeps showing "Waiting for video" although the stream play fine.

cyberlooser
06-01-2010, 06:30 AM
Almost done with a VBA block.


hi Zachariah,

how?

that's your code for the position for the module:

// Connect to the server
switch ($placecast) {
case 2 :
$placecast = 'forumhome_above_forums';
break;
case 3 :
$placecast = 'forumhome_below_forums';
break;
case 4 :
$placecast = 'forumhome_wgo_pos1';
break;
case 5 :
$placecast = 'forumhome_wgo_pos2';
break;
case 6 :
$placecast = 'forumhome_wgo_pos3';
break;
case 7 :
$placecast = 'forumhome_wgo_pos4';
break;
case 8 :
$placecast = 'forumhome_wgo_pos5';
break;
case 9 :
$placecast = '9';
break;
default :
$placecast = 'forumhome_wgo_pos2';
}

there is no option for the VGA Block :(
can't find the option 2 select where i want 2 located this Modul.

so i modified your scast.php file a little bit.
in this way it is posible to install as a Modules.

here is the code:

this code should be cleaned up...i'll do this later. while some variables doesn't in use but i forgotten which one was it :D



<?php
/* -----------------05/28/2010-----------------
This is a Nice hack to add Shoutcast VBA block Modules on your VB4 Forum Home.
Hope it helps !!!

Original by Zachariah

modified by cyberlooser/h?r


HowTo Install

Install first the Shoutcast Status 3 (VB4) !

1. save this PHP file with this code as radio.php in your ../forum / modules folder :

2.Create a new PHP module with the following values:
Module Title = "Radio"
File To Include = radio.php
Identifier = radio


playlist link is implemented
the playlist link for the players like QT / RP and MediaPlayer need to be reaktivated in this Module


================================================== =====
Tested On:

vBulletin 4.0
SHOUTcast Server v1.9.5

================================================== =====
*/




$scgroups = explode(',', $vbulletin->options['scgrp_full']);

//if (is_member_of($vbulletin->userinfo, $scgroups) OR $scgroups[0] == 0) {
// ##### VBOPTION SETTINGS
$scdef = $vbulletin->options['scname_full'];
$scip = $vbulletin->options['scip_full'];
$scport = $vbulletin->options['scport_full'];
$scpass = $vbulletin->options['scpass_full'];
$file = $vbulletin->options['scxml_full'];
$cache_tolerance = $vbulletin->options['scupdate_full'];
$placecast = $vbulletin->options['scplace_full'];
$scoff = $vbulletin->options['scoff_full'];
// ##### VBOPTION SETTINGS END

$pfad = './images/misc/';

// Check if Cache File needs updated or not
if (!is_writable($file)) {
@ chmod($folderstring, 0777);
}
// Check if Cache needs an update
if (file_exists($file)) {
clearstatcache();
// filemtime info gets cached so we must ensure that the cache is empty
$time_difference = time() - filemtime($file);
// echo "$file was last modified: " . date ("F d Y H:i:s.", filemtime($file)) . "( " . $time_difference . " seconds ago) <br>" . "The cache is set to update every " . $cache_tolerance . " seconds.<br>";
}
else {
$time_difference = $cache_tolerance;
// force update
}

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


// If server is off line
if (!$scfp) {
if ($scoff == 1) {


echo"
<html>

<head>
<title>$scdef</title>
</head>

<body >

<table width=100%>
<tr>
<td>
<img border=0 src=$pfad/shoutcast_off.gif alt=''>
<br><b>$scdef ist derzeit leider</b></br>
<img src= $pfad/offline.gif />
</td>
<tr><td colspan=2>Sorry, but at moment the radio is offline. </td></tr>
</tr>
</table>
</body>
</html>
";
}
}
else {

// ############ Shoutcast server is online #######################

if ($time_difference >= $cache_tolerance) {
// update the cache if need be
// Get XML feed from server
if ($scsuccs != 1) {
if ($scpass) {
fputs($scfp, "GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
}
else {
fputs($scfp, "GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
}
while (!feof($scfp)) {
$xmlfeed .= fgets($scfp, 8192);
}
fclose($scfp);
}
// Output to cache file
$tmpfile = fopen($file, "w+");
$fp = fwrite($tmpfile, $xmlfeed);
fclose($tmpfile);
flush();
// Outputs the cached file after new data
$xmlcache = fopen($file, "r");
$page = '';
if ($xmlcache) {
while (!feof($xmlcache)) {
$page .= fread($xmlcache, 8192);
}
fclose($xmlcache);
}
}
else {
// outputs the cached file
$xmlcache = fopen($file, "r");
$page = '';
if ($xmlcache) {
while (!feof($xmlcache)) {
$page .= fread($xmlcache, 8192);
}
fclose($xmlcache);
}
}
}
if ($scpass) {
// ######### There is a Admin password ###############

//define xml elements
$loop = array("AVERAGETIME", "CURRENTLISTENERS", "PEAKLISTENERS", "MAXLISTENERS", "SERVERGENRE", "SERVERURL", "SERVERTITLE", "SONGTITLE", "SONGURL", "WEBHITS", "STREAMHITS", "LISTEN", "STREAMSTATUS", "BITRATE", "CONTENT");
$y = 0;
while ($loop[$y] != '') {
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if ($loop[$y] == SERVERGENRE || $loop[$y] == SERVERTITLE || $loop[$y] == SONGTITLE || $loop[$y] == SERVERTITLE)
$$scphp = urldecode($$scphp);
;
$y++;
}
//get song info and history
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r = 1;
while ($songatime[$r] != "") {
$t = $r - 1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}
$averagemin = "";
$hours = intval(intval($averagetime) / 3600);
$averagemin .= ($padHours) ? str_pad($hours, 2, "0", STR_PAD_LEFT) : $hours . 'h&nbsp;';
$minutes = intval(($averagetime / 60) % 60);
$averagemin .= str_pad($minutes, 2, "0", STR_PAD_LEFT) . 'm&nbsp;';
$seconds = intval($averagetime % 60) . 's';
$averagemin .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
}
else {
// ######### There is no Admin password ###############
//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];
}

// ######### Create links and media player pages ########
// ################################################## ####
$listenamp = 'http://' . $scip . ':' . $scport . '/listen.pls';
$listenlnk = 'http://' . $scip . ':' . $scport . '/listen.pls';

// Player template requests


// Server is online display stats
if ($scfp) {
if ($streamstatus == "1") {

echo "

<html>

<head>
<title>$scdef</title>
</head>

<body>
<table width=100%>
<tr>
<td><img src=$pfad/radio.gif align=middle></td>

</tr>
<tr>
<td>
<a href=$listenamp><b>$scdef <br>
Server is </b></a>
<a href=$listenamp></a>
</td>
</tr>

<tr>
<td colspan=2 ><marquee width=98% scrolldelay=100 scrollamount=5>
<img src=$pfad/radio.gif align=middle> <b>$song[0] @ $scdef</b> <img src=$pfad/im_genre.gif align=middle></marquee><br></td>
</tr>
<tr>
<td><marquee width=98% scrolldelay=100 scrollamount=5><b>DJ: $servertitle </b> </marquee></td>
</tr>
<tr>
<td><marquee width=98% scrolldelay=100 scrollamount=5>
<b>Current Listeners $currentlisteners / $maxlisteners </b>
<b>Bitrate @ $bitrate kbps </b> </marquee> </td>
</tr>

</table>
<table width=100%>
<tr>
<td><center><a href=$listenamp><img src=$pfad/im_qt.gif align=middle> </a></center></td>
<td><center><a href=$listenamp><img src=$pfad/im_real.gif align=middle> </a></center></td>
<td><center><a href=$listenamp><img src=$pfad/im_winamp.gif align=middle> </a> </center> </td>
<td><center><a href=$listenamp><img src=$pfad/im_winmp.gif align=middle> </a></center></td>
</tr>
</table>

</body>
</html>";

}
//if ($scoff == 1)
else
{
echo"
<html>

<head>
<title>$scdef</title>
</head>

<body >

<table width=100%>
<tr>
<td>
<img border=0 src=$pfad/shoutcast_off.gif alt=''>
<br><b>$scdef ist derzeit leider</b></br>
<img src= $pfad/offline.gif />
</td>
<tr><td colspan=2>Sorry, but at moment the radio is offline</td></tr>
</tr>
</table>
</body>
</html>";
}

}



//}
?>





feel free in use and modify how u like...

RedDevil
06-04-2010, 02:49 AM
would like to klnow if anyone is planning to make a vba module for this would be great on portal, of know of one already done, not found one if there is.

Nice work :up:

TeknoSounds
06-04-2010, 03:22 AM
Just look at the previous page :) Zachariah is almost finished with his vBa module

RedDevil
06-04-2010, 03:32 AM
Im bad thanks just read :)

Lancelance
06-07-2010, 07:50 AM
Does this work on 4.0.3?

Zachariah
06-07-2010, 10:54 AM
Does this work on 4.0.3?
Yes :)

Goodfather
06-25-2010, 08:13 AM
How to insert radio to the portal as a CMS item?
Please Help


Does this work on 4.0.4 :)

Gero50
07-02-2010, 08:03 PM
Tagged for latter use.

Gold Phan7om
07-14-2010, 02:13 PM
Doesnt work on 4.0.4PL1 for me. I put in shoutcast details, connect in and it says its offline on forum..

red.death
07-14-2010, 07:17 PM
Only problem with this is that the stats dont auto refresh, you need to refresh whole site to view new stats for the radio.

maidos
07-15-2010, 02:00 PM
any news about icecast :/

Gold Phan7om
07-16-2010, 03:07 PM
The developer needs to fix it. The addon dosent even work, it doesnt pick up the shoutcast server on 4.0.5

Zachariah
07-16-2010, 10:23 PM
The developer needs to fix it. The addon dosent even work, it doesnt pick up the shoutcast server on 4.0.5

Haven't looked @ 4.0.5 yet.

Magz
07-16-2010, 10:30 PM
working fine on 4.05 here.

Gold Phan7om
07-17-2010, 07:51 AM
working fine on 4.05 here.


On mine it installs fine just doesnt pick up shoutcast server.

Magz
07-17-2010, 10:24 AM
I simply had to get my server host to open up tcp port that my shoutcast is using

Gold Phan7om
07-17-2010, 11:49 AM
I simply had to get my server host to open up tcp port that my shoutcast is using

I found out the server has no firewall blocking it.

Gold Phan7om
07-23-2010, 05:09 PM
I really need the developer to update it to 4.0.5

Blooded
07-24-2010, 02:04 AM
Works fine in localhost but when i add it to my forum its doesnt work and i got internal server error :(

What should i do? :s

BTW is 4.0.5 forum version

RedDevil
07-24-2010, 04:25 AM
Works fine in localhost but when i add it to my forum its doesnt work and i got internal server error :(

What should i do? :s

BTW is 4.0.5 forum version


Did you chmod the scast_home.xml on server? to 777, im on 4.0.5 works 100%

Blooded
07-24-2010, 05:45 PM
Yes i put the file chmod 777 but i think my host is blockin it

Gold Phan7om
07-28-2010, 07:51 AM
Its annoying now. I have no firewall blocking the ports and the addon doesnt pick it up when streaming!

TeknoSounds
09-17-2010, 07:00 AM
there is no option for the VGA Block :(
can't find the option 2 select where i want 2 located this Modul.

so i modified your scast.php file a little bit.
in this way it is posible to install as a Modules.

here is the code:

this code should be cleaned up...i'll do this later. while some variables doesn't in use but i forgotten which one was it :D



<?php
/* -----------------05/28/2010-----------------
This is a Nice hack to add Shoutcast VBA block Modules on your VB4 Forum Home.
Hope it helps !!!

Original by Zachariah

modified by cyberlooser/h?r


HowTo Install

Install first the Shoutcast Status 3 (VB4) !

1. save this PHP file with this code as radio.php in your ../forum / modules folder :

2.Create a new PHP module with the following values:
Module Title = "Radio"
File To Include = radio.php
Identifier = radio


playlist link is implemented
the playlist link for the players like QT / RP and MediaPlayer need to be reaktivated in this Module


================================================== =====
Tested On:

vBulletin 4.0
SHOUTcast Server v1.9.5

================================================== =====
*/




$scgroups = explode(',', $vbulletin->options['scgrp_full']);

//if (is_member_of($vbulletin->userinfo, $scgroups) OR $scgroups[0] == 0) {
// ##### VBOPTION SETTINGS
$scdef = $vbulletin->options['scname_full'];
$scip = $vbulletin->options['scip_full'];
$scport = $vbulletin->options['scport_full'];
$scpass = $vbulletin->options['scpass_full'];
$file = $vbulletin->options['scxml_full'];
$cache_tolerance = $vbulletin->options['scupdate_full'];
$placecast = $vbulletin->options['scplace_full'];
$scoff = $vbulletin->options['scoff_full'];
// ##### VBOPTION SETTINGS END

$pfad = './images/misc/';

// Check if Cache File needs updated or not
if (!is_writable($file)) {
@ chmod($folderstring, 0777);
}
// Check if Cache needs an update
if (file_exists($file)) {
clearstatcache();
// filemtime info gets cached so we must ensure that the cache is empty
$time_difference = time() - filemtime($file);
// echo "$file was last modified: " . date ("F d Y H:i:s.", filemtime($file)) . "( " . $time_difference . " seconds ago) <br>" . "The cache is set to update every " . $cache_tolerance . " seconds.<br>";
}
else {
$time_difference = $cache_tolerance;
// force update
}

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


// If server is off line
if (!$scfp) {
if ($scoff == 1) {


echo"
<html>

<head>
<title>$scdef</title>
</head>

<body >

<table width=100%>
<tr>
<td>
<img border=0 src=$pfad/shoutcast_off.gif alt=''>
<br><b>$scdef ist derzeit leider</b></br>
<img src= $pfad/offline.gif />
</td>
<tr><td colspan=2>Sorry, but at moment the radio is offline. </td></tr>
</tr>
</table>
</body>
</html>
";
}
}
else {

// ############ Shoutcast server is online #######################

if ($time_difference >= $cache_tolerance) {
// update the cache if need be
// Get XML feed from server
if ($scsuccs != 1) {
if ($scpass) {
fputs($scfp, "GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
}
else {
fputs($scfp, "GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
}
while (!feof($scfp)) {
$xmlfeed .= fgets($scfp, 8192);
}
fclose($scfp);
}
// Output to cache file
$tmpfile = fopen($file, "w+");
$fp = fwrite($tmpfile, $xmlfeed);
fclose($tmpfile);
flush();
// Outputs the cached file after new data
$xmlcache = fopen($file, "r");
$page = '';
if ($xmlcache) {
while (!feof($xmlcache)) {
$page .= fread($xmlcache, 8192);
}
fclose($xmlcache);
}
}
else {
// outputs the cached file
$xmlcache = fopen($file, "r");
$page = '';
if ($xmlcache) {
while (!feof($xmlcache)) {
$page .= fread($xmlcache, 8192);
}
fclose($xmlcache);
}
}
}
if ($scpass) {
// ######### There is a Admin password ###############

//define xml elements
$loop = array("AVERAGETIME", "CURRENTLISTENERS", "PEAKLISTENERS", "MAXLISTENERS", "SERVERGENRE", "SERVERURL", "SERVERTITLE", "SONGTITLE", "SONGURL", "WEBHITS", "STREAMHITS", "LISTEN", "STREAMSTATUS", "BITRATE", "CONTENT");
$y = 0;
while ($loop[$y] != '') {
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if ($loop[$y] == SERVERGENRE || $loop[$y] == SERVERTITLE || $loop[$y] == SONGTITLE || $loop[$y] == SERVERTITLE)
$$scphp = urldecode($$scphp);
;
$y++;
}
//get song info and history
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r = 1;
while ($songatime[$r] != "") {
$t = $r - 1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}
$averagemin = "";
$hours = intval(intval($averagetime) / 3600);
$averagemin .= ($padHours) ? str_pad($hours, 2, "0", STR_PAD_LEFT) : $hours . 'h&nbsp;';
$minutes = intval(($averagetime / 60) % 60);
$averagemin .= str_pad($minutes, 2, "0", STR_PAD_LEFT) . 'm&nbsp;';
$seconds = intval($averagetime % 60) . 's';
$averagemin .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
}
else {
// ######### There is no Admin password ###############
//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];
}

// ######### Create links and media player pages ########
// ################################################## ####
$listenamp = 'http://' . $scip . ':' . $scport . '/listen.pls';
$listenlnk = 'http://' . $scip . ':' . $scport . '/listen.pls';

// Player template requests


// Server is online display stats
if ($scfp) {
if ($streamstatus == "1") {

echo "

<html>

<head>
<title>$scdef</title>
</head>

<body>
<table width=100%>
<tr>
<td><img src=$pfad/radio.gif align=middle></td>

</tr>
<tr>
<td>
<a href=$listenamp><b>$scdef <br>
Server is </b></a>
<a href=$listenamp></a>
</td>
</tr>

<tr>
<td colspan=2 ><marquee width=98% scrolldelay=100 scrollamount=5>
<img src=$pfad/radio.gif align=middle> <b>$song[0] @ $scdef</b> <img src=$pfad/im_genre.gif align=middle></marquee><br></td>
</tr>
<tr>
<td><marquee width=98% scrolldelay=100 scrollamount=5><b>DJ: $servertitle </b> </marquee></td>
</tr>
<tr>
<td><marquee width=98% scrolldelay=100 scrollamount=5>
<b>Current Listeners $currentlisteners / $maxlisteners </b>
<b>Bitrate @ $bitrate kbps </b> </marquee> </td>
</tr>

</table>
<table width=100%>
<tr>
<td><center><a href=$listenamp><img src=$pfad/im_qt.gif align=middle> </a></center></td>
<td><center><a href=$listenamp><img src=$pfad/im_real.gif align=middle> </a></center></td>
<td><center><a href=$listenamp><img src=$pfad/im_winamp.gif align=middle> </a> </center> </td>
<td><center><a href=$listenamp><img src=$pfad/im_winmp.gif align=middle> </a></center></td>
</tr>
</table>

</body>
</html>";

}
//if ($scoff == 1)
else
{
echo"
<html>

<head>
<title>$scdef</title>
</head>

<body >

<table width=100%>
<tr>
<td>
<img border=0 src=$pfad/shoutcast_off.gif alt=''>
<br><b>$scdef ist derzeit leider</b></br>
<img src= $pfad/offline.gif />
</td>
<tr><td colspan=2>Sorry, but at moment the radio is offline</td></tr>
</tr>
</table>
</body>
</html>";
}

}



//}
?>





feel free in use and modify how u like...
Thanks! :D

So using a combination of yours and Zachariah's code I pieced together a vba module :) won't release the code tho since its both of ya'll's, as well as it needs to be cleaned up and properly setup. See site link in sig.

Waiting on an update for this mod tho and hoping an official vba module is released!

cavebox
10-12-2010, 09:06 AM
Hi all,

Is there a possibility to place this in the navbar template?
I'd like to show up on every page under the navbar?

thanks in advance

RedDevil
10-21-2010, 02:07 PM
seems there is an issue with VB4.0.8 not displaying correctly now, was fine before upgrade.

10 Gauge
10-27-2010, 10:50 PM
seems there is an issue with VB4.0.8 not displaying correctly now, was fine before upgrade.

+1 needs to be updated

TeknoSounds
10-28-2010, 01:34 AM
Sadly Zachariah hasn't responded to this thread since like July :-/ really sucks too, love this mod.

Antonio Pereira
10-28-2010, 07:13 AM
No one can do a fix for this?

I love this mod to.

Best Regards

daveb47
10-28-2010, 07:43 PM
Works fine with 4.08..

http://bikesntrikes.com

TeknoSounds
10-29-2010, 01:25 AM
Not really, the layout got all broken...used to look much nicer.

Even though my SC server is down right now, you can see the difference:
Old:
http://teknosounds.com/messageboard/forum.php

New:
http://dev.teknosounds.com/messageboard/forum.php

Antonio Pereira
10-29-2010, 05:22 AM
Works fine with 4.08..

http://bikesntrikes.com

look at design is broken, in your page to.
The table dont have head and right side.

Best Regards

RedDevil
10-30-2010, 04:04 PM
Sadly Zachariah hasn't responded to this thread since like July :-/ really sucks too, love this mod.


He has been online a few days ago, hopefully he is working on the problem :)

voidmind
11-09-2010, 11:01 PM
Is there any way we can get help from another developer? I really need to get the current shoutcast status in my navbar. I just need to figure out how to use the variable for the current song on the rest of the forum.

I really do appreciate all your work on this project Zach, I'm sure you've just been busy in real life.

BiZiMDiYaR
11-18-2010, 11:31 PM
Layout is not good after upgrade.. hope he can have a look at this.
Should be not that big of a problem :).

Thanks.

elkomander
12-31-2010, 04:22 AM
its not working for me on 4.1.0p2
i keep gettin "disconnect"

doctorsexy
05-07-2011, 01:18 PM
Anyone got this working with 4.1.3 yet...

ellinofatsa
05-07-2011, 02:00 PM
I have 4.1.3 i use free Listen2mymusic.com and i have ip and port bud only offline any help?

lolly01
05-08-2011, 07:46 PM
Nice Plugin but why can i not use MediaPlayer or Quicktime?

They says i need a Plugin but what is this for an Plugin?

Only WinAmp works good

Edit: Ohhh OK. The MediaPlayer Plugin for Firefox :)

TeknoSounds
05-10-2011, 04:01 AM
This mod is sorely out of date, still.

RedDevil
05-10-2011, 11:58 AM
I have 4.1.3 i use free Listen2mymusic.com and i have ip and port bud only offline any help?


your host may be blocking the port you need.

sentono
05-11-2011, 11:53 AM
is there a way to have this shoutcast mod shows in the cms ??

doctorsexy
05-23-2011, 10:36 AM
Is there anyone thats got this to work with 4.1.3 ..

doctorsexy
05-27-2011, 03:03 PM
Tryed it every way to get it to work...no go..real shame

anyone willing to give it a go

ellinofatsa
05-29-2011, 06:31 AM
its working for forum bad after 10 minits i see again ofline....why that any help please?
http://www.ellinofatsa.info/ this is my forum take a look

doctorsexy
06-05-2011, 12:39 PM
ive got Listen2mymusic.com if you pay for your server you get code to put on your website

ellinofatsa
06-05-2011, 08:05 PM
i pay for my server bad wat code do you sey?

raagaswaram
06-06-2011, 06:50 AM
please do fix the errors and make it work on 4.1.3 thanks.

ellinofatsa
06-06-2011, 07:25 AM
I ts working for my in 4,3,1 bud only for 10 minites then its sow offline i have sent tiket in my host and open port 80 port8000 and the port 31238 bud the problem stay!please why its working only for litle time?? anybady have the same problem?hot to fix that?

i have donwload the scast_home and see inside this

HTTP/1.0 200 OK
Content-Type:text/xml

<?xml version="1.0" standalone="yes" ?><!DOCTYPE SHOUTCASTSERVER [<!ELEMENT SHOUTCASTSERVER (CURRENTLISTENERS,PEAKLISTENERS,MAXLISTENERS,REPOR TEDLISTENERS,AVERAGETIME,SERVE RGENRE,SERVERURL,SERVERTITLE,SONGTITLE,SONGURL,IRC ,ICQ,AIM,WEBHITS,STREAMHITS,ST REAMSTATUS,BITRATE,CONTENT,VERSION,WEBDATA,LISTENE RS,SONGHISTORY)><!ELEMENT CURRENTLISTENERS (#PCDATA)><!ELEMENT PEAKLISTENERS (#PCDATA)><!ELEMENT MAXLISTENERS (#PCDATA)><!ELEMENT REPORTEDLISTENERS (#PCDATA)><!ELEMENT AVERAGETIME (#PCDATA)><!ELEMENT SERVERGENRE (#PCDATA)><!ELEMENT SERVERURL (#PCDATA)><!ELEMENT SERVERTITLE (#PCDATA)><!ELEMENT SONGTITLE (#PCDATA)><!ELEMENT SONGURL (#PCDATA)><!ELEMENT IRC (#PCDATA)><!ELEMENT ICQ (#PCDATA)><!ELEMENT AIM (#PCDATA)><!ELEMENT WEBHITS (#PCDATA)><!ELEMENT STREAMHITS (#PCDATA)><!ELEMENT STREAMSTATUS (#PCDATA)><!ELEMENT BITRATE (#PCDATA)><!ELEMENT CONTENT (#PCDATA)><!ELEMENT VERSION (#PCDATA)><!ELEMENT WEBDATA (INDEX,LISTEN,PALM7,LOGIN,LOGINFAIL,PLAYED,COOKIE, ADMIN,UPDINFO,KICKSRC,KICKDST, UNBANDST,BANDST,VIEWBAN,UNRIPDST,RIPDST,VIEWRIP,VI EWXML,VIEWLOG,INVALID)><!ELEME NT INDEX (#PCDATA)><!ELEMENT LISTEN (#PCDATA)><!ELEMENT PALM7 (#PCDATA)><!ELEMENT LOGIN (#PCDATA)><!ELEMENT LOGINFAIL (#PCDATA)><!ELEMENT PLAYED (#PCDATA)><!ELEMENT COOKIE (#PCDATA)><!ELEMENT ADMIN (#PCDATA)><!ELEMENT UPDINFO (#PCDATA)><!ELEMENT KICKSRC (#PCDATA)><!ELEMENT KICKDST (#PCDATA)><!ELEMENT UNBANDST (#PCDATA)><!ELEMENT BANDST (#PCDATA)><!ELEMENT VIEWBAN (#PCDATA)><!ELEMENT UNRIPDST (#PCDATA)><!ELEMENT RIPDST (#PCDATA)><!ELEMENT VIEWRIP (#PCDATA)><!ELEMENT VIEWXML (#PCDATA)><!ELEMENT VIEWLOG (#PCDATA)><!ELEMENT INVALID (#PCDATA)><!ELEMENT LISTENERS (LISTENER*)><!ELEMENT LISTENER (HOSTNAME,USERAGENT,UNDERRUNS,CONNECTTIME, POINTER, UID)><!ELEMENT HOSTNAME (#PCDATA)><!ELEMENT USERAGENT (#PCDATA)><!ELEMENT UNDERRUNS (#PCDATA)><!ELEMENT CONNECTTIME (#PCDATA)><!ELEMENT POINTER (#PCDATA)><!ELEMENT UID (#PCDATA)><!ELEMENT SONGHISTORY (SONG*)><!ELEMENT SONG (PLAYEDAT, TITLE)><!ELEMENT PLAYEDAT (#PCDATA)><!ELEMENT TITLE (#PCDATA)>]><SHOUTCASTSERVER><CURRENTLISTENERS>1</CURRENTLISTENERS><PEAKLISTENERS>2</PEAKLISTENERS><MAXLISTENERS>5000</MAXLISTENERS><REPORTEDLISTENERS>1</REPORTEDLISTENERS><AVERAGETIME>1</AVERAGETIME><SERVERGENRE>ON AIR</SERVERGENRE><SERVERURL>http://www.ellinofatsa.info:8000</SERVERURL><SERVERTITLE>ellinofatsa</SERVERTITLE><SONGTITLE>05.Ben Dj - I Wanna Take U Away</SONGTITLE><SONGURL></SONGURL><IRC>#shoutcast</IRC><ICQ>0</ICQ><AIM>N/A</AIM><WEBHITS>18</WEBHITS><STREAMHITS>8</STREAMHITS><STREAMSTATUS>1</STREAMSTATUS><BITRATE>80</BITRATE><CONTENT>audio/mpeg</CONTENT><VERSION>1.9.8</VERSION><WEBDATA><INDEX>2</INDEX><LISTEN>0</LISTEN><PALM7>10</PALM7><LOGIN>0</LOGIN><LOGINFAIL>0</LOGINFAIL><PLAYED>0</PLAYED><COOKIE>0</COOKIE><ADMIN>0</ADMIN><UPDINFO>2</UPDINFO><KICKSRC>0</KICKSRC><KICKDST>0</KICKDST><UNBANDST>0</UNBANDST><BANDST>0</BANDST><VIEWBAN>0</VIEWBAN><UNRIPDST>0</UNRIPDST><RIPDST>0</RIPDST><VIEWRIP>0</VIEWRIP><VIEWXML>4</VIEWXML><VIEWLOG>0</VIEWLOG><INVALID>0</INVALID></WEBDATA><LISTENERS><LISTENER><HOSTNAME>178.128.203.80</HOSTNAME><USERAGENT>NSPlayer/12.00.7600.16597 WMFSDK/12.00.7600.16597</USERAGENT><UNDERRUNS>0</UNDERRUNS><CONNECTTIME>278</CONNECTTIME><POINTER>0</POINTER><UID>5</UID></LISTENER></LISTENERS><SONGHISTORY><SONG><PLAYEDAT>1307354976</PLAYEDAT><TITLE>05.Ben Dj - I Wanna Take U Away</TITLE></SONG><SONG><PLAYEDAT>1307354877</PLAYEDAT><TITLE>03.Jason Born - Give Me Everything (Sunny Dee Remix)</TITLE></SONG></SONGHISTORY></SHOUTCASTSERVER>

Zachariah
06-06-2011, 11:47 PM
I do not have VB4.1.3, but I am working on new revisions of the mod.

I have a php standalone version of the script I just updated with a few things. I'll see about some VB updates.

Added:
- jquery ajax refresh (no more hitting refresh !! )
- Added phrases in lang.php for translations
- Song history only shows when a song is played vs. 19 spaces
- Added source URL (DSP URL - $serverurl)
- Added error feedback for connection problems (debug)
- Added option to hide genre, aim, icq, irc, url if not in DSP source.

TeknoSounds
06-07-2011, 10:01 AM
yay can't wait for the new version :D

ellinofatsa
06-07-2011, 12:29 PM
o thats good will waiting for this

doctorsexy
06-08-2011, 07:12 PM
Just tryed the standalone version works very well...

doctorsexy
06-08-2011, 07:37 PM
Ive got it to work on 4.1.3....

the next version can you do a auto refresh please...thanks

doctorsexy
06-20-2011, 05:53 PM
Working with 4.14.......smashin

maidos
06-22-2011, 01:01 AM
where can i get the standalone version
I do not have VB4.1.3, but I am working on new revisions of the mod.

I have a php standalone version of the script I just updated with a few things. I'll see about some VB updates.

Added:
- jquery ajax refresh (no more hitting refresh !! )
- Added phrases in lang.php for translations
- Song history only shows when a song is played vs. 19 spaces
- Added source URL (DSP URL - $serverurl)
- Added error feedback for connection problems (debug)
- Added option to hide genre, aim, icq, irc, url if not in DSP source.

doctorsexy
06-22-2011, 01:42 PM
its here (http://www.szone.us/f6/standalone-php-shoutcast-status-5/)

Adrijan
06-29-2011, 10:13 PM
Autorefresh with AJAX is most needed ...

mrteach
07-12-2011, 03:45 AM
Installed but get an error. Using the latest version of vbulletin. I do have a different template than the one that comes with VB. Followed the directions but no luck

TeknoSounds
07-12-2011, 05:57 AM
If you used the one posted here, its pretty broke. The developer is currently working on a new version, I believe theres a standalone beta on his site.

doctorsexy
07-12-2011, 08:03 AM
Nothing broke about it. works great

TeknoSounds
07-12-2011, 09:34 AM
Nothing broke about it. works great

really? the table template structure isn't broke for you?
when had it displaying on the top of the page the block outline was broke and things were skewed for me...that was about 4.1 or earlier...
waiting on the new version myself since my station isn't up right now anyway.

doctorsexy
07-12-2011, 02:12 PM
Wasn't there a problem with 4.1.. but it works very well.. im running the stand alone ,
integrated it into the forum.. works even better.. if this dosent work its some thing to do with your host blocking the port.. it was with mine

Ddiablo
07-15-2011, 09:55 AM
thank you :)

210665
07-22-2011, 06:15 PM
Hello

For me, the radio board is no longer displayed.
Server always down the state, but the radio is.
http://techmeister-board.com/forum.php?do=mp
I have vBulletin 4.1.4 Patch Level 2

-----------------------------------------------------------------------------------------------

Hallo

Bei mir wird das Boardradio nicht mehr angezeigt.
Server hat immer den Status down, jedoch das Radio l?uft.
http://techmeister-board.com/forum.php?do=mp

x3evolution
08-08-2011, 10:03 AM
*FIX for the shoutcast not showing up online is this:

Find this code in the /includes/shoutcast/scast.php file

on line 119

Origional Code:

fputs($scfp, "GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");


Fixed code to make shoutcast work


fputs($scfp, "GET /admin.cgi?sid=1&pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");


You change ?sid=1 change the 1 value to whatever stream you are trying to get shown on the forums

DjEddie
08-16-2011, 08:22 AM
Hi,

I got the standalone version from the developers website...but am not sure how to have it show up on my forum home templete? .... using their index.php file ... anyone got any suggestions?

doctorsexy
08-16-2011, 09:12 AM
iframe it ... thats how i did it....probably not the best way but it works...

DjEddie
08-16-2011, 09:19 AM
iframe it ... thats how i did it....probably not the best way but it works...

yeh was going to but wanted to try a better way than iframing ..if there is one?

doctorsexy
08-25-2011, 09:30 AM
did you find a better way....

Zachariah
08-26-2011, 11:46 AM
I am thinking of ajax tabs or something similar to display data and compress the footprint on the page.

doctorsexy
08-28-2011, 05:18 PM
Be nice if it would also resize to the off line page .. havent found anything yet..

RedDevil
09-11-2011, 02:22 PM
I am thinking of ajax tabs or something similar to display data and compress the footprint on the page.


How about a side block version (not CMS)

da_judge
09-13-2011, 09:18 PM
I have ask permission from Zachariah to post this small update.

Basically what this version does is the same as original, but with added feature

the scrolling 'Now Playing' auto updates (ajax) when song changes.

So no need to click refresh to see latest song title

for demo click HERE (http://www.nzb-magic.com)

You will need to edit 1 file (playing.php) with your shoutcast details in upload folder as described in Install.txt

Once again thanks to Zachariah for this great mod

:up:

Tested on vB 4.x

da_judge
09-13-2011, 09:22 PM
I am thinking of ajax tabs or something similar to display data and compress the footprint on the page.

I can help with that ;)

sentono
09-15-2011, 01:36 PM
I have ask permission from Zachariah to post this small update.

Basically what this version does is the same as original, but with added feature

the scrolling 'Now Playing' auto updates (ajax) when song changes.

So no need to click refresh to see latest song title

for demo click HERE (http://www.nzb-magic.com)

You will need to edit 1 file (playing.php) with your shoutcast details in upload folder as described in Install.txt

Once again thanks to Zachariah for this great mod

:up:

Tested on vB 4.x

hi da_judge & zachariah

i have installed this mod into my forum that running vb 4.1.6
and i can't see the song auto update there until i need to refresh it manually

is there anything i can do to fixing this ?
also i see a little weird with the coloum / border for the shoutcast, i'll attached the images

https://vborg.vbsupport.ru/external/2011/09/43.jpg (http://img184.imagevenue.com/img.php?image=97238_shoutcasterror_122_1036lo.jpg)

any help would be appreciated.
thx :)

doctorsexy
09-15-2011, 04:16 PM
as above with the auto refresh

da_judge
09-16-2011, 09:38 PM
Sorry guys... let me check this and get back to you...

EDIT !!!!!

I have tested on 4.1.4 and works fine

http://diablo-sat.com/

Did you edit playing.php as instructed guys

sentono
09-19-2011, 07:59 AM
Sorry guys... let me check this and get back to you...

EDIT !!!!!

I have tested on 4.1.4 and works fine

http://diablo-sat.com/

Did you edit playing.php as instructed guys

still not working :(
could you please re upload the latest code :)
thanks kindly

da_judge
09-19-2011, 06:00 PM
With referance to PM i recieved... live data streaming does NOT work on VDJ

http://www.virtualdj.com/forums/8803/VirtualDJ_Plugins/Shoutcast_plugin.html

There is reason... sorry guys :( out of my hands

SAM Broadcaster works... VDJ has dual outputs as it has two turntables

sentono
09-20-2011, 12:12 AM
With referance to PM i recieved... live data streaming does NOT work on VDJ

http://www.virtualdj.com/forums/8803/VirtualDJ_Plugins/Shoutcast_plugin.html

There is reason... sorry guys :( out of my hands

SAM Broadcaster works... VDJ has dual outputs as it has two turntables

virtual dj works.
i have installed a standalone version from this url
http://www.szone.us/f6/standalone-php-shoutcast-status-5/

and i can see the song title can auto update by itself.

but i don't know how to port a standalon version to my vb forum :(

doctorsexy
09-20-2011, 10:27 AM
Works on vdj pro.... The standalone version can be iframed into your forumhome template

sentono
09-23-2011, 12:06 AM
Works on vdj pro.... The standalone version can be iframed into your forumhome template

thx alot for yourhelp ... i'm using version 2 standalone and iframed it to the vb forum it works like charm :)

fusionpot
10-23-2011, 11:59 PM
i dont get any images...... and is there any way i can take out the current listers?

DSW
10-27-2011, 10:21 AM
hello, have vbulletin 4.1.5 and a webradio. the only forum in the title display of the song currently being played does not switch over. when I open stream with vlc or so on the title to display immediately. does anyone know a rat? am grateful for any help.

thx
DSW

BiZiMDiYaR
11-26-2011, 02:53 AM
Hi,

Any idea when the icecast version will be availeble ? :)
Would be great to be able to see this.


Thanks.

14DH01
01-21-2012, 11:08 PM
:down:
Zacharie
Your support is no good (https://vborg.vbsupport.ru/showthread.php?t=238209&page=6) (many users have not had a response from you )
I prefer to open a second webradio tab and browse the internet on my forum : :D :D

Luffy-9
01-22-2012, 03:04 PM
I want the mod but I have vb 4.1.10
Can we have this mod for the latest versions??

Zachariah
01-23-2012, 03:45 AM
I'll have to see if there is a DEV. version of vBulletin to program on.
- vB Version: 4.0.2 is my newest.

Anyone know if there is such a thing ?

GhostHunter2010
01-27-2012, 09:11 PM
installed on vb 4.1.9 works cool thx for sharin

Jamie107
04-21-2012, 12:39 PM
If anyone could kindly help me, is there any way to get a flash player to work with this mod so that it displays under or within the forum template and only displays when the shoutcast is active and in use?

Fluke667
04-23-2012, 09:27 AM
its working with Shoucast v1.9.5 but not with Shoutcast v1.9.8 can any1 upgrade this?

mp3president
05-14-2012, 01:25 PM
<font color="darkorange">Installed on vB 4.1.12 and th shoutcast is working fine...
Not great, because we have to refresh the page manualy to see what's playing NOW.
We are using an external station to cast, so the refresh should work without to much private information.
So please an update soon if possible.
I understand that it can be delayed because the quick updates of vBulletin itself.

Thank you anyway.</font>

MattGarner
05-30-2012, 06:01 AM
I don't believe this works in vB 4.2? Is there a similar plugin to this anywhere...

doctorsexy
05-30-2012, 06:26 AM
I don't believe this works in vB 4.2? Is there a similar plugin to this anywhere...

Dont think so for vb ... but theres plenty to adapt of the net...did it with my site

LouiseWilson
06-02-2012, 05:47 AM
This works in V 4.2.0 I have test run and it works fine with no issues at present

Lightwizzard
06-02-2012, 02:31 PM
works normaly under vb 2.0

we have no problems yet

TeknoSounds
06-27-2012, 10:41 AM
*FIX for the shoutcast not showing up online is this:

Find this code in the /includes/shoutcast/scast.php file

on line 119

Origional Code:

fputs($scfp, "GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");


Fixed code to make shoutcast work


fputs($scfp, "GET /admin.cgi?sid=1&pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");


You change ?sid=1 change the 1 value to whatever stream you are trying to get shown on the forums

This fix is still needed in the 3.1 standalone version downloaded from the post on page 12.

doctorsexy
07-04-2012, 07:51 AM
Anyone tell me how to get this to refresh with out refreshing the page...:D

dragonmatrix
07-06-2012, 01:19 AM
Anyone tell me how to get this to refresh with out refreshing the page...:D

Was looking for this also............

MattGarner
09-23-2012, 09:22 PM
It used to work with latest vbulletin but its broken now. Hmmm

Gemma
11-26-2012, 11:24 AM
Been playing around between this and the standalone version. Pretty cool add-on :)

Nirjonadda
12-09-2012, 09:53 AM
SHOUTcast Profiles are offline.Where i can get Server IP,Server Port?

Mauro79
01-02-2013, 01:32 AM
Been playing around between this and the standalone version. Pretty cool add-on :)

and put that addon?
Can you help me.
thanks
happy new year

AngusSmith
03-23-2013, 09:04 PM
I can confirm this is working OK with VB 4.2.0, and is very good.

Only problem (like others) is that you have to refresh the page on the forum to see current song details as it doesn't auto-update.

Any ideas how to fix this?

AngusSmith
03-29-2013, 02:34 PM
Well, I tried all suggestions and still cannot get it to autoupdate.

So I installed the standalone version and used an iframe.

Working perfect now, easy to customise too and looks much better.

:)

Only problem (like others) is that you have to refresh the page on the forum to see current song details as it doesn't auto-update.

Any ideas how to fix this?

da_judge
06-14-2013, 05:45 PM
Auto update here... working

https://vborg.vbsupport.ru/showpost.php?p=2245553&postcount=179

Navi-Mann
08-11-2013, 04:27 PM
Hello

I have built the
Actually everything goes well

Only the songs and DJ on Air update is not why? :confused:

sorry for my english
__________________________

Hallo

Ich habe das Eingebaut
Eigentlich geht auch alles

Nur die Songs und DJ on Air aktualisieren sich nicht warum :confused:

sorry f?r mein Englisch

wired420
10-14-2013, 04:18 AM
Using code that will no longer be supported in 2 months at end of life cycle of php 5.2.x.

mystiksven
10-24-2014, 09:42 PM
Getting these errors after upgrading to 4.2.2 patch level 2

Warning: Function ereg_replace() is deprecated in ..../includes/shoutcast/scast.php on line 162

Warning: Function ereg_replace() is deprecated in ..../includes/shoutcast/scast.php on line 164

ozzy47
10-25-2014, 11:35 AM
Open the file includes/shoutcast/scast.php and replace 12 instances of ereg_replace with preg_replace

mystiksven
10-25-2014, 06:08 PM
Many Thanks ozzy47 :D

ozzy47
10-25-2014, 07:10 PM
Not a problem, glad to help. :)

mystiksven
10-25-2014, 08:05 PM
Of any reason the radio is always shown offline now :confused:

ozzy47
10-25-2014, 08:06 PM
I dunno, I do not have this mod installed, and have never used it.

mystiksven
02-01-2015, 09:03 PM
Did someone find a fix for this maybe :p