Advertisement:

Author Topic: [Tip/Trick] How to add a Nice radio player for your forum  (Read 17525 times)

Offline ImperiumRSPS

  • Newbie
  • *
  • Posts: 1
[Tip/Trick] How to add a Nice radio player for your forum
« on: April 18, 2012, 04:54:40 AM »
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: [Select]
<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>

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: [Select]
<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>
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.

Offline XHIBIT911

  • Jr. Member
  • **
  • Posts: 264
    • PSHomeSource.com
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #1 on: June 21, 2012, 05:36:38 PM »
Bad link

Offline Putyrski Nancy

  • Newbie
  • *
  • Posts: 1
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #2 on: June 23, 2012, 08:10:12 AM »
Not working for me. Something is wrong.


Offline pujan

  • Newbie
  • *
  • Posts: 1
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #3 on: July 26, 2012, 06:28:12 AM »
Thank you so much for the post...
Can I Add this radio player in my this blog???
My blog is:allactivationzone.blogspot.com

Offline gerzok

  • Semi-Newbie
  • *
  • Posts: 27
  • Gender: Male
    • @gerzok on Twitter
    • Grupo ClickMedia
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #4 on: July 27, 2012, 07:41:39 PM »
This radio is yours?  :o

Offline Night09

  • SMF Hero
  • ******
  • Posts: 1,940
  • Gender: Male
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #5 on: July 27, 2012, 07:59:13 PM »
Anyone coming up blank dont forget you could edit the stream sources to other stations or anyone a bit decent with code could make it into a list instead with a choice. If the method works sound then the code is valuable for that alone not the stream source. ;)

Offline tMicky

  • Jr. Member
  • **
  • Posts: 146
  • Gender: Female
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #6 on: September 19, 2012, 05:18:15 AM »
will this work in a portal?

Offline tMicky

  • Jr. Member
  • **
  • Posts: 146
  • Gender: Female
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #7 on: September 23, 2012, 03:22:31 AM »
hello?

Offline |BC|Shady

  • Newbie
  • *
  • Posts: 3
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #8 on: December 04, 2012, 10:24:32 AM »
Image?

Offline farhanahanat010

  • Newbie
  • *
  • Posts: 1
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #9 on: December 04, 2012, 01:35:01 PM »
good work friend, can i use it any website or blog or free blog? ???

Offline Crozz

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #10 on: December 06, 2012, 09:30:35 AM »
Your link doesn't show any demo, but I like your method. Thanks.

Offline Inti31

  • Jr. Member
  • **
  • Posts: 247
    • Chevrolet Epica & Malibu Community
Re: [Tip/Trick] How to add a Nice radio player for your forum
« Reply #11 on: December 06, 2012, 01:26:54 PM »
thx for the html... i tested it but implemented the above code into the server settings in the maintenance area

so now visitors/member can listen to the stream whil waiting for the end of maintenance... - works in Chrome, IE anf firefox

by the way - it needs for firefox the wmpfirefoxplugin

Code: [Select]
Okay, faithful users - I'll be back soon... enjoy the radio stream...<br /><iframe src="radioup.html" width="400" height="125" scrolling="no" frameborder="0"></iframe>


Demo...
my forum
my testforum

my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber