UBB.Dev
Posted By: isaac [7.x] Outdated Browser Nag - 09/02/2014 3:34 PM
Outdated Browser Nag

About:
This is a very simple add-in that will display a notice (nag) to any visitor to your site who is still running Internet Explorer 8 (IE8) or less, asking them to update to a current browser.

The notice it displays, is:
"For the best viewing experience please update your browser to Google Chrome"

This notice is shown at the bottom-right side of their browser window for all pages of your UBBT forum. It is not dependent on any specific style or forum template, meaning that it is forum-based, rather than style/template based.

I've chosen Google Chrome, but you can edit the code and links to have it display Mozilla FireFox or any browser you choose.


Screenshots:

Stock UBBT 7.5.8 with UBBCentral "blue-orange" theme on IE8 on WindowsXP -

[Linked Image]


Stock UBBT 7.5.8 with UBBCentral "blue-orange" theme on Google Chrome on WindowsXP -

[Linked Image]



In templates/default/header.tpl
Find:

Code
</head>

Replace With:
Code
<style type="text/css">#update-browser{ldelim}background-color:#fede00;border:1px solid #000;bottom:0;color:#000;display:none;font-size:14px;font-weight:bold;padding:12px 24px;position:fixed;right:0;z-index:2000;{rdelim}#update-browser a{ldelim}color:#000;text-decoration:underline;{rdelim}</style>
<!--[if lt IE 9]><style type="text/css">#update-browser{ldelim}display:block{rdelim}</style><![endif]-->
</head>


In templates/default/footer.tpl
Find:

Code
</body>

Replace With:
Code
<div id="update-browser">For the best viewing experience please update your browser to <a href="http://www.google.com/chrome" target="blank">Google Chrome</a></div>
</body>

You are done.


Notes:
Windows Internet Explorer 8 (IE8) is a web browser developed by Microsoft in the Internet Explorer browser series, released on March 19, 2009. Internet Explorer 8 is the last version of Internet Explorer to run on Windows Server 2003 and Windows XP. Support for Internet Explorer 8 is bound to the lifecycle of the Windows version it is installed on; as such, IE8 is no longer supported on Windows XP as of April 8, 2014.

According to Net Applications web analytics for August 2014, Internet Explorer 8 remains the most popular browser for Internet access in the world. Its share makes 21.40%.
http://marketshare.hitslink.com/browser-market-share.aspx?qprid=2&qpcustomd=0&qpcustom=

Internet Explorer 8 is under-performing relative to other browsers in speed and is not as successful in displaying webpages as they are intended to display. In terms of security, IE8's "continued reliance on ActiveX makes the browser vulnerable in its very foundation." For these reasons, it is suggested that Google Chrome, Mozilla Firefox, or a more current version of Internet Explorer, such as IE11, are better alternatives to using Internet Explorer 8.

Attached picture BROWSER-NAG1.PNG
Attached picture BROWSER-NAG2.PNG
© UBB.Developers