Back to vBulletin 4.x Add-ons

IE11 browser detection and fixes
Mod Version: 1.01, by Zachery

vB Version: 4.2.1 Rating: (1 vote - 5.00 average) Installs: 22
Released: 17 Oct 2013 Last Update: Never Downloads: 0
Not Supported Code Changes  

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']) 

Download

No files for download.

Similar Mods

Integration with vBulletin Mobile Device & Browser Detection (Adapted by BOP5) vBulletin 4.x Add-ons
Miscellaneous Hacks IE11 browser detection and fixes vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024