|
Add Google Chrome to the is_browser() function
This modification is in the archives.
http://members.vbulletin.com/api/vBulletin/_includes---functions.php.html#functionis_browser
This modification will allow you to insert into templates code specific for Google Chrome (useful for correcting CSS issues that it has with box-shadow and opacity). It obviously needs file edits, as there is no hook in there. Should work for vB versions from 3.7.3 and below, although in very old versions, the code to find might slightly be different. File: includes/functions.php 1. Find: PHP Code:
'safari' => 0,
PHP Code:
'chrome' => 0, //added for chrome detection
PHP Code:
// detect safari
PHP Code:
// detect Google Chrome
PHP Code:
if (strpos($useragent, 'gecko') !== false AND !$is['safari'] AND !$is['konqueror'])
PHP Code:
if (strpos($useragent, 'gecko') !== false AND !$is['safari'] AND !$is['konqueror'] AND !$is['chrome'])
Download No files for download. |
|||||||||