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,157
isaac Online happy OP
isaac  Online Happy OP
Joined: Jul 2001
Posts: 1,157
Outdated Browser Nag

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.


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


Replace With:
<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]-->

In templates/default/footer.tpl


Replace With:
<div id="update-browser">For the best viewing experience please update your browser to <a href="" target="blank">Google Chrome</a></div>

You are done.

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%.

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
Visit Us on Facebook
Member Spotlight
Portland, OR, USA
Posts: 5,936
Joined: January 2000
Show All Member Profiles 
Forum Statistics
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,936
Greg Hard 5,533
Top Posters(30 Days)
Today's Statistics
Currently Online 695
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 21
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

Powered by UBB.threads™ PHP Forum Software 7.6.2
(Snapshot build
Page Time: 0.097s Queries: 15 (0.076s) Memory: 3.2178 MB (Peak: 3.3238 MB) Zlib enabled. Server Time: 2018-03-22 01:56:03 UTC