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?

Zachery 02-02-2014 10:21 PM

I'd suggest you redo the changes carefully.

Stratis 08-12-2015 03:18 PM

For me in vb4.2.0pl4 i have white page when upload images.
The only way to fix this so far is
<meta http-equiv="X-UA-Compatible" content="IE=9" />
in headinclude

Hoped this will fix and other little problems.
Any way thanks Zachery :)

Stratis 04-24-2018 05:42 AM

After almost 3 years i have an issue with black screen in YouTube videos.
All videos are inserted with the default "video insert".
This happens only in IE 11, if i delete the
<meta http-equiv="X-UA-Compatible" content="IE=9" />

videos shows up correctly but than the other problems with editor an other shows up because the "meta" code fixes them.

Any one has same problem?? any solution??
vb4.2.0 (can not upgrade)

fortforum 04-29-2018 07:40 AM

Same problem, only the removal of that tagg doesn´t make any difference at all. Would really like to solve this issue.

Stratis 07-23-2018 06:02 AM

Quote:

Originally Posted by Stratis (Post 2594377)
After almost 3 years i have an issue with black screen in YouTube videos.
All videos are inserted with the default "video insert".
This happens only in IE 11, if i delete the
<meta http-equiv="X-UA-Compatible" content="IE=9" />

videos shows up correctly but than the other problems with editor an other shows up because the "meta" code fixes them.

Any one has same problem?? any solution??
vb4.2.0 (can not upgrade)

Bump, any one, any fix?


All times are GMT. The time now is 06:09 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.01151 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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