We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23299
    • 1,161 Posts
    Well, check out all the lovely fan support IE7 gets here:

    http://blogs.msdn.com/ie/archive/2007/11/30/the-first-year-of-ie7.aspx

    Great reading actually...
      • 33372
      • 1,611 Posts
      Here’s a quick and dirty snippet to detect IE6 and add a big ugly warning to all pages if it’s being used:

      <?php
      $output='';
      
      $oldIE=false;
      $ua=strtolower($_SERVER['HTTP_USER_AGENT']);
      if((strstr($ua,"win")) && (strstr($ua,"msie")) && !(strstr($ua,"opera"))){
         $all_browser_info=explode(" ",stristr($ua,"msie"));
         $IEversion=$all_browser_info[1];
         if($IEversion<7){
            $oldIE=true;
         }
      }
      
      if ($oldIE==true){
         $output='<div id="ie6">
      <h1>Your browser needs to be updated</h1>
      <p>You appear to be using Internet Explorer 6.<br /><strong>This browser was released in 2001 and our website - along with many others - may not display or function properly</strong> with such an outdated browser.<br />In addition, <strong>this browser is not secure</strong>, and browsing the internet with it may expose you to many more risks.</p>
      <p>Please use one of the links below (or Windows Update) to upgrade your browser now.</p>
      <p><a href="http://www.microsoft.com/windows/internet-explorer/" target="_ie8">Internet Explorer 8</a> | <a href="http://www.mozilla.com/en-US/firefox/" target="_ff">Mozilla Firefox</a></p>
      <p>Note: If you are in a corporate or other environment where you cannot install or update software on your own, please contact your technical support staff<br />to resolve this. This is not a condition that should continue to be ignored.</p>
      </div>
      
      ';
      }
      
      return $output;
      ?>
      

      I’ve added this (uncached) just below the opening body tag. You can/should edit the output to include a chunk instead of hard-coding the warning message into the snippet. Like I said, this is quick and dirty...
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn&#39;t very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 33337
        • 3,975 Posts
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link