Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Dunny, Mike L, Bjab, Gizmo), 19 Guests and 21 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/27/11
Posts: 15
Top Posters (30 Days)
Ruben 62
SD 54
Gizmo 48
gliderdad 33
Dunny 21
driv 18
dbremer 16
Stan 14
Mark S 13
Iann128 12
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
Topic Options
#234327 - 01/31/10 05:26 PM How to tell users to upgrade from IE6 ?
smallufo Offline
enthusiast
Registered: 06/05/06
Posts: 263
Loc: Taiwan
How to add a header that distinguishes user's browser , and IE6 is found , tell him to upgrade to Firefox/Chrome/Safari/Opera/IE8 ?

How to write such code in header.php ?
Thanks a lot .

IE6 must die
_________________________

English is not my native language.
I try my best to express my thought precisely.
I hope you understand what I mean.
If any misunderstanding results from culture gaps , I apologize first.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#234328 - 01/31/10 05:59 PM Re: How to tell users to upgrade from IE6 ? [Re: smallufo]
SD Online   partay
Registered: 04/19/07
Posts: 4031
Loc: SoCal, USA
Html:
<!--[if IE 6]>
CONTENT ONLY VIEWABLE TO IE 6.0
<![endif]-->


change the content to whatever you want smile
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#234340 - 02/01/10 07:29 AM Re: How to tell users to upgrade from IE6 ? [Re: SD]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 593
Loc: Coast of Maine
sirdudes is simple and to the point, this might be a bit nicer though,
Code:
 <!-- IE^ No more -->

  <!--[if lt IE 7]>
  <div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
    <div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
    <div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
      <div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
      <div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
        <div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>You are using an outdated browser</div>
        <div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>For a better experience using this site, please upgrade to a modern web browser.</div>
      </div>
      <div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
      <div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div>
      <div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
      <div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
    </div>
  </div>
   <![endif]--> 
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#234341 - 02/01/10 07:31 AM Re: How to tell users to upgrade from IE6 ? [Re: Bad Frog]
Bad Frog Offline
addict
Registered: 05/13/08
Posts: 593
Loc: Coast of Maine
you can also check out http://ie6update.com/ and http://www.ie6nomore.com/ (this is the code above) - I use both on my site.
_________________________
"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Top
#234346 - 02/01/10 02:31 PM Re: How to tell users to upgrade from IE6 ? [Re: Bad Frog]
smallufo Offline
enthusiast
Registered: 06/05/06
Posts: 263
Loc: Taiwan
Wow , it helps a lot!
Thanks ...
_________________________

English is not my native language.
I try my best to express my thought precisely.
I hope you understand what I mean.
If any misunderstanding results from culture gaps , I apologize first.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Edit Post
by Bert
01:19 PM
A positive note
by SteveS
09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Forum Stats
10213 Members
36 Forums
33667 Topics
180917 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image