maxima:
The quest continues. This is a vital plugin people!
Click on my signature below to view functionality of the above script (Demo under Categories>Downloadable Media).
Guess what Maxima! Let's end this quest here and NOW!
Why? Because I've solved it for us. I know this is an old thread, but I think and still hope you and all those that replied your call are still available to benefit from this. Well, below are my modifications and additions to tpl_modules_media_manager.php (save a copy of this file before anything!).
Replace the code below:
<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>
With the code below:
(I have more information below this code)
<?php
switch ($za_clip['clip_type']) {
case "MP3":
case "OGG":
case "WAV":
case "MID":
case "WMA":
case "AIF":
case "AIFF":
case "RA":
?>
<div class="mediaTypeLink"><embed src="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" autostart="false" ENDTIME="00:45" VOLUME="65" width="72" height="26"><br> Play Preview (45 Sec.): <?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?></embed>.<br>As Recorded by <?php echo '<span class="mediaClipFilename">' . $products_artist_name . '</span>' ?><br></div><br><p>
<?php
break;
case "AVI":
case "MPG":
case "FLV":
case "MOV":
case "3G2":
case "3GP":
case "ASF":
case "ASX":
case "MP4":
case "MPEG":
case "RM":
case "SWF":
case "VOB":
case "WMV":
?>
<div class="mediaTypeLink"><embed src="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" autostart="false" ENDTIME="00:45" VOLUME="65"> Play Preview (45 Sec.): <?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?></embed>.<br>As Presented by <?php echo '<span class="mediaClipFilename">' . $products_artist_name . '</span>' ?></div><br><p>
<?php
break;
case "JPG":
case "BMP":
case "PNG":
case "TIFF":
case "GIF":
?>
<div class="mediaTypeLink"><table background="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>"><SPAN onMouseOver="document.pic1.src='someimagefilepath.gif'" onMouseOut="document.pic1.src='<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>'" ><img src="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" alt="Picture/Image" width=360 height=240 name="pic1"></span></table><br>Image Preview: <?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?>.<br>As Illustrated by <?php echo '<span class="mediaClipFilename">' . $products_artist_name . '</span>' ?></div><br><p>
<?php
break;
}
?>
I used the switch case function to identify sound files, video files and image files, and modified the original code 3 ways to display the different groups of files uniquely. Note that these are all files I upload through the media manager module (Extras) and add to products.
One more thing...
In the last DIV tag:
<div class="mediaTypeLink"><table background="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>"><SPAN onMouseOver="document.pic1.src='someimagefilepath.gif'" onMouseOut="document.pic1.src='<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>'" ><img src="<?php echo zen_href_link(DIR_WS_MEDIA . $za_clip['clip_filename'], '', 'NONSSL', false, true, true); ?>" alt="Picture/Image" width=360 height=240 name="pic1"></span></table><br>Image Preview: <?php echo '<span class="mediaClipFilename">' . $za_clip['clip_filename'] . '</span>' . (!empty($za_clip['clip_type']) ? '<span class="mediaClipType"> (' . $za_clip['clip_type'] . ')</span>' : ''); ?>.<br>As Illustrated by <?php echo '<span class="mediaClipFilename">' . $products_artist_name . '</span>' ?></div>
Locate someimagefilepath.gif, and replace it with an image file of your choice that fits the width and height of your image display. Ensure you have such an image at the path you specify (if anywhere other than in the templates folder where tpl_modules_media_manager.php resides). It contributes to the safety of images you upload (not foolproof) in case you intend to have people buy them. You could also get a free no-right-click script to disable any rightclick and savefileas attempts against your site.
Click on my signature below to view functionality of the above script (Demo under Categories>Downloadable Media).
:cheers::clap: