New Zenner
- Join Date:
- Feb 2009
- Posts:
- 79
- Plugin Contributions:
- 0
Media Player instead of link in Media Collections Box
:frusty::lamo::cry:I have been working on this issue ALL DAY!! I went through just about every relevent thread, and no one has been able to find a solution to this.
HOW TO PUT A FLASH MP3 PLAYER IN PLACE OF THE LINK IN THE MEDIA COLLECTIONS BOX ON MUSIC PRODUCT PAGES!
Here's my problem...
How do I combine the following codes?
From: includes/templates/CUSTOM/templates/tpl_modules_media_manager.php
<div class="mediaTypeLink"><a href="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" target="_blank"><?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?></a></div>
and: Sample Embed Code
<script type="text/javascript" src="http://site.com/storefront/swfobject.js"></script>
<div id="flashPlayer">
This text will be replaced by the flash music player.
</div>
<script type="text/javascript">
var so = new SWFObject("http://site.com/storefront/playerSingle.swf", "mymovie", "192", "67", "7", "#FFFFFF");
so.addVariable("autoPlay", "no");
so.addVariable("soundPath", "PATH TO MEDIA");
so.write("flashPlayer");
</script>
I have tried everything I can think of to combine these to codes, but I'm not sure wich part of the first code calls the media, or which part of the first code I would replace to ONLY change the link text to be the player.
Any help would be GREATLY appreciated by me and MANY other people!