Customizing SMF > Tips and Tricks
[Tip/Trick] How to add a Nice radio player for your forum
ImperiumRSPS:
Hey Guys, Wouldn't let me post in Tips&Tricks so if a mod could move would be great. I've spent alot of time here but only registered today if i'm honest, I've learnt alot here so i'm going to give something back.
Firstly you're going to want a Radio Stream. I used RadioUp's as they are a Free online radio station.
Make a new file called radioplayer.html or similar, i called mine radio.html and insert this into there.
--- Code: ---<html>
<head>
<title>ImperiumRSPS - Radio Player</title>
<head>
<body bgcolor="#000000">
<div align="center" style="color:#fff;">
<p>This Radio player is supplied by RadioUp.com</p>
<OBJECT id=WM classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="62" width="300" type="video/x-ms-wma">
<PARAM NAME="autoStart" VALUE="-1">
<param name="URL" value="http://www.radioup.com/listen/mix.asx">
<PARAM NAME="AnimationatStart" Value="1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="playCount" value="0">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="volume" value="50">
<!-- param name="volume" value="25" -->
<param name="mute" value="0">
<!-- param name="uiMode" value="mini" -->
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="1">
<param name="currentPosition" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="0">
<param name="fullScreen" value="0">
<param name="enableErrorDialogs" value="0">
<param name="defaultFrame" value>
<param name="baseURL" value>
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<EMBED TYPE="application/x-mplayer2"
PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"
ID=WM
Width="300"
Height="62"
Src="http://www.radioup.com/listen/mix.asx">
</EMBED>
</OBJECT>
</div>
</body>
</html>
--- End code ---
Then save it.
Now go to your theme location, and edit your index.template.php
Be sure to make a back-up
Now wherever you would like this to appear add this.
--- Code: ---<a onClick="window.open(\'http://yoursite.com/radio.html\',\'help\',\'height=125,width=400,top=0,left=0,scrollbars=no\')">Listen To Our Radio!</a>
--- End code ---
and you're done, Post feedback and errors and i'll try my best to help.
Demo: imperiumrsps.com - just click the "Listen to Our radio" link.
XHIBIT911:
Bad link
Putyrski Nancy:
Not working for me. Something is wrong.
pujan:
Thank you so much for the post...
Can I Add this radio player in my this blog???
My blog is:allactivationzone.blogspot.com
gerzok:
This radio is yours? :o
Navigation
[0] Message Index
[#] Next page
Go to full version