TinyPortal

Development => Block Codes => Topic started by: robert420 on December 15, 2005, 12:02:12 AM

Title: Radio Block
Post by: robert420 on December 15, 2005, 12:02:12 AM
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
Title: Re: Radio Block
Post by: Tee on December 15, 2005, 12:14:06 AM
very cool, can you make me one with a different station?
Title: Re: Radio Block
Post by: JayBachatero on December 15, 2005, 02:49:40 AM
Yea you can.  All you have to do is change this
src=\"http://www.radiosurge.com/hot108.asx\"

Remember to keep the backslashes.
Title: Re: Radio Block
Post by: extacy on December 16, 2005, 07:45:35 AM
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!!!!

Title: Re: Radio Block
Post by: Ray on December 24, 2005, 09:57:29 PM
trying one for country but I cant find a .asx file??

Fixed: Made my own ;D
Title: Re: Radio Block
Post by: Ray on December 30, 2005, 06:08:21 PM
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">
Title: Re: Radio Block
Post by: timtimtim on December 31, 2005, 06:55:45 PM
Can this be made to work with .pls too? (Winamp supporting)
Title: Re: Radio Block
Post by: rbh on January 03, 2006, 05:00:35 AM
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.
Title: Re: Radio Block
Post by: rbh on January 03, 2006, 02:23:39 PM
anyway of getting this in a popup window maybe? that would solve the cutting in and out problem.
Title: Re: Radio Block
Post by: IchBin on January 03, 2006, 03:17:07 PM
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.
Title: Re: Radio Block
Post by: rbh on January 03, 2006, 06:17:49 PM
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.
Title: Re: Radio Block
Post by: rbh on January 04, 2006, 03:21:08 AM
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!
Title: Re: Radio Block
Post by: IchBin on January 04, 2006, 06:08:31 AM
Awesome! Glad I could put in all that hard work. :P
Title: Re: Radio Block
Post by: Ray on January 04, 2006, 06:51:18 AM
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
Title: Re: Radio Block
Post by: elpvn on January 12, 2006, 05:27:59 AM
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)
Title: Re: Radio Block
Post by: extacy on January 23, 2006, 07:57:37 AM
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!!!!!!!!
Title: Re: Radio Block
Post by: Xarcell on January 24, 2006, 08:37:00 PM
elpvn, I haven't tried, but I think that script only works for IE. You need embed src to show for FF as well.
Title: Re: Radio Block
Post by: Lord Anubis on December 12, 2006, 01:22:22 AM
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...
Title: Re: Radio Block
Post by: akulion on December 12, 2006, 01:18:39 PM
ah the old days before they invented TV :D lol
Title: Re: Radio Block
Post by: double_d on April 19, 2007, 09:12:48 AM
how can you have multiple channels
with a choice say between 3

daniel d
Title: Re: Radio Block
Post by: chulian1819@gmail.com on September 22, 2007, 07:39:06 PM
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>


Title: Re: Radio Block
Post by: FERNSIDEâ„¢ on December 31, 2007, 06:41:22 AM
Chulian.

I tried your code in an html block, and it didnt work  :)

Is there something I missed??
Title: Re: Radio Block
Post by: IchBin on January 02, 2008, 07:39:56 AM
Did you try it in a script block?
Title: Re: Radio Block
Post by: FERNSIDEâ„¢ on January 02, 2008, 10:21:01 AM
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 :)
Title: Re: Radio Block
Post by: 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 ?
Title: Re: Radio Block
Post by: whiskey on January 14, 2008, 11:54:39 AM
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 ?
Title: Re: Radio Block
Post by: chulian1819@gmail.com on May 04, 2008, 02:51:02 PM
sorry mate, i use simple javascrirpt but wont work on firefox, only  fine in IE , maybe because is a microsoft player  >:(
Title: Re: Radio Block
Post by: Lord Anubis on May 04, 2008, 04:37:42 PM
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
Title: Re: Radio Block
Post by: chulian1819@gmail.com on May 04, 2008, 06:19:36 PM
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  :(