Search results for: windows

Search order
#1
Quote from: IVKE13 on July 11, 2021, 05:46:44 AM
Hello,

where can I find add-on for detection of windows 10, anodoid (mobile)
well 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...
and well the mod author hasn't been active since 2015 (6 years ago), I wouldn't hold my breath for an updated

and per the original post it seems windows 7 was the highest version they went to with this mod
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)

although if you search this thread for windows, there are a few posts that may help you out

#2
Hello,

where can I find add-on for detection of windows 10, anodoid (mobile)

#3
OS & Browser Detection
by X3mE, version 1.5




Description



This modification will show the OS & Browser used by the user while posting. This information is gathered from the browser's user agent sent during posting time. It is not changed after editing the post.

You can choose in the Admin Control Panel which membergroups are allowed to view detected information.

There are many operating systems and browsers supported, but if you wish to add some new to the list, please use the modification support thread and leave your user agent.


Screenshot





Live Demo: http://x3me.iz.rs/index.php?board=2.0


Changelog



* version 1.5 (20. 09. 2010.)
- Added SMF 2.0 RC3 compatibility (thanks to everyone in the support topic who posted their comments, especially cieplutki & snoopy_virtual), not working with earlier SMF 2.0 branch anymore, use 1.4 instead!
- Updated the base detection engine for new releases of browsers and operating systems
- Spanish translation updated (thanks to snoopy_virtual)
- Russian translation added (thanks to Gladman)
- Turkish translation added (thanks to ოկtђ)
- Thai translation added (thanks to Rid-rop)
- Italian translation added (thanks to CrazyHorse80)

* version 1.4 (29. 04. 2009.)
- Added a membergroup permission to view detected information
- Ubuntu 9.04 Jaunty detection added
- Installation code reorganized
- Finnish translation updated (thanks to LexArma)
- German translation added (thanks to Eclipse16V)

* version 1.3 (10. 04. 2009.)
- Fixed undefined errors in SMF 1.1.x
- Finnish language added (thanks to LexArma)

* version 1.2 (05. 02. 2009.)
- Updated to work with SMF 2.0 RC1 (Removed compatibility with 2.0 Beta 4)
- Fixed a layout issue in SMF 1.1.x
- SMF 1 & 2 installs in same package, AUMR version no longer needed

* 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)

* Version 1.0 (19. 11. 2008.)
- Initial version for SMF 2.0 Beta 4 and SMF 1.1.7


Credits



Based on Web Browser Identifier v0.9, by Marcin Krol.


Notes



Normally, you upload and install OS_Browser_Detection_vX.X.zip (for SMF 2.0 RC3 or SMF 1.1.x).

If you have SMF up to 2.0 RC1, please use version 1.4 of the mod, and if you have Advanced Reputation System installed, please use the file with the ARS extension (up to 2.0 RC1 only!).

Please be aware that if you wish to uninstall ARS later, you will have to uninstall OS & Browser Detection first (however, your database settings will be saved if you wish to reinstall it later).

Note that this mod will only show OS & Browser for posts created after installation. Before installing it, this information was never stored in the database.

If you are switching from K-Detection, refer to this post for instructions how to preserve and import existing data into OS & Browser detection.

Please post all your support questions and comments in the support thread. You can also use the Issue Tracker on the Demo Website.


Languages



Languages included:
- English (english, english-utf8)
- Finnish (finnish)
- German (german)
- Italian (italian)
- Polish (polish)
- Portuguese (portuguese_pt-utf8)
- Russian (russian)
- Serbian (serbian, serbian-utf8, serbian-utf8-lat, serbian_latin-utf8)
- Spanish (spanish, spanish-utf8, spanish_es, spanish_es-utf8, spanish_latin, spanish_latin-utf8)
- Swedish (swedish-utf8)
- Thai (thai)
- Turkish (turkish)

To translate it to your own language, add the translation for:

$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.';


in the appropriate Modifications.language.php file. You are welcome to post your translations in the support topic.


Donations



If you like this mod, please donate to support its further development. Any amount would be highly appreciated. Thank you.



#4
Quote from: cieplutki on August 15, 2015, 03:56:04 AM
Windows 10
Edge browser
Internet Explorer on mobile

I am using 2.0.12

After installing this now I get:
"The database value you're trying to insert does not exist: id_board"

Either I try to create a new thread or post a reply

Any ideas?

#5
Windows 10
Edge browser
Internet Explorer on mobile

#6
Quote from: villasg on August 14, 2015, 07:38:18 AM
Quote 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  8)

the same happened with this opinion .......

Any solution please ?


And Edge icon attached

The solution would be to use this:


// 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';
      }  


But to put it further up in the file, before the catch for Chrome

Around line 266 I think.

#7
Quote 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  8)

the same happened with this opinion .......

Any solution please ?


And Edge icon attached

#8
Quote from: cieplutki on August 10, 2015, 02:41:37 PM
Add windows 10 and Egde broweser (internet explorer) who check

Receive errors in my smf 2.0.10
2: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: No ending delimiter '/' found
in /**/**/Sources/os_browser_detection.php  line 691

This is line 691

if(preg_match('/Edge\/12.0', $user_agent, $tmp_array) && !$client_data['browser'])


i think the correct are ( adding one / in '/Edge\/12.0 ) :

if(preg_match('/Edge\/12.0/', $user_agent, $tmp_array) && !$client_data['browser'])


Any idea please ?

#9
Add windows 10 and Egde broweser (internet explorer) who check

#10
Quote from: snoopy_virtual on June 13, 2015, 03:09:39 PM
Another possible user agent to add for MSIE 11:

That was because I saw a visitor in one of my forums with this user agent: Windows-RSS-Platform/2.0 (IE 11.0; Windows NT 6.1) and this mod didn't catch it.

Reading this page: https://msdn.microsoft.com/library/ms537503.aspx I sow what it was. That's why I recommended to add that code inside the MSIE 11 area.

Today I have seen another visitor not recognized by the mod with this user agent: Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)

It is obviously Baidu robot, so we should add inside the section Various robots...:


    // 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';
      }

#11
Another possible user agent to add for MSIE 11:


    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';
      }

#13
How to added new opera like 20

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];
        }
    }

this code show like google chrome but not opera

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

#14
Hi,

Windows 8.1  is on pack, 1.7 is only info, source was update.

best

#15
Quote from: cieplutki on January 12, 2014, 08:36:44 AM
Ok

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)

need help with the new version of Opera 18
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)
It looks like you're missing a couple detections:
http://www.simplemachines.org/community/index.php?topic=278770.msg3652278#msg3652278
:D
(Windows 8.1 is also on that list!)

Overall, nice work! Can't wait to update! :)

#16
Ok

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)

need help with the new version of Opera 18
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)

#17
This is a line which the useragent which uses IE 11.
    // 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';
      }
     

This is IE 11 useragent :
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko
How to modify it to Internet Explorer 11 ?
It must be something like this :if(preg_match('/mozilla.*rv:[11.0\.]+.*gecko\/[0-9]+.* Trident/7.0\/([0-9a-z\+\-\.]+).*/si', $user_agent, $tmp_array) && !$client_data['browser'])

#18
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.
It doesn't work for me, I have syntax error, also Windows Phone useragent detect only WP 8.

#19
I tried my best to compile the new detections, (no code changes/translations), that were made since the final release stated by this topic's title. The icons included are attached to this post, directly from the quoted locations. Both versions of the Microsoft Windows 8 icons are included too. Enjoy:

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 PM
Quote from: Eclipse16V on September 28, 2011, 02:11:06 PM
Quote from: PascalCX 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";
      }

Doesn´t work with Android.
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 AM
Quote from: French on October 10, 2011, 04:15:01 AM
Still looking to get system_icon LinuxMint in Mod OS & Browser.
edit this line   elseif(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 right
      elseif(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 PM
Quote from: cieplutki on October 26, 2012, 01:02:06 PM
Windows 8 out and my suggestion
on os_browser_detection.php find
      if($tmp_array[1] == "6.1")
        {
        $client_data['system'] = "Windows 7/Server 2008 R2";
        $client_data['system_icon'] = "vista";
        }  

replace
      if($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 :
replace
      if($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  8)

#20
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

Advertisement: