Forums / Basic Configuration / Media Collection in IE7 - no line feed

Media Collection in IE7 - no line feed

Locked

Views: 1,327

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
2 Mar 2007, 7:35 PM
#1
livingwells avatar

livingwells

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Media Collection in IE7 - no line feed

I'm having a problem with the way MS Internet Explorer 7 displays my three MP3s listed under the Media Collection section. They are just jumbled together. Firefox displays them fine. Any help?

3 Mar 2007, 3:59 AM
#2
livingwells avatar

livingwells

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Re: Media Collection in IE7 - no line feed

This is happening with IE6 also.
Check it out at http://audiofarmrecording.com/store look in the music catagory. Any help would be appreciated.

3 Mar 2007, 4:52 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Media Collection in IE7 - no line feed

/includes/templates/YOURTEMPLATE/templates/tpl_modules_media_manager.php
around line 25-30 you have this:```
<div id="mediaTitle" class="back"><?php echo $za_media['text']; ?></div>

<?php $zv_counter1 = 0; while(list($za_clip_key, $za_clip) = each($za_media_manager[$za_media_key]['clips'])) { ?>
  <div id="mediaTypeLink" class="forward"><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>

Change to this:```
      <div class="mediaTitle"><?php echo $za_media['text']; ?></div>
<?php
    $zv_counter1 = 0;
    while(list($za_clip_key, $za_clip) = each($za_media_manager[$za_media_key]['clips'])) {
?>
      <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>

/includes/templates/YOURTEMPLATE/css/stylesheet.css
around line 440 (if you used classic as a base) you have this:#mediaManager { width: 50%; margin: 0.2em; padding: 0.5em; background-color: #E4FEf5; border: 1px solid #003D00; }add this below it:```
.mediaTitle {
float: left;
}
.mediaTypeLink {
float: right;
}


That will change the layout to use classes instead of repeating ID's in the HTML.

That won't solve your layout problem, but will give you better control to resolve the layout problem.

You'll find that if you turn on the right-column and alter your media filenames to have underscores instead of spaces, that the spacing will work out such that the peculiar wrapping behaviour you mentioned will go away.

There are probably some additional things you can do in the stylesheet to cause the links to stop their wrapping behaviour.
You might try changing the #mediaManager width to 60% or 65%.
You might even consider getting more creative and converting the template output to an unordered list instead of stacked DIVs.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Mar 2007, 2:02 PM
#4
livingwells avatar

livingwells

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Re: Media Collection in IE7 - no line feed

None of these helped. The change in the tpl_modules_media_manager.php caused a syntax error "unexpected END". Increasing the #mediaManager width in CSS just causes more than one mp3 listed on one line. It seems there should be a simple fix to just add a break or something after each mp3 entry.