Discourage IE6 v2.1.1

Started by Suki, April 25, 2009, 12:32:20 AM

Previous topic - Next topic

Suki

Discourage IE6
by Miss All Sunday



DescriptionCompatibility[/color][/size]
2.0 only


Introduction
Internet Explorer 6 is the plague of the Internet. Sure there are other battles, like net neutrality or censorship, but I think it's safe to say that IE6 has held back innovation more than anything else, because of its slow JavaScript engine, incorrect rendering of web pages, bad security, and more. At the time of this writing, Net Applications says 18% of Internet users still use Internet Explorer 6. Even worse, many sites have a much higher percentage of Internet Explorer 6 visitors.
From almost.done21.com

Features
o Return in error on BoardIndex as well as Display if IE6 is detected. (Configurable in Admin)
o Displays an error box below main nav menu (Configurable in Admin)
o Displays an "Update" bar on top, asking user to update. (Configurable in Admin)

All options are customizable in the admin panel

Admin -> Configuration -> Modifications -> Discourage IE6

Languages
-English/ut8


Support
For support please visit: http://missallsunday.com/

Changelog
When upgrading, make sure to uninstall any previous versions.

5/9/11 - v2.1.1
o Fixed some minor errors
o Updated for 2.0

6/11/09 - v2.1
o Fixed some minor errors
o Added some "spice" to the error page

6/10/09 - v2.0
o Added error function
o Optimized coding

5/7/09  - v1.1, v1.2, v1.3
o Fixed a few bugs
o Added Modifications.english-utf8.php

4/20/09 - v1.0
o Displays a fake IE warning bar at top of page.
o Displays an error message above linktree if enabled.
o It will ask them to either upgrade to IE8 or download Firefox.
o Adds Admin cP options for custom messages as well as enabling/disabling.

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Marcus Forsberg


shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

Blinker

Hi JBlaze, nice mod. I'd love to use it but my custom theme's index.template.php file does not have any "template_menu();" entry. Everything else seems fine.

Where should I put that block of code?

JBlaze

Thank you all for the comments :)

Quote from: Blinker on April 25, 2009, 11:16:56 PM
Hi JBlaze, nice mod. I'd love to use it but my custom theme's index.template.php file does not have any "template_menu();" entry. Everything else seems fine.

Where should I put that block of code?
Can you attach your index.template so I can take a look?
Jason Clemons
Former Team Member 2009 - 2012

Blinker

Here you go JBlaze, thanks for your help.

Alpay

hello..

good mod.

Turkish translate..

<file name="$languagedir/Modifications.turkish.php">
        <operation>
            <search position="end" />
            <add><![CDATA[
//Begin IE6 Text Strings
$txt['ie6_restrict_mod'] = 'IE6 Tarama Modu - by JBlaze';
$txt['ie6_warning_bar_enabled'] = 'Eğer IE6 algılanırsa uyarı ekrana gelsin mi?';
$txt['ie6_warning_bar_message'] = 'Uyarı ekranını mesajı değiştirmek icin kullanabilirsiniz.<br /><span class="smalltext">(Varsayılan için boş bırakınız.)</span>';
$txt['ie6_warning_bar_message_default'] = 'Dikkat!Bu mesaj IE6 Kullanıyorsanız Size Gözükecektir.Lütfen Kısa Sürede IE7-8'e Yükseltiniz..';
$txt['ie6_restrict_enabled'] = 'Sistem IE6 algılarsa forum erişimini kısıtlasın mı?';
$txt['ie6_restrict_message'] = 'IE6 algılandıgında forum kısıtlaması mesajınız değiştirmek isterseniz.<br /><span class="smalltext">(Varsayılan için boş bırakınız.)</span>';
$txt['ie6_restrict_title'] = 'IE6 algılandıgında forum kısıtlaması mesajını değiştirmek isterseniz.<br /><span class="smalltext">(Varsayılan için boş bırakınız.)</span>';
$txt['ie6_restrict_title_default'] = 'Üzgünüz!Bu internet tarayıcısına destek verilemiyor.';
$txt['ie6_restrict_message_default'] = 'Internet Explorer 6?! Lütfen verilecek resmi linkler ile güncellemenizi yapınız?!<br />Try <a href="http://lmgtfy.com/?q=internet+explorer+8">YÜKSELT</a> son versiyondur. ve <a href="http://lmgtfy.com/?q=mozilla+firefox">Firefox</a> veya <a href="http://lmgtfy.com/?q=opera+browser">Opera</a>.';
//END IE6 Text Strings
]]></add>

JBlaze

Quote from: Blinker on April 26, 2009, 09:44:37 AM
Here you go JBlaze, thanks for your help.

Code (find) Select
<div id="mainmenu">' , template_menu() , '</div>

Should work if you add after that. A link to your site can help so I can see how it is layed out.
Jason Clemons
Former Team Member 2009 - 2012

Goodman854

Screen Shot? Sounds neat!

JBlaze

Quote from: goodman854 on April 26, 2009, 11:22:30 PM
Screen Shot? Sounds neat!

I forgot to take them when I was testing and as such, have removed IE6 from my computer because I felt contaminated :)

I will, however, get them when I visit my friend as he has an old computer running IE6.
Jason Clemons
Former Team Member 2009 - 2012

Blinker

#11
Quote from: JBlaze on April 26, 2009, 05:02:24 PM
Quote from: Blinker on April 26, 2009, 09:44:37 AM
Here you go JBlaze, thanks for your help.

Code (find) Select
<div id="mainmenu">' , template_menu() , '</div>

Should work if you add after that. A link to your site can help so I can see how it is layed out.

Cool, thanks JBlaze, I'll give it a shot and report back. As discussed before, I can't link you as my site is private. Always appreciate the help you give me here though! :)

Edit: not sure if this helps but I use the Mesh theme by Bloc, here's a link to the demo - http://www.tinyportal.net/demo/index.php?demo=mesh

That's pretty much how my forum looks (I have more boards though!).

leslie_512

Great mod! I have it installed and can see where I should be able to customize it. However the place has no text?

JBlaze

Quote from: leslie_512 on May 06, 2009, 11:37:34 PM
Great mod! I have it installed and can see where I should be able to customize it. However the place has no text?

1.1.8 or 2.0?
Jason Clemons
Former Team Member 2009 - 2012

Antechinus

Just tried this out for fun. Could do with a bit more oomph on the message IMO but it works. Screeny attached.

JBlaze

Quote from: Antechinus on May 06, 2009, 11:58:10 PM
Just tried this out for fun. Could do with a bit more oomph on the message IMO but it works. Screeny attached.

Seems like the stylesheet aint workin...

Hmmm...
Jason Clemons
Former Team Member 2009 - 2012

Antechinus

Ok dude, you have a bug in the RC1 version. The call for the stylesheet is wrong.

Should be like this:

<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/ie6mod2.css?rc1" />';

You had it calling ie6mod.css instead. :P

Antechinus

Here, new screeny. I changed the css a bit too but whatever. Looks good bold and centered IMO.

I used this:

/* A fake IE information bar */
#infobar {
font-weight: bold;
text-align: center;
}

JBlaze

Thanks Antechinus :)

Will update now.
Jason Clemons
Former Team Member 2009 - 2012

Antechinus

#19
Hang on, do this too:

#infobar a:hover {
color: #FFF;
background: #3169B6 url(../images/warning.gif) no-repeat center left;
cursor: pointer;
}


Teh cursor, bro.  8)

ETA: Whoopers. The warning image ist kaput also. Needs to be called as url(images/warning.gif) not url(../images/warning.gif)
The second is only correct if you are placing the stylesheet in the default/css folder. Doesn't work straight in default.

Advertisement: