More for previous
I did not install this as a module, here is my customisation, I am no coder, but it works for me
Edited this, I posted wrong code a min ago
I called this popup.php
<?php
/****************************************************************
* Block XP-Radio Adapté à XOOPS par LLaumgui pour XPerience-Fr *
*
http://www.xperience-fr.net *
* *
* Module sous licence gpl *
****************************************************************/
?>
<script language="JavaScript" type="text/JavaScript">
function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;}</script>
<?php
if ($station == capitalfm){$staradio = "www.radio-now.co.uk/l/capitalfmlo.asx";}
elseif ($station == classicgold) {$staradio = "62.25.96.7/classicgold";}
elseif ($station == powerfm) {$staradio = "streaming.capitalinteractive.co.uk/power_low";}
elseif ($station == smoothjazz) {$staradio = "smoothjazz.com/smooth.asx";}
elseif ($station == radiostorm) {$staradio = "64.236.34.141:80/stream/1023";}
elseif ($station == talksport) {$staradio = "194.162.227.149/audio/talksport.asx";}
elseif ($station == studentbroadcast) {$staradio = "www.sbn.co.uk/SBNLive.asx";}
elseif ($station == premierchristian) {$staradio = "www.premier.org.uk/streaming/premier.asx";}
elseif ($station == radioscotland) {$staradio = "62.25.96.7/rrs/";}
elseif ($station == talkgospel) {$staradio = "www.premier.org.uk/streaming/premierg.asx";}
elseif ($station == rtl2) {$staradio = "cache.yacast.fr/V4/rtl2/rtl2.asx";}
elseif ($station == crfm) {$staradio = "audio.musicradio.com/2CR.asx";}
elseif ($station == ucbeurope) {$staradio = "62.25.96.7/ucbinspiration";}
elseif ($station == ucbbible) {$staradio = "62.25.96.7/ucbbible";}
echo "
<title>$station</title><body bgcolor=\"#000033\"><body oncontextmenu=\"return false\" ondragstart=\"return false\" onselectstart=\"return false\">
<center><img src=\"radio.gif\"><p><p>
<object id=\"NSPlay\" width=\"180\" height=\"50\"
classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"
codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\"
standby=\"Chargement...\"
type=\"application/x-oleobject\" align=\"middle\">
<param name=\"AudioStream\" value=\"-1\">
<param name=\"AutoSize\" value=\"0\">
<param name=\"AutoStart\" value=\"-1\">
<param name=\"AnimationAtStart\" value=\"-1\">
<param name=\"AllowScan\" value=\"-1\">
<param name=\"AllowChangeDisplaySize\" value=\"-1\">
<param name=\"AutoRewind\" value=\"0\">
<param name=\"Balance\" value=\"0\">
<param name=\"BufferingTime\" value=\"5\">
<param name=\"ClickToPlay\" value=\"-1\">
<param name=\"CursorType\" value=\"0\">
<param name=\"CurrentPosition\" value=\"-1\">
<param name=\"CurrentMarker\" value=\"0\">
<param name=\"DisplayBackColor\" value=\"0\">
<param name=\"DisplayForeColor\" value=\"16777215\">
<param name=\"DisplayMode\" value=\"0\">
<param name=\"DisplaySize\" value=\"4\">
<param name=\"Enabled\" value=\"-1\">
<param name=\"EnableContextMenu\" value=\"-1\">
<param name=\"EnablePositionControls\" value=\"-1\">
<param name=\"EnableFullScreenControls\" value=\"0\">
<param name=\"EnableTracker\" value=\"-1\">
<param name=\"Filename\" value=http://".$staradio.">
<param name=\"InvokeURLs\" value=\"-1\">
<param name=\"Language\" value=\"-1\">
<param name=\"Mute\" value=\"0\">
<param name=\"PlayCount\" value=\"1\">
<param name=\"PreviewMode\" value=\"0\">
<param name=\"Rate\" value=\"1\">
<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=\"0\">
<param name=\"ShowGotoBar\" value=\"0\">
<param name=\"ShowPositionControls\" value=\"0\">
<param name=\"ShowStatusBar\" value=\"-1\">
<param name=\"ShowTracker\" value=\"0\">
<param name=\"TransparentAtStart\" value=\"0\">
<param name=\"VideoBorderWidth\" value=\"0\">
<param name=\"VideoBorderColor\" value=\"0\">
<param name=\"VideoBorder3D\" value=\"0\">
<param name=\"Volume\" value=\"-650\">
<param name=\"WindowlessVideo\" value=\"0\">
<embed type=\"application/x-mplayer2\"pluginspage=\"http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/\"filename=http://62.25.96.7/classicgold src= showcontrols=\"1\" showdisplay=\"0\" showstatusbar=\"1\" width=\"100\" height=\"50\" align=\"middle\">
</embed>
</object><br>
<form name=\"form1\">
<select name=\"Radios\" onChange=\"MM_jumpMenu('parent',this,0)\">
<option selected>Stations</option>
<option value=\"popup.php?station=crfm\">2CRFM</option>
<option value=\"popup.php?station=premierchristian\">Premier Christian</option>
<option value=\"popup.php?station=capitalfm\">Capital FM</option>
<option value=\"popup.php?station=radioscotland\">Radio Scotland</option>
<option value=\"popup.php?station=powerfm\">Power FM</option>
<option value=\"popup.php?station=radiostorm\">Radio Storm 80's</option>
<option value=\"popup.php?station=talkgospel\">Talk Gospel</option>
<option value=\"popup.php?station=smoothjazz\">smooth jazz</option>
<option value=\"popup.php?station=studentbroadcast\">Student Broadcast</option>
<option value=\"popup.php?station=classicgold\">ClassicGold</option>
<option value=\"popup.php?station=talksport\">Talk Sport</option>
<option value=\"popup.php?station=ucbeurope\">UCB Europe</option>
<option value=\"popup.php?station=ucbbible\">UCB Bible</option>
</select>
</form>
<FORM>
<INPUT type=\"button\" value=\"Radio 4 Player\" onClick=\"window.open('http://www.bbc.co.uk/radio/aod/radio4.shtml?fm')\">
</FORM>
<FORM>
<INPUT type=\"button\" value=\"Close Window\" onClick=\"window.close()\">
</FORM><br>
";
?>
//End of popup.php
My Custom Block:-- Hashed code, I am sure you can improve
<center><img border="0" src="radio.gif" width="108" height="96"></p>
<br<br>
<FORM>
<INPUT type="button" value="Popup Select" onClick="window.open('http://www.macambridge.com/popup.php','mywindow','width=220,height=330',scrollbars=0)">
</FORM><br>
<FORM>
<INPUT type="button" value="Radio4 Player" onClick="window.open('http://www.bbc.co.uk/radio/aod/radio4.shtml?fm')">
</FORM>
<br>
<hr>
</center>
//end of hashed code
//copy radio.gif from my site if you wish
A lot of the stuff in the code is not needed, I just pasted it all from the module with my changes. Some of the french stations listed don't have matching "option value=", so they won't appear as a selection. Perhaps a coder could improve this and include real player etc. Internet_Radio for Postnuke is very good if someone could port it
A couple of the radio links are not functional because the stations are off, but you get the idea, nice one to play with?