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

Sabre™

There is no activation option, apart from the member permission allowance.
The mod will start displaying for new posts, not for your old posts in your board.
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)



Gladman

X3mE, thanks for mod  ;)

translation into Russian:

// OS & Browser Detection mod
$txt['OS_Browser_Compatible'] = 'совместимость';
$txt['OS_Browser_OS'] = 'ОС';
$txt['OS_Browser_Unknown'] = 'Неизвестно';
$txt['OS_Browser_Browser'] = 'Браузер';
$txt['permissiongroup_simple_view_os_browser'] = 'Отображать данные об ОС и браузере в постах';
$txt['permissionname_view_os_browser'] = 'Отображать данные об ОС и браузере в постах';
$txt['permissionhelp_view_os_browser'] = 'Если включено, пользователь увидит инфу об ОС и браузере в постах.';

Pinball Nation


Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


c23_Mike

Hi there !

Is there already a port to RC2 in work? Can we know which timeframe it is planned to release? Since it will not install on RC2 ...
So long, Mike

http://www.c23.at
c23 - DER Computer Club
~ never play alone ~

vsebir


c23_Mike

So long, Mike

http://www.c23.at
c23 - DER Computer Club
~ never play alone ~

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

AliG

Hi,
I am not sure if someone already mentioned ... but there is a bug in "install.php"

you should use
$smcFunc['db_add_column']("{db_prefix}messages",
not
$smcFunc['db_add_column']("messages",

the "{db_prefix}" is essencial ;)

Milossh

I mentioned, but didn't know how to fix it... Anyway, I have changed it following your suggestion, and now it's all working :) Thanks to both you and mod author :)

PS. I have attached changed file, if you want to use it.

WilK

Quote from: ws4570 on September 08, 2009, 08:11:59 PM
Not see 10 opera.

In os_browser.detection_php

Find
// 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] : "") . ")";
        }
    }


Replace with
// 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];
        }
    }
Per aspera ad astra

Arantor

Quote from: AliG on November 18, 2009, 05:37:47 AM
Hi,
I am not sure if someone already mentioned ... but there is a bug in "install.php"

you should use
$smcFunc['db_add_column']("{db_prefix}messages",
not
$smcFunc['db_add_column']("messages",

the "{db_prefix}" is essencial ;)

It wasn't essential prior to RC2.


I wonder why this mod goes to all this trouble when SMF does some of the detection itself, and need only do further detection in specific cases.

Kreator

has anybody got this mod working on RC2?

I keep stumbling on it, most of the dbase inserts do not work

cieplutki





.

coldy316

I am using windows 7 and ie 8 with smf version 2.0RC2 and the mod detects windows 7 but not
the internet explorer 8. It shows up as IE6 what could be causing this problem..

Would you believe it that i live in gods country
Australia

~DS~

#196
it's showing duplicates.

EDIT: Never mind since I need to upload the images for it to work. It here a way to detect mobile phone?

While posting from my iPhone instead it detected it as Mac and Safari.  :o
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Arantor

Quote from: coldy316 on January 17, 2010, 05:54:36 AM
I am using windows 7 and ie 8 with smf version 2.0RC2 and the mod detects windows 7 but not
the internet explorer 8. It shows up as IE6 what could be causing this problem..

Because plenty of versions of IE8 identify themselves as IE6 as well as IE8.

Dzonny

Hello there.
Is there a code, update or smth, that will make this mod show win 7, and newer browsers as opera 10?

cieplutki

#199
Working on smf 2 rc 2 repack by me
support windows 7 with transparet icon //edit look at attachment black background
recognize opera 10

all on attachments





.

Advertisement: