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.


All times are GMT. The time now is 03:11 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.01107 seconds
  • Memory Usage 1,739KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete