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

ysNoi

@ bro X3mE, are the following errors related to your mod?

--> 8: Undefined index: ua_browser_icon
      File: /home/vol1/php0h.com/p0_2837090/htdocs/Sources/Subs-Post.php
      Line: 1535
 
--> 8: Undefined index: ua_os_icon
      File: /home/vol1/php0h.com/p0_2837090/htdocs/Sources/Subs-Post.php
      Line: 1535

--> 8: Undefined index: ua_browser
      File: /home/vol1/php0h.com/p0_2837090/htdocs/Sources/Subs-Post.php
      Line: 1535

--> 8: Undefined index: ua_os
      File: /home/vol1/php0h.com/p0_2837090/htdocs/Sources/Subs-Post.php
      Line: 1535

If so, how do I fixed these errors?

Thank you so much...!

"Don't fix it if it ain't broken, don't break it if you can't fix it."

riker

Quote from: X3mE on February 20, 2009, 07:31:19 AM
Quote from: riker on February 16, 2009, 06:42:47 AM
It's showing now, is this information stored remotely then ?

EDIT: There now showing as IE7 again!,  How can some of my posts show as IE8 and then others IE7 again?

The script detects "MSIE" in the user agent and shows the number which follows it as the version number. The versions aren't hardcoded. I think the problem is in the IE itself, there's not much I can do if the wrong user agent is being sent... Maybe some addon, toolbar or something is causing the problem?

Well on IE8 final now and this is still picking it up as IE7

ysNoi

"Don't fix it if it ain't broken, don't break it if you can't fix it."

X3mE

Quote from: riker on March 20, 2009, 06:54:16 PM
Well on IE8 final now and this is still picking it up as IE7

Could you please check and post your user agent from IE8?

Quote from: ysNoi on March 25, 2009, 01:15:58 PM
Any updates on my queries above?

Sorry, I've been absent for some time, I'm aware of it and will do a fix asap.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



ysNoi

Quote from: X3mE on April 03, 2009, 07:21:22 PM
Sorry, I've been absent for some time, I'm aware of it and will do a fix asap.

Thanks bro...! I'll be waiting for the updates...! Thanks again...!
"Don't fix it if it ain't broken, don't break it if you can't fix it."

riker

Quote from: X3mE on April 03, 2009, 07:21:22 PM
Could you please check and post your user agent from IE8?

I thought I did a page back.  Is this what you mean

QuoteYour browser user agent ID: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0

PS don't know why it's saying NT 6 (vista) is NT 5.1 (XP)

Aleksi "Lex" Kilpinen

Code (Modifications.finnish.php) Select

$txt['OS_Browser_Compatible'] = 'yhteensopiva';
$txt['OS_Browser_OS'] = 'Käyttöjärjestelmä';
$txt['OS_Browser_Unknown'] = 'Tuntematon';
$txt['OS_Browser_Browser'] = 'Selain';
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

X3mE

Ok, version 1.3 is out, check the first page for the link to the mod site in order to download it. Nothing major changed, just fixed the undefided errors (affects SMF 1.1.x only) and added finnish language.

Could you check and see if the errors are still there?

LexArma, thanks ;)

riker, I really don't know... It is supposed to read the version number which follows the MSIE string, and this is working for all previous versions of IE (and should be working for all future versions, unless MS changes something). I see that it is showing 8.0, but I don't have a clue why it is being read as IE 7... I haven't tried it on IE 8 yet, but like I said, the detection code is the same for all previous versions, it's working, and nothing has changed in the user agent IE sends as far as I could see...
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



ysNoi

Thanks bro X3mE for the updates..! Uninstalling of previous version on my SMF is on-going, I'll update you later...!
"Don't fix it if it ain't broken, don't break it if you can't fix it."

ysNoi

Just updated to Version 1.3...! Thanks a lot bro X3mE....!

Quote from: X3mE on April 09, 2009, 09:36:09 PM
Could you check and see if the errors are still there?

I'll update you soon if there are still errors..!

Edit : Bro, I have two times display...! Two OSes and two browsers... How do I fixed it...?

Thanks in a million...
"Don't fix it if it ain't broken, don't break it if you can't fix it."

X3mE

Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



ysNoi

Quote from: X3mE on April 09, 2009, 11:13:42 PM
Post your Display.template.php and I'll fix it :)

File attached bro X3mE...! Thank you so much....  :)
"Don't fix it if it ain't broken, don't break it if you can't fix it."

X3mE

Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



ysNoi

"Don't fix it if it ain't broken, don't break it if you can't fix it."

X3mE

No problem :)

Btw, I've just tested with IE8, works fine:

Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



ysNoi

Bro X3mE, good day...

I have one more question...I tested another browser but the same OS, it seems the OS also changed...





I used Ubuntu on my two posts....

"Don't fix it if it ain't broken, don't break it if you can't fix it."

X3mE

Well, it only shows the information the browser is giving it, and I suppose the browser is doing it wrong :)

Post your user agents from both of your browsers and I'll have a look.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



riker

Quote from: X3mE on April 10, 2009, 09:35:52 AM
No problem :)

Btw, I've just tested with IE8, works fine:


Mines now showing as IE8 again,  this mod seems to have an mind of it's own

X3mE

I really don't have a clue why :/
There is no number 7 nowhere in the useragent string, so I don't know how could it show it...

If it gets detected sometimes as IE8 and sometimes as IE7, I think it's a bug in IE8.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Advertisement: