Quote from: IVKE13 on July 11, 2021, 05:46:44 AMwell seeing that the last post in this thread was back in 2016 (5 years ago) and seeing that the mod was last updated back in 2014 (7 years ago) I highly doubt that windows 10 was added to it just yet...
Hello,
where can I find add-on for detection of windows 10, anodoid (mobile)
Quote from: Branko. on December 06, 2008, 05:23:42 AM
* Version 1.1 (18. 01. 2009.)
- Fixed Unefined index error in Subs-Post.php (SMF 2.x)
- Windows 7 support included
- Swedish translation added (thanks to P_cool)
- Portugeese translation added (thanks to joomlamz)
- Polish translation added (thanks to saneone)
- Spanish translation added (thanks to M-DVD)
$txt['OS_Browser_Compatible'] = 'compatible';
$txt['OS_Browser_OS'] = 'OS';
$txt['OS_Browser_Unknown'] = 'Unknown';
$txt['OS_Browser_Browser'] = 'Browser';
$txt['permissiongroup_simple_view_os_browser'] = 'View detected OS & Browser in posts';
$txt['permissionname_view_os_browser'] = 'View detected OS & Browser in posts';
$txt['permissionhelp_view_os_browser'] = 'If enabled, the member will see the detected OS & Browser for each post, if they are detected.';
Quote from: cieplutki on August 15, 2015, 03:56:04 AM
Windows 10
Edge browser
Internet Explorer on mobile
Quote from: villasg on August 14, 2015, 07:38:18 AMQuote from: cieplutki on August 10, 2015, 02:41:37 PM
Add windows 10 and Egde broweser (internet explorer) who check
Hi again
Edge 20.10240.16384.0 recognized as "42.0.2311.135 Chrome 42.0.2311.135"
Quote from: snoopy_virtual on August 13, 2015, 12:15:10 AM
Even better
// EDGE
if(preg_match('/Edge\/([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array) && !$client_data['browser'])
{
$client_data['browser'] = "Edge" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['browser_icon'] = 'msie';
}
Just in case they change the number 12.0 in a couple of weeks
the same happened with this opinion .......
Any solution please ?
And Edge icon attached
// EDGE
if(preg_match('/Edge\/([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array) && !$client_data['browser'])
{
$client_data['browser'] = "Edge" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['browser_icon'] = 'edge';
}
Quote from: cieplutki on August 10, 2015, 02:41:37 PM
Add windows 10 and Egde broweser (internet explorer) who check
Quote from: snoopy_virtual on August 13, 2015, 12:15:10 AM
Even better
// EDGE
if(preg_match('/Edge\/([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array) && !$client_data['browser'])
{
$client_data['browser'] = "Edge" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['browser_icon'] = 'msie';
}
Just in case they change the number 12.0 in a couple of weeks
Quote from: cieplutki on August 10, 2015, 02:41:37 PM
Add windows 10 and Egde broweser (internet explorer) who check
2: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found
if(preg_match('/Edge\/12.0', $user_agent, $tmp_array) && !$client_data['browser'])
if(preg_match('/Edge\/12.0/', $user_agent, $tmp_array) && !$client_data['browser'])
Quote from: snoopy_virtual on June 13, 2015, 03:09:39 PM
Another possible user agent to add for MSIE 11:
// Baiduspider
if(preg_match('/Baiduspider\/([0-9a-z\+\-\.]+).*/s', $user_agent, $tmp_array) && !$client_data['browser'])
{
$client_data['browser'] = "Baiduspider" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['browser_icon'] = 'robot';
}
if(preg_match('/Windows-RSS.*IE ([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array) && !$client_data['browser'])
{
$client_data['browser'] = "MS Internet Explorer" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['browser_icon'] = 'msie';
}
Quote from: gemchug74 on February 21, 2015, 12:42:46 PMI think it's no good because Microsoft Confirms that Windows 10 will also be Version 10 Internally and not version 6.4
Hi, added Win10, check correct or not ?
Quote// Opera
if((preg_match('/mozilla.*opera ([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array) || preg_match('/^opera\/([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array)) && !$client_data['browser'])
{
$client_data['browser'] = "Opera" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['browser_icon'] = 'opera';
if(preg_match('/opera mini/si', $user_agent))
{
preg_match('/opera mini\/([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array);
$client_data['browser'] .= " (Opera Mini" . ($tmp_array[1] ? " ".$tmp_array[1] : "") . ")";
}
if(preg_match('/Version\/([0-9]+\.[0-9]+)/', $user_agent, $tmp_array))
{
$client_data['browser'] = "Opera " . $tmp_array[1];
}
}
QuoteMozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36 OPR/20.0.1387.91
Quote from: cieplutki on January 12, 2014, 08:36:44 AMIt looks like you're missing a couple detections:
OkQuote* version 1.7 (12. 01. 2013.)
- Windows 8 support included (thanks to lukaszuk1995)
- Windows Phone support included
- Blackberry support included
- Linux Mint support included (thanks to Freñçh)
- Internet Explorer 11 support included (thanks to Sandmansa)
need help with the new version of Opera 18QuoteMozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 OPR/18.0.1284.68 (Edition Campaign 21)
Quote* version 1.7 (12. 01. 2013.)
- Windows 8 support included (thanks to lukaszuk1995)
- Windows Phone support included
- Blackberry support included
- Linux Mint support included (thanks to Freñçh)
- Internet Explorer 11 support included (thanks to Sandmansa)
QuoteMozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 OPR/18.0.1284.68 (Edition Campaign 21)
// Catchall for other Mozilla compatible browsers
if(preg_match('/mozilla/si', $user_agent, $tmp_array) && !$client_data['browser'])
{
$client_data['browser'] = "Mozilla " . $txt['OS_Browser_Compatible'];
$client_data['browser_icon'] = 'mozilla';
}
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko
if(preg_match('/mozilla.*rv:[11.0\.]+.*gecko\/[0-9]+.* Trident/7.0\/([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array) && !$client_data['browser'])
Quote from: cieplutki on January 01, 2014, 05:40:42 AMIt doesn't work for me, I have syntax error, also Windows Phone useragent detect only WP 8.
hello,
who can test the BlackBerry OS
find:// SonyEricsson & Ericsson
add before://Blackberry
if(preg_match('/blackberry/si', $user_agent))
{
$client_data['system'] = "BlackBerry OS";
$client_data['system_icon'] = "blackberry";
if(preg_match('/blackberry ([0-9.]+).*/si', $user_agent, $tmp_array))
{
$client_data['system'] = "BlackBerry OS" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
}
currently no icon.
Quote from: #Pascal on September 28, 2011, 06:49:16 AM
Patch for detecting Android and iOS// Android
if(preg_match('/android ([0-9.]+).*/si', $user_agent, $tmp_array))
{
$client_data['system'] = "Android" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['system_icon'] = "android";
}
// iOS
if((preg_match('/iphone|ipad/si', $user_agent)) && (preg_match('/OS ([0-9_]+).*/si', $user_agent, $tmp_array)))
{
$tmp_array = str_replace("_", ".", $tmp_array);
$client_data['system'] = "iOS" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['system_icon'] = "iphone";
}
Quote from: Grimm.CSF. on September 28, 2011, 05:26:06 PMQuote from: Eclipse16V on September 28, 2011, 02:11:06 PMQuote from: PascalCX on September 28, 2011, 06:49:16 AMDoesn´t work with Android.
Patch for detecting Android and iOS// Android
if(preg_match('/android ([0-9.]+).*/si', $user_agent, $tmp_array))
{
$client_data['system'] = "Android" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['system_icon'] = "android";
}
// iOS
if((preg_match('/iphone|ipad/si', $user_agent)) && (preg_match('/OS ([0-9_]+).*/si', $user_agent, $tmp_array)))
{
$tmp_array = str_replace("_", ".", $tmp_array);
$client_data['system'] = "iOS" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['system_icon'] = "iphone";
}
Display Linux and not Android.
It work's for me :s
In Sources/os_browser_detection.php
Find:// Samsung
if(preg_match('/samsung\-([0-9a-zA-Z\+\-\.]+){0,1}\//si', $user_agent, $tmp_array))
{
if(!$client_data['system'])
{
$client_data['system'] = "Samsung" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['system_icon'] = "mobile";
}
else
{
$client_data['system'] .= " / Samsung" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
}
}
Add After:// Android
if(preg_match('/android ([0-9.]+).*/si', $user_agent, $tmp_array))
{
$client_data['system'] = "Android" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['system_icon'] = "android";
}
// iOS
if((preg_match('/iphone|ipad/si', $user_agent)) && (preg_match('/OS ([0-9_]+).*/si', $user_agent, $tmp_array)))
{
$tmp_array = str_replace("_", ".", $tmp_array);
$client_data['system'] = "iOS" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
$client_data['system_icon'] = "iphone";
}
Upload the icon_iphone.png + icon_android.php to Themes/default/images/os_browser_detection.
If it's okay with everyone I could upload the package.
Quote from: #Pascal on October 01, 2011, 01:08:34 PM
Android detection(fixed)// Android
if(preg_match('/android/si', $user_agent))
{
$client_data['system'] = "Android";
$client_data['system_icon'] = "android";
if(preg_match('/android ([0-9.]+).*/si', $user_agent, $tmp_array))
{
$client_data['system'] = "Android" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
}
}
Quote from: Grimm.CSF. on October 10, 2011, 05:11:59 AMQuote from: French on October 10, 2011, 04:15:01 AM
Still looking to get system_icon LinuxMint in Mod OS & Browser.
edit this lineelseif(preg_match('/linuxmint/si', $user_agent))
{
$client_data['system'] .= " (Linuxmint)";
$client_data['system_icon'] = "linuxmint"
in os_browser_detection.php,but unfortunately the system icon didn´t change
Info My User Agent.Your User Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Also looking for the same issue when using Bodhi Linux (Waiting for User Agent info by one of the Bodhi Linux users)
I'm sure I got this rightelseif(preg_match('/mint/si', $user_agent))
{
$client_data['system'] = " (Linux Mint)";
$client_data['system_icon'] = "mint";
}
Attached is the icon that goes in /Themes/default/images/os_browser_detection/
Also attached is the full package that includes the changes.
Quote from: villasg on October 31, 2012, 04:57:16 PMQuote from: cieplutki on October 26, 2012, 01:02:06 PM
Windows 8 out and my suggestion
on os_browser_detection.php findif($tmp_array[1] == "6.1")
{
$client_data['system'] = "Windows 7/Server 2008 R2";
$client_data['system_icon'] = "vista";
}
replaceif($tmp_array[1] == "6.2")
{
$client_data['system'] = "Windows 8/Server 2012";
$client_data['system_icon'] = "Win8";
}
elseif($tmp_array[1] == "6.1")
{
$client_data['system'] = "Windows 7/Server 2008 R2";
$client_data['system_icon'] = "vista";
}
the correct is :
replaceif($tmp_array[1] == "6.2")
{
$client_data['system'] = "Windows 8/Server 2012";
$client_data['system_icon'] = "win8";
}
elseif($tmp_array[1] == "6.1")
{
$client_data['system'] = "Windows 7/Server 2008 R2";
$client_data['system_icon'] = "vista";
}
because the $client_data['system_icon'] = "win8"; is with small w not capital
Quote from: lukaszuk1995 on August 31, 2013, 04:13:01 AM
My update for Windows 8.1 & Windows 8 :
Find:if($tmp_array[1] == "6.1")
{
$client_data['system'] = "Windows 7/Server 2008 R2";
$client_data['system_icon'] = "vista";
}
Replace with:{if($tmp_array[1] == "6.3")
{
$client_data['system'] = "Windows 8.1";
$client_data['system_icon'] = "win81";
}
elseif($tmp_array[1] == "6.2")
{
$client_data['system'] = "Windows 8";
$client_data['system_icon'] = "win8";
}
elseif($tmp_array[1] == "6.1")
{
$client_data['system'] = "Windows 7";
$client_data['system_icon'] = "win7";
}
Quote from: cieplutki on December 08, 2013, 06:02:46 AM
Added before:// Catchall for all other windozez
// Windows Mobile
if(preg_match('/windows phone ([0-9\.]+).*/si', $user_agent, $tmp_array) || preg_match('/phone([0-9\.]+).*/si', $user_agent, $tmp_array) && !$client_data['system'])
{
$client_data['system'] = "Windows Phone";
$client_data['system_icon'] = "win_phone";
}
and it looks like in the attach
Quote from: cieplutki on January 01, 2014, 05:40:42 AM
hello,
who can test the BlackBerry OS
find:// SonyEricsson & Ericsson
add before://Blackberry
if(preg_match('/blackberry/si', $user_agent))
{
$client_data['system'] = "BlackBerry OS";
$client_data['system_icon'] = "blackberry";
if(preg_match('/blackberry ([0-9.]+).*/si', $user_agent, $tmp_array))
{
$client_data['system'] = "BlackBerry OS" . ($tmp_array[1] ? " ".$tmp_array[1] : "");
}
currently no icon.
Quote from: cieplutki on January 01, 2014, 06:59:49 AM
blackberry icon on attach
and who check Linux Mint
find:elseif(preg_match('/mdk/si', $user_agent))
{
$client_data['system'] .= " (Mandrake)";
$client_data['system_icon'] = "mandriva";
}
add before:elseif(preg_match('/mint/si', $user_agent))
{
$client_data['system'] = " (Linux Mint)";
$client_data['system_icon'] = "mint";
}
I will be grateful for checking if it works
// Catchall for all other windozez
// Windows Mobile
if(preg_match('/windows phone ([0-9\.]+).*/si', $user_agent, $tmp_array) || preg_match('/phone([0-9\.]+).*/si', $user_agent, $tmp_array) && !$client_data['system'])
{
$client_data['system'] = "Windows Phone";
$client_data['system_icon'] = "win_phone";
}