Previous Thread
Next Thread
Print Thread
Rate Thread
#320590 09/02/2014 8:34 AM
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
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.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)