vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Cel Update your Browser Nagger (unobtrusive) (https://vborg.vbsupport.ru/showthread.php?t=239559)

cellarius 03-31-2010 10:00 PM

Cel Update your Browser Nagger (unobtrusive)
 
1 Attachment(s)
.
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:
Quote:

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



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

Quote:

Originally Posted by Wayne Luke (Post 2014233)
Heya... Just want to say nice addon.

Hi Wayne, thanks :) Not much to it, tho ;)

Quote:

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
Quote:

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

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/im...01042734pm.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.


All times are GMT. The time now is 05:48 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01145 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete