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/mus....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
'U_SONG' => append_sid('music_song.' . PHP_EXT . '?song_id=' . $song_id),
replace with:
'U_SONG' => (MEDIA_FILES_PATH . $thissong['song_filename']),
music_page_body.tpl and music_show_body.tpl
find:
<!-- 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 -->
replace with:
(change yourdomain.com with your site name or add the IP_ROOT_PATH)
<!-- 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 -->
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
>hint< >hint<)
A lot of things hsould be added, for example the smilies in the comment page...