Updated code for tpl_modules_media_manager.php file, backup your original file and replace it with the following code which has the EMBED tags between the OBJECT tag which lets the button work in Firefox whereas the last bit of code only worked in IE, much better...:
Code:
<?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 2009-07-29 23:04:57Z wilt $
* @modified to use flash preview button for single mp3 preview by fran @ www.digitaldomain.ie
*/
/**
* 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/zencart/media/wimpy_button.swf?theFile=<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>&wimpyReg=&autoplay=yes&loopMe=no" /><param name="quality" value="high" /><param name="bgcolor" value="#333333" /><embed src="http://www.yourwebsite.net/zencart/media/wimpy_button.swf?theFile=<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>&wimpyReg=&autoplay=yes&loopMe=no" quality="high" bgcolor="#333333" width="32" height="30" name="Preview" align="middle" menu="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed></object>
</td></tr></table>
<?php
}
?>
</div>
<?php
}
}
?>
Change www.yourwebsite.net with your own domain name, change autoplay=yes&loopMe=no to whatever you want and change #333333 with the background colour of your site. Each change is both inside the EMBED tag and inside the OBJECT tag, so thats 2 different places that need to be changed for each of those settings...
An example of the preview button can be seen at www.subtractor.net :)
Bookmarks