Future major features

 
 
Picture of Richard Oelmann
Re: We will probably drop support for IE8 in Moodle 2.5 (June 2013)
Group Particularly helpful MoodlersGroup Testers

In the theme layout files - something along the lines of (extracted from Julian's Essential theme):

 if (!empty($_SERVER['HTTP_USER_AGENT'])) {
    $checkuseragent = $_SERVER['HTTP_USER_AGENT'];
}
// Check if IE7 browser and display message
if (strpos($checkuseragent, 'MSIE 7')) {
    do something for IE7 here
}
if (strpos($checkuseragent, 'MSIE 8') || strpos($checkuseragent, 'MSIE 7')) {
    do something for IE 7&8 here
} else {
    do something for every other browser here
} ?>

of course the $checkuseragent can be used for just about anything if you know what strings to look for - other versions of IE, versions of other browsers, mobile browsers etc.

HTH

Richard

 
Average of ratings: -
Picture of Andrew Nicols
Re: We will probably drop support for IE8 in Moodle 2.5 (June 2013)
Group DevelopersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

Hi Richard,

For the record, we do have a function in lib/moodlelib.php called check_browser_version() which can be called as:

if (check_browser_version('MSIE') && !check_browser_version('MSIE', 9)) {
  // This is IE with a version number lower than 9
}

It checks for a version greater or equal to the one specified - hence, first checking for an IE match, and then checking whether it is not greater than or equal to IE9. This attempts to handle various IEisms like different browser modes for infranet sites.

Andrew

 
Average of ratings:Useful (1)
Picture of Richard Oelmann
Re: We will probably drop support for IE8 in Moodle 2.5 (June 2013)
Group Particularly helpful MoodlersGroup Testers

Thanks for that Andrew smile

 
Average of ratings: -