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 - IE11 browser detection and fixes (https://vborg.vbsupport.ru/showthread.php?t=303521)

Zachery 10-16-2013 10:00 PM

IE11 browser detection and fixes
 
1 Attachment(s)
IE11 gets along pretty well with vB4, though file downloads get a bit wonky due to some changes in how IE is detected.

Please note, that 4.2.2 and beyond ALREADY includes these changes.


In includes/functions.php find:



PHP Code:

         // detect macintosh 


Add above:

PHP Code:

// Detect Modern IE11+
        
if (strpos($useragent'trident') !== false AND !$is['opera'] AND !$is['ie'])
        {
            
preg_match('#rv:([0-9\.-]+)#'$useragent$regs);
            
$is['ie'] = $regs[1];
        } 



Next, find:

PHP Code:

if (strpos($useragent'gecko') !== false AND !$is['safari'] AND !$is['konqueror']) 

And replace it with

PHP Code:

if (strpos($useragent'gecko') !== false AND !$is['safari'] AND !$is['konqueror'] AND !$is['ie']) 


tpearl5 11-15-2013 05:23 PM

Thanks for posting the fix!

Zachery 11-20-2013 07:26 PM

Updated the detection code to better handle an IE10 case.

dewebguy 12-10-2013 02:25 AM

Thanks for this! It worked great!

tpearl5 12-27-2013 07:05 PM

my users are still reporting problems with IE11. Is there anything else that can be done short of updating ckeditor or just disabling it when IE11 is used?

Zachery 12-27-2013 07:10 PM

What problems? You need to be specific :)

tbworld 12-27-2013 07:15 PM

Quote:

Originally Posted by tpearl5 (Post 2470823)
my users are still reporting problems with IE11. Is there anything else that can be done short of updating ckeditor or just disabling it when IE11 is used?

Your statement is to broad in scope. It would be helpful if you could list some of the problems your users are having. Thanks :)

tpearl5 12-27-2013 07:31 PM

They are reporting that the image dialog doesn't work, copy/paste doesn't work, can't insert the cursor into reply box or reply at all in some cases, or the site just causes the browser to crash.

Zachery 12-27-2013 11:49 PM

Make sure your IE11 users are using the editor in Standard, not Advanced mode. The Advanced WYSIWYG editor doesn't detect/function correctly for IE11.

griffinpower 02-02-2014 05:45 PM

So when I make the above changes I get a blank page in IE11 and it never loads the forum. Any ideas what it may be?


All times are GMT. The time now is 09:49 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.03537 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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