Previous Thread
Next Thread
Print Thread
Rate Thread
[7.x] Outdated Browser Nag #320590
09/02/2014 8:34 AM
09/02/2014 8:34 AM
Joined: Jul 2001
Posts: 1,170
California
isaac Offline OP
$coffee=code(true);
isaac  Offline OP
$coffee=code(true);
Joined: Jul 2001
Posts: 1,170
California
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 Files
BROWSER-NAG1.PNG (42 downloads)
BROWSER-NAG2.PNG (41 downloads)
Sponsored Links

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
· Blue Host
· Interserver.net
Visit Us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,938
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,448
Posts293,484
Members13,793
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,938
Greg Hard 5,533
Top Posters(30 Days)
isaac 4
Today's Statistics
Currently Online 673
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 18
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180611.dev)
Page Time: 0.103s Queries: 15 (0.059s) Memory: 3.2180 MB (Peak: 3.3242 MB) Zlib enabled. Server Time: 2018-06-18 13:32:24 UTC