https://www.icyphoenix.com/viewtopic.php?f=28&t=6165&p=49876#p49876
-----------------------------------
tormentor
Sun 15 Aug, 2010 16:04

Re: [MOD RELEASE ICY1.3] Media Mod For Icy Phoenix 1.3
-----------------------------------
Ok, here are the mods that I made in order to have an universal music player and not the windows media player, as I told before, with the default files this mod works only on window$ computer:

Here is the page of a good free universal music player

http://musicplayer.sourceforge.net/

the music player can be downloaded at

http://sourceforge.net/projects/musicplayer/files/musicplayer/player-0.2.3/xspf_player-0.2.3.zip/download

(there are three versions, choose whatever you want)

I placed it in my root directory, otherwise modify the script accordingly (template files).

here are my mods:

music_page.php

find

[code linenumbers=false]'U_SONG' => append_sid('music_song.' . PHP_EXT . '?song_id=' . $song_id),[/code]

replace with:

[code linenumbers=false]	'U_SONG' => (MEDIA_FILES_PATH . $thissong['song_filename']),[/code]

music_page_body.tpl and music_show_body.tpl

find:
[code linenumbers=false]	      <!-- BEGIN media -->
		  <div align="center">
	<object width="480" height="344" id="MediaPlayer1" 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="{U_SONG}" />
        <param name="animationatStart" value="true" />
        <param name="transparentatStart" value="true" />
        <param name="autoStart" value="true" />
        <param name="autoSize" value="true">
        <param name="showControls" value="true" />
        <param name="Volume" value="-300" />
        <embed width="480" height="344" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="{U_SONG}" name="MediaPlayer1" autoStart="true" showControls="true" autoSize="true"></embed>
      </object>
	  </div>
      <!-- END media -->[/code]

replace with:

(change yourdomain.com with your site name or add the IP_ROOT_PATH) 

[code linenumbers=false]<!-- BEGIN media -->
<div align="center">
<object type="application/x-shockwave-flash"
data="http://yourdomain.com/xspf_player.swf&autoplay=true&song_url={U_SONG}&song_title={SONG_TITLE}" 
width="400" height="17">
</object>
</div>
<!-- END media -->[/code]

A lot of customization can be made, for example, in the category listing, insted of the "play" button that opens a popup windows, the slim version of this player could be used... For now it's enough for me, there are some other little typo errors in the tpl to correct.

I hope that someone will take good care of developing this mod, because it's very useful (and above all it's needed by my site [size=8]>hint< >hint<[/size])
A lot of things hsould be added, for example the smilies in the comment page...


