We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    Hey, I’m trying to use a PNGfix for my site and I have tried 2 or 3 and they do work but not with conditional IE comments.

    I have tried <!--[if IE 7]> and all the other comments to point to versions equal to 6 or less than 7 but they will not work. I have to make it cover all IE <!--[if IE]> for it to work. What could cause a IE specific conditional comment not to work but a general IE comment to work?


    Too expand... I just took out all snippets and other JS. All I was left with is a basic CSS based layout and the conditional still won’t work. Is it a modx thing?
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 3749
      • 24,544 Posts
      Quote from: rossco at Sep 13, 2008, 10:48 AM

      Hey, I’m trying to use a PNGfix for my site and I have tried 2 or 3 and they do work but not with conditional IE comments.

      I have tried <!--[if IE 7]> and all the other comments to point to versions equal to 6 or less than 7 but they will not work. I have to make it cover all IE <!--[if IE]> for it to work. What could cause a IE specific conditional comment not to work but a general IE comment to work?


      Too expand... I just took out all snippets and other JS. All I was left with is a basic CSS based layout and the conditional still won’t work. Is it a modx thing?

      IE7 needs spaces separating the comment tags (i.e. "<!-- [if..." instead of <!--[if..."), so that could be your problem.

      This should work:

      
      <!-- [if lt IE 7]>
      
      png fix here.
      
      <![endif] -->
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        Hey thanks for the reply but that didn’t work either...
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 33337
          • 3,975 Posts
          Zaigham (aka zi) Reply #4, 18 years ago
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            I have tried all possible ways that I have read for IE conditional and none are working apart from using the generic IE conditional. I want to separate conditional stuff for IE 6 and 7 but it’s not working.
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 3749
              • 24,544 Posts
              Quote from: rossco at Sep 13, 2008, 02:42 PM

              I have tried all possible ways that I have read for IE conditional and none are working apart from using the generic IE conditional. I want to separate conditional stuff for IE 6 and 7 but it’s not working.

              Do you, by chance, have both IE6 and 7 installed on the same machine? If that’s the case, they can misidentify themselves and that could be causing your problem.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 25551 ☆ A M B ☆
                • 1,231 Posts
                I am using a tool called IE tester and I have M$ virtual machine running... All on the same machine. VM is using a virtual partition so this has nothing to do with IE7 that’s with Vista and IE tester runs as a stand alone app. It’s getting late here so I will check again tomorrow over things. It is strange!
                  Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                  AugmentBLU - MODX Partner

                  BLUcart - MODX Revolution E-Commerce & Shopping Cart