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

Aleksi "Lex" Kilpinen

Just a thought, but have you checked if the compatibility mode of IE8 has anything to do with it?
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

TBH, I haven't played much with IE8, cause I installed it at work just to test it with the script. But it is very possible that a compatibility mode could be the cause of the problem. Either way, there's nothing I can do if IE 8 doesn't show that it actually is IE 8 through the user agent.
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



Aleksi "Lex" Kilpinen

Quote from: X3mE on April 11, 2009, 08:37:33 AM
there's nothing I can do if IE 8 doesn't show that it actually is IE 8 through the user agent.
That's kind of my point, it might be that the compatibility mode hides the real version completely ;)
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

ysNoi

Quote from: X3mE on April 10, 2009, 11:12:22 PM
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.

What do you mean bro...!? I can't seem to get what you mean...!
"Don't fix it if it ain't broken, don't break it if you can't fix it."

X3mE

Check the user agent from both browsers (you can see the user agent the browser is sending to the server here: http://www.useragent.org/).

And post the results here :).
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

1. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6

2. Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) (Kubuntu)

3. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20080829 SeaMonkey/1.1.12 (Ubuntu-1.1.12+nobinonly-0ubuntu0.8.04.1)

I'm using Ubuntu 8.04....
"Don't fix it if it ain't broken, don't break it if you can't fix it."

X3mE

Quote from: ysNoi on April 11, 2009, 07:39:16 PM
2. Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) (Kubuntu)

Konqueror shows that it's running on Kubuntu, as you can 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

Quote from: X3mE on April 12, 2009, 07:45:33 AM
Quote from: ysNoi on April 11, 2009, 07:39:16 PM
2. Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) (Kubuntu)

Konqueror shows that it's running on Kubuntu, as you can see.

Yeah....! But I used Ubuntu 8.04 on it bro...!
"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

Not a big problem..!

ANyway, my errors before were solved...! Thanks for the updates X3mE...!
"Don't fix it if it ain't broken, don't break it if you can't fix it."

duder673

When I installed it didn't place the OS/Browsers on past posts.
And it looks like this:

I am assuming that it is in duplicate because it is a placeholder value for the images that aren't showing up.

Can anyone help?

X3mE

It doesn't show on "old" posts because SMF wasn't tracking that information prior to install of this mod.

And you're right, the images aren't showing up. Extract the package, you'll find a folder with the required images there. Copy that folder to the images folder of your theme.
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 11, 2009, 08:28:13 AM
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.

Yup it's now showing as IE7 again


Cal O'Shaw

Hello,

Would it possible for the next version to include the option to allow either just Admins or specific groups to see this information?  I would find it useful for troubleshooting, most of my users would find it a confusing bother.

Grazie,

Cal

X3mE

Hi,

It is planned, and will be implemented when I find some free time.
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



genusis

Hi umm when i install this mod and then try to post i get this error, anyway to fix it so that way i can use your mod.

when its installed it throws this error when trying to post
An Error Has Occurred!
The database value you're trying to insert does not exist: id_board

but when i uninstall it the post work fine, but i would really like to use this mod, any ideas on how to fix this?

I am using RC and have several mods installed.

Next Post Level
last login in post
Glossary
Custom Fields On Memberlist
New Login Field
Center User Info In Posts
clickableImagebbcode
Admin color in topic view
Posting_Announcement
AllCaps Notifier
Global Headers Footers
Notify Modification Last Post
Profil Moderator Managment
MessagePreviewOnHover
Zuper Admin RC1
RateThatTopic
SMF Articles
Global Topics
eNinja - Custom Pages
Affiliates
AjaxChat Integration
SMF Links
NoFollow BBCode
Alternativ Protocol Fix
SMF Staff Page
Topic Solved
Aeva ~ Auto-Embed Video & Audio
Box BBCode
Hack's Park Color Picker
jQLightbox
CheckBeforePosting
Wiki Links
Users Online Today
Share this topic - SMF Mod
More Spiders
Quick PM
Downloads System
Hide Post
New Style Message Icon
Best 3
PM to New Members
Pm Number in All Pages
Separate Sticky and Normal Topic
Page_Reload_Mod
Off-Topic_BBC_Tag
Heading to Category
MCLegendII RC1
Advance SEF Urls

any ideas please =[.
hello I am Genusis
this is my site
http://spirean.com

X3mE

Wow, that's a lot of mods... Some of them is definitely causing it. :)

Did it show any errors during install?
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



genusis

The only installation error i had was it could not add this

, ua_os, ua_browser, ua_os_icon, ua_browser_icon

But that can manually be added easily. Other than that i had this installed before and older version and i uninstalled it and deleted it and installed the newer one. i will go and look thought the code maybe there is a double code form the other installation i had on there. But that's is all i know.
hello I am Genusis
this is my site
http://spirean.com

X3mE

Ok, attach your Subs-Post.php and I'll have a look. I think the error comes from there.
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



genusis

its ok now i fixed it it was a doubling in the code, the old installation didn't uninstall it all because of a pos mod i added after it. But i got that fixed, And Please when making a mod instead of searching for a huge thing that can change like in display.php

Instead of using this

$messages_request = $smcFunc['db_query']('', ' SELECT id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body, smileys_enabled, poster_name, poster_email, approved, id_msg_modified < {int:new_from} AS is_read

use this

id_msg_modified < {int:new_from} AS is_read

Just stuff like that will make the mod even better, and uninstall more accurately like for example instead of searching for

$messages_request = $smcFunc['db_query']('', ' SELECT id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body, smileys_enabled, poster_name, poster_email, approved, id_msg_modified < {int:new_from} AS is_read

search for instead this and remove just this.

, ua_os, ua_browser, ua_os_icon, ua_browser_icon  Unless you have to search for something else like example

foreach ($temp as $row)
            $attachments[$row['id_msg']][] = $row;

you changed it to

foreach ($temp as $row)
            $attachments[$row['Blahh']][] = $row;
                               $Blahh[$row['id_msg']][] = $row;

then you would search the whole thing. Makes installing and uninstalling better.
hello I am Genusis
this is my site
http://spirean.com

Advertisement: