Back to vBulletin 3.8 Add-ons

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

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

IE11 gets along pretty well with vB3, though file downloads get a bit wonky due to some changes in how IE is detected.

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

vblts.ru supports vBulletin®, 2022-2024