OS & Browser Detection (version 1.5 is out) [20. 09. 2010.]

Started by Branko., December 06, 2008, 05:23:42 AM

Previous topic - Next topic

NanoSector

Linux Mint is based on Ubuntu and uses almost the same kernel modules, so really, that's why it identifies Ubuntu as Mint. Should be the other way around though, I guess.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

MrPrise

I have upgraded this mod to work with SMF 2.0.2
Anyone is interested testing it?

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

MrPrise

I meant the one which does not.  OS_Browser_Detection_v1.4_SMF_2.x_ARS.zip

mrfaraday

Quote from: MrPrise on July 22, 2012, 04:46:02 AM
I have upgraded this mod to work with SMF 2.0.2
Anyone is interested testing it?

please i need it ......


cieplutki

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




.

Hj Ahmad Rasyid Hj Ismail


villasg

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


SD-X

Anyone know if this mod is compatible with SMF 2.0.3? I'm assuming so, but I haven't tested it yet.


SD-X

Forgot to mention, I got sick of waiting for someone to confirm on the compatibility, so I just said screw it and tested it. It's working beautifully in SMF 2.0.3 still. I also added Cieplutki's mod, and it too is working beautifully. Thanks so much guys!

Can't wait to see an official update to this thing, though! :D

EliasAlucard

Hello, I'm the developer of UADisplay:

vbulletin.org/forum/showthread.php?t=295667

UADisplay is based on OS/Browser Display in Postbits, by nhawk:

vbulletin.org/forum/showthread.php?t=280899

Which in turn, was based on OS & Browser Detection by X3mE. Problem here is with X3mE's plugin, is that it is not released under the GNU GPL v3, as it's supposed to be, because it is based on Marcin Krol's GPLed software:

id.furud.net/

In the os_browser_detection.php, it says "License: free for non-commercial use", whereas in Marcin Krol's original software, it very specifically said the software was released under the GNU GPL v3:

// Web Browser Identifier v0.9
// Written by Marcin Krol <[email protected]>
// License: GPL

X3mE's plugin:

// Web Browser Identifier v0.9
// Written by Marcin Krol <[email protected]>
// License: free for non-commercial use
//
// URL: hxxp:id.furud.net/ [nonactive]
// Modified by X3mE

^^ This must be rectified. Is there any possible way for the SMF community to fix this? That way, future developers can avoid the issues me and nhawk had over the license (which have now been solved between me and him).

Edit:

I couldn't post links, so I had to remove the http stuff.

PixelPusher

When trying to install this in SMF 2.0.4, I am getting a test failure at step 6, modifying ./Sources/Display.php.

It is looking for a line that says "k.message AS is_repped", but it is not found.

Any ideas?

-Thom

SD-X

Quote from: PixelPusher on March 13, 2013, 08:42:21 PM
When trying to install this in SMF 2.0.4, I am getting a test failure at step 6, modifying ./Sources/Display.php.

It is looking for a line that says "k.message AS is_repped", but it is not found.

Any ideas?

-Thom
I've never seen anything like that before, but as before with the other topic, this mod is completely compatible, so you have a conflicting mod or corrupt file issue. :(

PixelPusher

Do you know what line number that change is targeting? I could look for it that way, but I searched Display.php for k.message and did not find it anywhere.

-Thom

SD-X

Quote from: PixelPusher on March 14, 2013, 08:06:54 PM
Do you know what line number that change is targeting? I could look for it that way, but I searched Display.php for k.message and did not find it anywhere.

-Thom
I actually have no clue, in all honesty. I'm sorry man.

Arantor

k.message isn't a standard thing in SMF anywhere as far as I remember.

lukaszuk1995

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

Advertisement: