vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Warn users with IE6 (https://vborg.vbsupport.ru/showthread.php?t=266748)

boydy 07-12-2011 10:00 PM

Warn users with IE6
 
1 Attachment(s)
Hi guys,

This is an extremley simple mod to install, if a user visits your forum using IE6 a message block will appear at the head of the page containing a warning with links to up-to-date browsers.

Step 1 - Open Template -> headinclude

Step 2 - Add to top ->
Code:

<!-- IE6 Warning -->
<!--[if IE 6]>
<style>#ie6-warning{background:#F00; margin-bottom:5px; padding:4px; width:100%; font-size:12px; color:#FFF;}#ie6-warning a{color:#FF6; font-weight:bold;}</style>
<div id="ie6-warning" class="warning-box">
<strong>Warning!</strong> You're running <strong>Internet Explorer 6</strong>.
<p>Our forums are best viewed in an up-to-date browser, please download the one of the following,</p><p> <a href="http://firefox.com" title="Mozilla Firefox">Mozilla Firefox</a>.<br /> <a href="http://www.google.com/chrome/" title="Google Chrome">Google Chrome</a>.<br /> <a href="http://apple.com/safari/" title="Safari">Safari</a>.<br /> <a href="http://opera.com" title="Opera Web Browser">Opera</a>.</p><p> If you insist on using IE please download the latest version, <a href="http://www.microsoft.com/windows/internet-explorer/" title="Internet Explorer">here</a>.</p>
</div><![endif]-->
<!-- IE6 Warning End -->

And that's it! All done, demo is in the screenshot below, i have tested it using ietester and it works fine for me on 4.x.x.

Enjoy! And please remember to mark as installed for future updates and support!

Boydy

alghzil 05-15-2012 01:40 PM

tag for later


All times are GMT. The time now is 09:48 PM.

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.00962 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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