701
JackJ
Re: Streaming Audio Mod
  • 2003/9/18 21:29

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


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?




702
JackJ
Re: Streaming Audio Mod
  • 2003/9/18 21:09

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Quote:

Kolibri wrote:
A few questions about Kitsou's streaming audio block.

1) How can I get a pulldown menu under the player in which some channels are predefined?

2)How to add an option to load the player into a new frame which will continue the channel/music while browsing the site.

3)Howto make the media player not start automatically.

4)Can I change the skin of the player?

Thanks in advance.

I already posted a module request at the Module Development Team based on a existing PHPNuke Module...


I have a radio mod called xp-radio on my site which I downloaded from some XOOPS Site, german or french I think, which you can customise.. Search on google for xp-radio

It has pop up selection etc, add as many stations as you like, although I customised my block not to play on the main page, no point in that, when users browse to other pages the radio goes off..popups are far better..if this is of any use to you let me know if I can help

You can make the block look like you wish with html

macambridge.com




703
JackJ
Fix for multiple blocks in Admin
  • 2003/9/17 20:39

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Go into Groups and then the "Webmasters" group. Then put a checkmark in all the "system admin rights" boxes at the top, and then click "Update" at the bottom.

Be careful to not click "Update" until you have put these checkmarks in, or you will lose your system admin block.





TopTop
« 1 ... 68 69 70 (71)



Login

Who's Online

172 user(s) are online (116 user(s) are browsing Support Forums)


Members: 1


Guests: 171


Mamba,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits