Old Browser warning

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Old Browser warning

Postby Ashwini » 25 Sep 2015, 11:25

In Internet Explorer 11 , display following warning ...But Internet Explorer 11 is not old browser.
Warning! Your browser is old.
It has known security flaws and you will not see all the features of some websites.
Please download and install one of the modern browsers:
Ashwini
Passer
 
Posts: 44
Joined: 03 Aug 2015, 12:41
Reputation point: 0

Re: Old Browser warning

Postby Xpycm » 25 Sep 2015, 12:26

Hello.
Thank you for your post.

It seems like something is wrong with line User-Agent, as IE 11 is usually indetified as "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv 11.0) like Gecko" and the message about the browser being outdated doesn't appear under IE 11.

Try to apply the following method:

Open protected\components\oldbrowsers\CheckBrowser.php
In method public static function isOld()
before
Code: Select all
$browser self::getBrowser(); 

insert
Code: Select all
return false


Or delete the following code from themes\atlas\views\layouts\main.php:
Code: Select all
<?php if (CheckBrowser::isOld()) : ?>
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/css/oldbrowsers/check_browser.css" type="text/css" media="screen">
    <?php
    
echo CheckBrowser::warning(nulltrue);
    echo 
'</body></html>';
    exit;
    
?>
<?php 
endif;?>
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 29 guests