Jump to content


- - - - -

War on IE6


  • Please log in to reply
6 replies to this topic

#1 Sphere

Sphere

    The moth next to my brain is Bart, say hi to him if you like

  • Sponsor
  • PipPipPipPipPip
  • 2,355 posts
  • Location:*tap* Behind ya!
  • Interests:I'm a Dutchy, that means I'm not a German (which doesn't sound/look the same to me!) also, being a Dutchy means I'm an idiot... sort off!

    And I def. need to get a real life again... I'm bored with my current life, ideas can be pm'd to me!
  • Country:Dutchyland

Posted 22 February 2009 - 10:12 PM

images/news/ie.jpgThere are still people that use IE6 as a browser.
Luckily, a Norwegian site has started the war on IE6, with this Wiki
They also include a php script there to upgrade or switch.
But, in my opinion, this script takes far from everything in account!
A better code I think is the following. Easier, and works on everything older as well!
<?php
if(eregi("msie", $_SERVER['HTTP_USER_AGENT'])){
$val = explode(" ",stristr($_SERVER['HTTP_USER_AGENT'],"msie"));
$version = explode(".", $val[1]);

if($version[0] <= 6){ ?>
Promotional text here, redirects to IE7 downloads, Firefox downloads, etc.
<?php 
} 
} 
?>
Just replace the promotional text, or if you site is multi-lingual, create a language-dependant variable to be showed there!

I think it's better, because this code is smaller, and easier, and faster, and just works too!

But, feel free to use any script, as long as we can battle outdated browsers.


source of code: Casa Laguna Coding Monkey


#2 Guest_scaramonga_*

Guest_scaramonga_*
  • Guests

Posted 22 February 2009 - 11:39 PM

:christo:

#3 Sphere

Sphere

    The moth next to my brain is Bart, say hi to him if you like

  • Sponsor
  • PipPipPipPipPip
  • 2,355 posts
  • Location:*tap* Behind ya!
  • Interests:I'm a Dutchy, that means I'm not a German (which doesn't sound/look the same to me!) also, being a Dutchy means I'm an idiot... sort off!

    And I def. need to get a real life again... I'm bored with my current life, ideas can be pm'd to me!
  • Country:Dutchyland

Posted 22 February 2009 - 11:57 PM

View Postscaramonga, on Feb 23 2009, 12:39 AM, said:

:christo:
If you're using firefox...
Install the "User Agent Switcher" plugin, get an IE6-user-agent, and check my site :storm:

Yes, FF or Opera, it rocks IE out :yahoo:

Reminds me of the FF promotion-movie contest btw... those were nice!

#4 stormrosson

stormrosson

    Established Member

  • Global Moderator
  • PipPipPipPipPip
  • 1,252 posts
  • Location:Silver City ,New Mexico
  • Interests:stuff
  • Country:yes

Posted 23 February 2009 - 02:16 AM

:christo: good lord somebody get the net , the codemonkeys have escaped again :storm:

#5 Sphere

Sphere

    The moth next to my brain is Bart, say hi to him if you like

  • Sponsor
  • PipPipPipPipPip
  • 2,355 posts
  • Location:*tap* Behind ya!
  • Interests:I'm a Dutchy, that means I'm not a German (which doesn't sound/look the same to me!) also, being a Dutchy means I'm an idiot... sort off!

    And I def. need to get a real life again... I'm bored with my current life, ideas can be pm'd to me!
  • Country:Dutchyland

Posted 23 February 2009 - 02:33 AM

View Poststormrosson, on Feb 23 2009, 03:16 AM, said:

:christo: good lord somebody get the net , the codemonkeys have escaped again :storm:
just be glad you got second in line :yahoo:

Yes, I'm a codemonkey
No, I haven't escaped, they haven't been able to catch me yet ;)

#6 Guest_scaramonga_*

Guest_scaramonga_*
  • Guests

Posted 23 February 2009 - 02:40 AM

View Poststormrosson, on Feb 23 2009, 02:16 AM, said:

:christo: good lord somebody get the net , the codemonkeys have escaped again :storm:


:yahoo: LOL! ;)

#7 m.oreilly

m.oreilly

    rog'er wilco

  • Admin
  • PipPipPipPipPipPip
  • 8,872 posts
  • Country:lower uncton

Posted 23 February 2009 - 02:53 AM

i said what what?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users