News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

IF useragent=IE, show something?

Started by Miasma, March 13, 2010, 09:40:27 AM

Previous topic - Next topic

Miasma

Hi, i would like to make add a code on my portal that would show a custom message to all people who are using IE.

Could it be possible? Maybe some script?

Oldiesmann

Pull in SSI.php and look at $context['browser']['is_ie']:

include_once('/path/to/SSI.php');
...
if ($context['browser']['is_ie'])
{
    // Code to display your message goes here
}


Just make sure you include SSI.php at the beginning of the file before anything else is output.
Michael Eshom
Christian Metal Fans

Advertisement: