PDA

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


cellarius
03-31-2010, 10:00 PM
.
This modification also works with vB3
(probably all versions > 3.5)



Oh, all that discussions on vbulletin.com and elsewhere whether vB4 should support IE6 or not... ;) 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 this, this mod inserts code provided by

http://browserupdate.org


which gets added to the footer template right before the closing </body> tag. The javascript provided by browserupdate.org can be found at http://browser-update.org/update.js


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 (April 2010). This will be adapted by the provider from time to time. 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 (the latter seems not to work atm). Please see the next topic on customization. Available languages atm are en - de - it - es - pl - nl. If you want to post a translation here in the thread, I'll try and pass it on to browserupdate.org. The text is:
Your browser ($browser $version) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser (http://browser-update.org/en/update.html)


Customization?

Yes, possible - but not supported in any way in this thread. :) Anyway, for easier appliance you can find the possible settings for parameters to pass to the javascript in AdminCP under the settings page for this mod. See screenshot. For details on customization options, see this page (http://browserupdate.org/customize.html). Please note that the option to use custom text is not yet implemented properly, I have mailed the people at browserupdate.org and filed a bug there.



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.


Suppoort on customization?

Sorry, If you want to customize the bar, you're on your own. It's not my code, this mod only provides the means to add it easily.


Version history

4.0.002 Added AdminCP settings to pass parameters to the javascript easily
4.0.001 Initial release


### Don't forget to click install! ###
(No support if you don't)

Kolbi
04-01-2010, 01:16 PM
Nice thank you!

w-elbalad.com
04-01-2010, 01:50 PM
nice work
thank U :)

cellarius
04-01-2010, 05:11 PM
Thanks for your feedback :)

(And thanks to that person voting every mod around down without leaving a comment - very mature, coward).

Wayne Luke
04-01-2010, 06:59 PM
Heya... Just want to say nice addon. Just have a question though. This is the English version correct? I know you do both but the screenshot is in German.

cellarius
04-01-2010, 08:32 PM
Heya... Just want to say nice addon.
Hi Wayne, thanks :) Not much to it, tho ;)

Just have a question though. This is the English version correct? I know you do both but the screenshot is in German.
Theres several languages provided for, and it detects the language the browser uses (mine uses german :)). So for you or your users it should be english or whatever they use. You also can force a language by adding parameters to the javascript code in the plugin, as described in the link I provided under customization.

Candostum
04-02-2010, 04:17 AM
Thanks nice addon. installed.

Dr.osamA
04-03-2010, 10:47 AM
installed

there are no Arabic

thanxx mate

Big-Pete
04-03-2010, 11:14 AM
Very nice.. I just installed this and now i get an error message saying Stack overflow at line 95

Any idea what may cause this??

Im running vb402.PL4

cellarius
04-03-2010, 01:19 PM
Updated to 4.0.002 which now has an AdminCP section to pass parameters to the javascript.

I also edited mod description, especially on available languages and translations, and added two new screenshots.

Ronny46
04-07-2010, 04:55 PM
läuft gar nicht bei mir

ProFifaLeagues
04-07-2010, 05:31 PM
Superb thanks!!

archet1337
04-07-2010, 09:46 PM
Brilliant! Thanks a lot for sharing :)

murekhalir
04-09-2010, 05:34 PM
thx

Filgga
05-18-2010, 10:25 AM
Thanks buddy

Filgga
05-18-2010, 10:32 AM
Thanks buddy

ARSamo
06-17-2010, 12:12 PM
is it working for vb 3.7.x

cellarius
06-17-2010, 12:27 PM
You'll know after you try. It should.

Brandon Sheley
06-17-2010, 01:25 PM
Thanks for the mod, thanks

Nano_
07-06-2010, 04:20 AM
cellarius, Browser Update website have a pt (portuguese) translation of this phrase:

"Seu navegador ($browser $version) est? desatualizado. Ele possui falhas de seguran?a e pode apresentar problemas para exibir este e outros websites. Veja como atualizar o seu navegador (http://browser-update.org/pt/update.html#5)".

Tagged and waiting for update. =)

cellarius
07-06-2010, 07:59 PM
There won't be an update. The language is not selected by the mod, but by the browserupdate.org-code automatically.

josantos
09-15-2010, 12:14 PM
Works fine on VB4.0.7 :up:

BadgerDog
09-15-2010, 01:16 PM
Installed on 4.04pl1 and testing ...

Thank you ... :up:

Regards,
Badger

Alucard^
09-15-2010, 01:29 PM
Hey man, nice addon.

But i have a little problem, look this:

http://www.webpagescreenshot.info/img/236392-915201042734pm.png

The problem is when the leter have a ?

P.S: Is Spanish.

Alfa1
10-25-2010, 04:41 PM
This gives a message that the browser is out of date, while its the latest version. (FF3.6.11)

OldSchoolDSL
01-10-2011, 04:27 PM
I like the idea and would really like to use this mod... But it does not report correctly.

Opera 11 IS the newest build, but this tells me I'm out of date.

The same seems to happen with Firefox & Google Chrome

EliasAlucard
08-03-2012, 09:07 AM
Great plugin, installed and nominated.

Alfa1
03-30-2013, 12:16 PM
This still does not work right. It shows an erroneous message while the users are on the latest version of firefox.