Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default 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. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Media Collection in IE7 - no line feed

    /includes/templates/YOURTEMPLATE/templates/tpl_modules_media_manager.php
    around line 25-30 you have this:
    Code:
          <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:
    Code:
          <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:
    Code:
    #mediaManager {
    	width: 50%; 
    	margin: 0.2em;
    	padding: 0.5em;
    	background-color: #E4FEf5;
    	border: 1px solid #003D00;
    	}
    add this below it:
    Code:
    .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.

  4. #4
    Join Date
    Mar 2007
    Posts
    3
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. Assign Media Collection to Product?
    By riddimmatik in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 26 Apr 2011, 03:56 PM
  2. Replies: 0
    Last Post: 13 Mar 2009, 10:00 PM
  3. Sort Order in Media Collection
    By friar778 in forum Basic Configuration
    Replies: 2
    Last Post: 23 Oct 2008, 06:38 PM
  4. Media Collection Problems
    By orenda in forum General Questions
    Replies: 1
    Last Post: 12 Jun 2007, 05:09 AM
  5. Media Collection Format Problem
    By sibiya2000 in forum General Questions
    Replies: 6
    Last Post: 4 Jun 2007, 06:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg