Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Make Website Display the same in Explorer & Firefox

    Or there is a mod that in the downloads section that does this for you ... assuming that your template is building the document header in the normal way.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Make Website Display the same in Explorer & Firefox

    kuroi, the Mod you mention is a bit outdated, is it not?

    Version: v1
    Last Updated: Feb 25 2007

    Also, Alan made mention of his updates on Nov. 05, 2007 and there is the fact that this file can/will change, from version to version of Zen Cart.

    includes/templates/templates_default/common/html_header.php

    This has already happened in 1.3.8a


    I think NHRADeuce is on to something, just manually adding the code as one goes along. As it only has to be done once each version it seems like a simple thing to do.


    While we're on the Subject though, can someone explain what the the 'lte' or 'lt' means in: if lte IE 6

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Make Website Display the same in Explorer & Firefox

    Depends which version of Zen Cart the poster is using , but yes you're right, though it won't be for very long .

    The lt or lte mean "less than" and "less than or equal" respectively.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Make Website Display the same in Explorer & Firefox

    you're right, though it won't be for very long
    Is that a teaser?

  5. #5
    Join Date
    Sep 2006
    Posts
    68
    Plugin Contributions
    0

    Default Re: Make Website Display the same in Explorer & Firefox

    Quote Originally Posted by kuroi View Post
    Or there is a mod that in the downloads section that does this for you ... assuming that your template is building the document header in the normal way.
    LOL. I searched and searched for this last night and couldn't find it! I kept looking for CSS and I must have gone right over this contribution so I just wrote one myself. Our code is very similar, but I like yours better.

    Quote Originally Posted by Website Rob View Post
    kuroi, the Mod you mention is a bit outdated, is it not?

    Version: v1
    Last Updated: Feb 25 2007

    Also, Alan made mention of his updates on Nov. 05, 2007 and there is the fact that this file can/will change, from version to version of Zen Cart.

    includes/templates/templates_default/common/html_header.php

    This has already happened in 1.3.8a


    I think NHRADeuce is on to something, just manually adding the code as one goes along. As it only has to be done once each version it seems like a simple thing to do.


    While we're on the Subject though, can someone explain what the the 'lte' or 'lt' means in: if lte IE 6
    Actually, the mods are almost exactly the same. I just separated the code out for people who have a modded html_header.php. The same can be done for this contribution. Here is that code -

    PHP Code:
    /**
     * load all template-specific stylesheets, named like "ie_*.css", alphabetically
     * for stylesheets targeted at all versions of IE
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^ie_/''.css');
      while(list (
    $key$value) = each($directory_array)) {
        echo 
    '<!--[if IE]>' "\n";
          echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />' "\n";
          echo 
    '<![endif]-->' "\n";
      }
    /**
     * load all template-specific stylesheets, named like "ie7*.css", alphabetically
     * for stylesheets targeted at specific versions of IE
     */
      
    $directory_array $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css'), '/^ie[5-9]_/''.css');
      while(list (
    $key$value) = each($directory_array)) {
        
    $ver substr ($value21);
        echo 
    '<!--[if IE ' $ver ']>' "\n";
            echo 
    '<link rel="stylesheet" type="text/css" href="' $template->get_template_dir('.css',DIR_WS_TEMPLATE$current_page_base,'css') . '/' $value '" />' "\n";
            echo 
    '<![endif]-->' "\n";
      } 
    Last edited by NHRADeuce; 7 Feb 2008 at 04:40 PM.

 

 

Similar Threads

  1. Replies: 8
    Last Post: 26 Jul 2011, 12:06 AM
  2. View Site in Firefox & Internet Explorer
    By cameo in forum General Questions
    Replies: 1
    Last Post: 31 May 2011, 06:29 AM
  3. Internet explorer & firefox display problem
    By globalmemory in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 10 May 2009, 11:34 AM
  4. Explorer & Firefox - Image In Tab
    By stiggy100 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Feb 2009, 07:57 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