PDA

View Full Version : Miscellaneous Hacks - IE11 browser detection and fixes


Zachery
10-16-2013, 10:00 PM
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:




// detect macintosh


Add above:


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

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

And replace it with

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