echo "<br>";
echo "<div align=\"center\">";
echo "<embed src=\"http://www.radiosurge.com/hot108.asx\" width=\"200\" height=\"42\"></embed>";
echo "<br>";
echo "<a href=\"http://hot108.com\">HotJamz 108</a></div>";
echo "<div align=\"center\">";
echo "<a href=\"http://super-forums.be\">108 Block By Robert420</a></div>";
Create a new block make sure you select phpbox
Preview http://super-forums.be
very cool, can you make me one with a different station?
Yea you can. All you have to do is change this
src=\"http://www.radiosurge.com/hot108.asx\"
Remember to keep the backslashes.
Works great!!!!
Here's a list of internet radio feeds world wide. Hope you don't mind me posting it. Might save someone the trouble.....
http://www.live-radio.net/info.shtml
However, would there be a way to have lets say 5 different generes of music to choose from. Maybe links and then the player comes up when a link is clicked.?. Just in case you have that Country Western fan (lol) lurking in the forum. Wouldn't want him to be blasted with Techno when he arrives at the forum and vise-versa.....
Also the player is by default "ON", is there a way to have one "off" until the user turns it on. With this one, when you turn it off and click to the next page in the forum it cranks up again...... which could get on the user nerves a bit.
Just some thoughts...
I'm working on it, if I gain any ground, I will report back... :uglystupid2:
The Possibilities are endless with TinyPortal!!!!
Cheers!!!! Great work!!!!
trying one for country but I cant find a .asx file??
Fixed: Made my own ;D
Been Playing with <embed a bit and got this working for me using a HTML box -- the player will only start when the button is pressed and will play random songs.
<EMBED SRC="http://www.rranderson.com/web_music3.asx" HEIGHT="42" WIDTH="100%" AUTOSTART="FALSE">
Can this be made to work with .pls too? (Winamp supporting)
nice script! the only problem i have is that anytime a link is clicked it has to buffer again, so there isn't any scrolling through the forums while listening unless you don't mind it cutting out every time you click on posts, unless i dont have something setup correctly.
anyway of getting this in a popup window maybe? that would solve the cutting in and out problem.
Quick and dirty you could make an html page with the properties you want (as a pop-up) and then just add the embed code you were just given to it. Create a link to it in a block. Not exactly what you want, but I don't think it could work in TP like that unless Bloc hard coded it in.
thanks ichbin, i will play around with this later on as i get a little better with coding. i don't think i am quite ready to attempt your idea just yet. ??? ;) i will keep an eye on the developement of this code because i really like it.
IchBin.....what can i say, you are a genius. well, you and the others who posted with things they have done with this script, extacy, and ray. i created a block with links labeled with the different styles of music, then built html/javascript popup pages for each one with the radio feeds in them, THANK YOU GOOGLE ;D , and then uploaded those html files to my server and now you just click what you want to hear and a little popup box opens with the radio buttons and loads the station so the radio plays constantly as you go through the forum or elsewhere on the net. i may sound like a kid on christmas, but for me to do this is nothing short of a miracle as i have only been using javascripts, html, and basically anything else to do with web building, for only about a month or less. i am now working on making just one popup with each style of music linked seperately within that popup so they can change if they want without coming back to the mainpage.
thank you very much!
Awesome! Glad I could put in all that hard work. :P
that is great rbh -- can not wait to see what you come up with -- I am playing with it also , so if i get more i will post it
You can add a radio online block by add this code to a Scriptblock or HTMLblock in TP settings:
<center><object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="160" height="63"></center>
Ã, Ã, Ã, Ã, <param name="URL" value="YOUR RADIO (OR SONG) URL">
Ã, Ã, Ã, Ã, <param name="rate" value="1">
Ã, Ã, Ã, Ã, <param name="balance" value="0">
Ã, Ã, Ã, Ã, <param name="currentPosition" value="0">
Ã, Ã, Ã, Ã, <param name="defaultFrame" value>
Ã, Ã, Ã, Ã, <param name="playCount" value="1">
Ã, Ã, Ã, Ã, <param name="autoStart" value="-1">
Ã, Ã, Ã, Ã, <param name="currentMarker" value="0">
Ã, Ã, Ã, Ã, <param name="invokeURLs" value="-1">
Ã, Ã, Ã, Ã, <param name="baseURL" value>
Ã, Ã, Ã, Ã, <param name="volume" value="80">
Ã, Ã, Ã, Ã, <param name="mute" value="0">
Ã, Ã, Ã, Ã, <param name="uiMode" value="full">
Ã, Ã, Ã, Ã, <param name="stretchToFit" value="0">
Ã, Ã, Ã, Ã, <param name="windowlessVideo" value="0">
Ã, Ã, Ã, Ã, <param name="enabled" value="-1">
Ã, Ã, Ã, Ã, <param name="enableContextMenu" value="-1">
Ã, Ã, Ã, Ã, <param name="fullScreen" value="0">
Ã, Ã, Ã, Ã, <param name="SAMIStyle" value>
Ã, Ã, Ã, Ã, <param name="SAMILang" value>
Ã, Ã, Ã, Ã, <param name="SAMIFilename" value>
Ã, Ã, Ã, Ã, <param name="captioningID" value>
Ã, Ã, Ã, Ã, <param name="enableErrorDialogs" value="0">
Ã, Ã, Ã, Ã, <param name="_cx" value="8202">
Ã, Ã, Ã, Ã, <param name="_cy" value="8202">
Ã, Ã, Ã, </object></center>
And result will as:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fjan11.imgshare.us%2Fbrihbg.jpg&hash=57d0ede715f01409e140896bcb702854b8a32e67)
Thanks Guys!!
Hey rbh,
Let us know what you come up with... I havent had much time to play with it, but hope to be back at it soon..
Thanks!!!
edit:
found it!
Works Great w/ ff,ie!!!!!!!!
elpvn, I haven't tried, but I think that script only works for IE. You need embed src to show for FF as well.
Here's what I am using as a center block in my chatroom...
It works with IE and Firefox
<OBJECT id='mediaPlayer' width="728" height="63"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/ mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player componentsââ,¬Â¦' type='application/x-oleobject'>
<param name='fileName' value="http://a968.l2001942559.c20019.g.lm.akamaistream.net/D/968/20019/v0001/reflector:42559">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="80">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="8202">
<param name="_cy" value="8202">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='0'
bgcolor='darkblue' showcontrols='1' showtracker='1'
showdisplay='1' showstatusbar='1' videoborder3d='0' width="728" height="63"
src="http://a968.l2001942559.c20019.g.lm.akamaistream.net/D/968/20019/v0001/reflector:42559" autostart='1' designtimesp='5311' loop='0'>
</EMBED>
</OBJECT>
To change the channel change
http://a968.l2001942559.c20019.g.lm.akamaistream.net/D/968/20019/v0001/reflector:42559
to whatever stream you want...
ah the old days before they invented TV :D lol
how can you have multiple channels
with a choice say between 3
daniel d
This HTML block lets u pick a station and tune it:
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg232.imageshack.us%2Fimg232%2F6219%2Fradiorn0.th.jpg&hash=133b6ffda9a3e5b466a402c45deb5fc2d56d3880) (http://img232.imageshack.us/my.php?image=radiorn0.jpg)
<SELECT id=cancion onchange="document.getElementById('MediaPlayer').filename=document.getElementById('cancion').value;document.getElementById('MediaPlayer').autostart=1;" size=1 name=Music >
<OPTION selected>-------Tune-------</OPTION>
<OPTION value="http://209.9.238.4:8786">Anime (Kawaii)</OPTION>
<OPTION value="http://scfire-chi0l-2.stream.aol.com:80/stream/1022">Rock (The Buz)</OPTION>
</SELECT>
<object id="MediaPlayer" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components..." type="application/x-oleobject" height="147" width="155">
<param name="FileName" value="http://scfire-chi0l-2.stream.aol.com:80/stream/1022" valuetype="ref" ref=""><!--http://scfire-chi0l-2.stream.aol.com:80/stream/1022-->
<param name="AudioStream" value="1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="0">
<param name="AnimationAtStart" value="0">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value="">
<param name="BufferingTime" value="5">
<param name="CaptioningID" value="">
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value="">
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="1">
<param name="DisplaySize" value="1">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="-1">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="0">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value="">
<param name="SAMIStyle" value="">
<param name="SAMIFileName" value="">
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="-1">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="-1">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="0">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="333333">
<param name="VideoBorder3D" value="-1">
<param name="Volume" value="-1">
<param name="WindowlessVideo" value="-1">
<embed type="application/x-mplayer2" src="all.pls" name="MediaPlayer" height="100" width="460">
</object>
<a href="http://plugindoc.mozdev.org/resources/wmp9.reg">Cant see the player? click here</a>
Chulian.
I tried your code in an html block, and it didnt work :)
Is there something I missed??
Did you try it in a script block?
Hey Ichbin..
Yea buddy.. I tried html,script and even PHP block.
All it showed was the code...
But alas, I tried html block the following morning, and it installed ok.
Just jumped on to say it is fine now :)
Thanks for your reply mate.
All the best :)
chulians code works fine but only in IE and not in Firefox. Any help on that ?
Quote from: whiskey on January 11, 2008, 11:11:01 AM
chulians code works fine but only in IE and not in Firefox. Any help on that ?
Any help ?
sorry mate, i use simple javascrirpt but wont work on firefox, only fine in IE , maybe because is a microsoft player >:(
yes you need a plugin for firefox to allow M$ media player
https://addons.mozilla.org/en-US/firefox/browse/type:7
Scroll down to the bottom
the problem is when u try to change radio station with the select list on the block i made, it uses javascript to change the radio station but only changes it on IE, in firefox u can only hear the default radio station :(