PDA

View Full Version : Cel Update your Browser Nagger (unobtrusive)



admin
02-04-2010, 09:08 PM
Oh, all that discussions on vbulletin.com and elsewhere whether vB4 should support IE6 or not... http://www.vbulletin.org/forum/images/smilies/wink.gif now, while I think it should, because still a significant part of the userbase uses it, there's nothing against giving those users a friendly little hint.


What does this mod do?

Its quite simple, really - it just adds the code to show a small friendly notification bar at the top of the browsing area (like most browsers use). It will remind the user that he's using a rather old browser and should upgrade. To do tnis, it inserts code provided by


http://browserupdate.org (http://browserupdate.org/)



which gets added to the footer template right before the closing </body> tag.


Which browsers are nagged?

At the moment, the popup shows for the users of Internet Expolorer <= 6, Firefox <= 2.0, Opera <= 10.01, Safari <= 2.0. If you want to change this, please read under customization.


Language?

The bar detects the browser default language; if there's a translation, it will be used. If not, it's english, or you can force another language or use your own text. Please see the next topic on customization.


Customization?

Yes, possible - but not supported in any way in this thread. http://www.vbulletin.org/forum/images/smilies/smile.gif You will find the code that inserts the bar in the plugin "Add Javascript to footer" at hook "global_complete". There are several parameters you can pass to the javascript that triggers the bar. For details on customization options, see this page (http://browserupdate.org/customize.html).



You also can style the bar differently, if you want to. The necessary css-classes are also on the page linked above. I'd advise to put them into additional.css, if needed.

Screenshots
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2010/04/02/09/89371270217306.jpeg