New Zenner
- Join Date:
- Aug 2009
- Posts:
- 43
- Plugin Contributions:
- 0
need the right path in product_listing.php
I managed to integrate a mp3 flash player in product_listing.php,
it will be triggered by pressing the preview button, like this:
http://www.dlsounds.com/music/index.php?main_page=index&cPath=1
as you can see it is working but missing the mp3 file to load. he needs to load the correspondending file from a preview folder in the root.
I managed to load a individual mp3 file by using the full url with this code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="165" height="38" id="niftyPlayer1" align="">
<PARAM NAME=autostart VALUE=false>
<param name=movie value="niftyplayer.swf?file=http://www.dlsounds.com/any_file.mp3">
<param name=autoplay value=false>
<param name=quality value=high>
<param name=bgcolor value=#FFFFFF>
<embed src="niftyplayer.swf?file=http://www.dlsounds.com/any_file.mp3 quality=high bgcolor=#FFFFFF width="165" height="38" name="niftyPlayer1" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
But now I need the path to the product preview files.
in product_listing.php I found this reference:
//$song_mp3='<a href= "index.php?main_page=product_music_info&products_id='.(int)$listing->fields['products_id'].'&products_preview='.$listing->fields['products_attributes_mp3_preview'].'">mp3'.'</a>';
//print_r($listing->fields);
$width = 50;
$height = 50;
if($listing->fields['products_attributes_mp3_preview']) {
$path = 'previews/'.$listing->fields['products_attributes_mp3_preview'];
$song = $listing->fields['products_attributes_mp3_preview'];
any clue which path i have to use here:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="165" height="38" id="niftyPlayer1" align="">
<PARAM NAME=autostart VALUE=false>
<param name=movie value="niftyplayer.swf?file=PATH?">
<param name=autoplay value=false>
<param name=quality value=high>
<param name=bgcolor value=#FFFFFF>
<embed src="niftyplayer.swf?file=PATH? quality=high bgcolor=#FFFFFF width="165" height="38" name="niftyPlayer1" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
Many thanks!!