I managed to change the code in includes/template/template_default/templates/tpl_modules_media_manager.php to incorporate a Flash music player button there instead of an image file. The flash button is just like an MP3 player, it streams the MP3 file and has play, pause and back to beginning functionality, its the Wimpy Play Button.
See it in action here: http://sonictrip.net/store/index.php?main_page=product_music_info&cPath=2&products_id=25
So now theres no need for you to hard code a player into the description of a product!
Change the text https://www.yourwebsite.net in the code below and upload the wimpy button to your store/media folder
Here's the code i used for the tpl_modules_media_manager.php file:
<?php
/**
* Module Template
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_media_manager.php 3251 2006-03-23 23:04:57Z wilt $
*/
/**
* require module to aggregate media clips to an array
*/
require(DIR_WS_MODULES . zen_get_module_directory('media_manager.php'));
if ($zv_product_has_media) {
?>
<h2 id="mediaManagerHeading"><?php echo TEXT_PRODUCT_COLLECTIONS; ?></h2>
<?php
while (list($za_media_key, $za_media) = each($za_media_manager)) {
?>
<div class="rowWrapper">
<table class="back" cellpadding="2" valign="middle"><tr><td><?php echo $za_media['text']; ?>
<?php
$zv_counter1 = 0;
while(list($za_clip_key, $za_clip) = each($za_media_manager[$za_media_key]['clips'])) {
?></td><td valign="middle"><object style="WIDTH: 32px; HEIGHT: 30px" id="wimpy_button_35319" name="wimpy_button_35319" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="32" height="30"><param name="movie" value="http://www.yourwebsite.net/media/wimpy_button.swf?theFile=<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>&wimpyReg=&autoplay=no&loopMe=no" /><param name="quality" value="high" /><param name="bgcolor" value="#747474" /></object>
</td></tr></table>
<?php
}
?>
</div>
<?php
}
}
?>
Now, how do i use the code above on the product_listing.php page, anyone? It doesnt seem to work the same way coz its html inside php and im not sure how to reformat the code to work on the product_listing page but if anyone has any ideas, please post it here!