I dont know who made it, but I was wondering if you could upgrade it so it supports Google Chrome?
I use Google Chrome and this mod makes it say I use Safari...
would very much appreciate if this plugin will be updated to support Chrome and Windows 7. thanks so much for the plugin
quick fix:
after line 75 add
else if (strpos($ua, 'windows nt 6.1') !== false || strpos($ua, 'winnt6.1') !== false) $ua_os = 'windows_seven';
after line 137 add
case 'windows_seven': return 'Windows Seven';
// Browser detection: (line18)
after the safari part add
else if (strpos($ua, 'chrome') !== false) $ua_browser = 'chrome';
line 99 after the safari part add
case ''chrome': return ''Chrome';
and upload the icons for the system and browser to your "/images/useragent" folder they need to be "icon_windows_seven.gif" and "icon_chrome.gif"
system part is tested, browser part should work (not testet yet)
thanks very much Andii S
Windows 7 is detected now except for the chrome which still displays safari. anyway, thanks for you help
try
else if (strpos($ua, 'AppleWebKit') !== false) $ua_browser = 'chrome';
case ''chrome': return ''Chrome';
doesn't work either
Intead, i placed chrome before safari and it work now.
Thanks again.
How can made this plugin info only visible for Admins?