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

Hj Ahmad Rasyid Hj Ismail

Quote from: smithtr on September 23, 2010, 12:18:42 AM
I have successfully! I have work my mod is very work successfully I have solve mark!
cheer
successfully work mod
Nice to hear that you are finally managing things and successfully doing them all by yourself. Congratulations smithtr!

coldy316

still need an answer from my topic, can someone please explain what could be the problem

Quote

Maybe i'm having the problem or the mod is having a problem.

I'm running windows 7 the mod detects that fine but not the browser. its reading the browser
as windows ie 7 when its not ie 7. matter of fact i'm using IE8 how can i fix this slight problem

I'm running smf 2.rc3 forum software with default curve

Would you believe it that i live in gods country
Australia

Cal O'Shaw

Hello,

I've run into a problem trying to upgrade my SMF 1.1.11 forum from v1.4 to 1.5.  It looks like some other MOD altered code so that install fails.  Don't know which MOD did it (wish some sort of comments or tracking were added to the php files), but as an example, here is the first string that install tries to match in Display.php:
                m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead

Note the "m." at the start.

Anyway, I was wondering, as a visual compare of the 1.4 and 1.5 PARSE appear identical, can I just extract the os_browser_detection.php file and all the png files and just copy them into the proper places? (a stripped down install package to do that would be wonderful but this is probably a one-off situation and I already appreciate you putting in the time on this MOD, which has been really handy)

Grazie,

Cal

Loginsvarios

Greetings.
I installed this fantastic mod (I love that it shows my dear Linux Mandriva 2010.1 OS) and it works right.

But when a enter as a Global Moderator (permission OFF in Membergroups) I can see my OS and the Admin OS.

Any tip?

snoopy_virtual

If any of you is using (as I do) the icons ahrasis re-sized here,  you may have notice that in the new 1.5 version X3mE is not using them, and you may have noticed also that there are now 3 more icons, because  the mod now recognizes more OS & Browsers.

Just in case you want to continue using the icons ahrasis re-sized instead of the mod original ones, you are missing the 3 new ones, so I have just re-size the 3 new icons in the file attached.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Sea Mac

I Love this MOD! Thank You very Much!

But I used to use a Custom Who.template.php MOD that did a great job of sorting each page into Users/Guests/Spiders categories.   http://www.simplemachines.org/community/index.php?topic=19243.0

Long unsupported, it basically worked fine on everything in the 1.1.x branch.  Is there any way I can merge the functionality of this MOD with that old Template?


Cal O'Shaw

Hello,

Still wondering if I can just replace the icons and engine php file as some other MOD altered the code and prevents uninstalling 1.4 and installing 1.5.  Can anyone confirm the code that modifies SMF php files did NOT change going from 1.4 to 1.5 for 1.1.x sites?

Just saw the version I have is identifying some XP users as Vista and IE9 as IE7.  I really would like to record this info accurately.

Running SMF 1.1.11.

Grazie,

Cal

snoopy_virtual

Quote from: Sea Mac on October 11, 2010, 09:37:05 PM
I Love this MOD! Thank You very Much!

But I used to use a Custom Who.template.php MOD that did a great job of sorting each page into Users/Guests/Spiders categories.   http://www.simplemachines.org/community/index.php?topic=19243.0

Long unsupported, it basically worked fine on everything in the 1.1.x branch.  Is there any way I can merge the functionality of this MOD with that old Template?



This mod doesn't change anything inside Who.template.php

The only version that has anything to do with Who.template.php is a small modification I did some time ago, but X3mE (the mod owner) said he was not going to put it inside his mod, so I have added it instead to my mod httpBL.

I have answered you inside my mod support thread.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

snoopy_virtual

Quote from: Cal O'Shaw on October 12, 2010, 01:58:51 AM
Can anyone confirm the code that modifies SMF php files did NOT change going from 1.4 to 1.5 for 1.1.x sites?

There are a lot of changes from version 1.4 to version 1.5 and yes the code that modifies SMF php files did change a lot.

Quote from: Cal O'Shaw on October 12, 2010, 01:58:51 AM
Just saw the version I have is identifying some XP users as Vista and IE9 as IE7.  I really would like to record this info accurately.

In my forums I see it identify everything correctly. I don't understand why it's not doing it in your forum.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Cal O'Shaw

My problem is, as noted in Reply 282 above, some other MOD altered code that prevents uninstalling.  And you said MOD code has changed.

Question: Are the edits to .\Sources\Display.php and .\Sources\ManagePermissions.php changed from 1.4 to 1.5?  If not, then I should be able to uninstall 1.4, ignoring the warnings about the 2 files.  Then install 1.5, still ignoring the warnings for those 2 files.

And it turns out my user admitted he was running Vista.  But the IE9 Beta is showing as IE7, which I am looking forward to fixing with 1.5.

Cal

snoopy_virtual

Quote from: snoopy_virtual on October 12, 2010, 01:53:15 PM
Quote from: Cal O'Shaw on October 12, 2010, 01:58:51 AM
Can anyone confirm the code that modifies SMF php files did NOT change going from 1.4 to 1.5 for 1.1.x sites?

There are a lot of changes from version 1.4 to version 1.5 and yes the code that modifies SMF php files did change a lot.

I am very sorry Cal, I made a mistake. I was comparing the wrong files.

Instead of comparing the files from the 1.4 version with the files of the original 1.5 version from X3mE, I was comparing them with the files of the version 1.5 I have actually installed in my forum and of course there are a lot of differences because I always change a lot of things in all the mods I install. I almost never install the mods the way they come, but always change them to suit my needs.

Of course I always keep a copy of the original files for future references, but this time I made a mistake and I was looking at the wrong files. I was trying to do too many things at the same time and when I compared the files and saw there was a lot of changes I didn't double check to be sure, so I didn't realize I wasn't looking at the proper files I should.

Today, when I read you were asking for the particular differences in the files Display.php and ManagePermissions.php I went to check that and found out the mistake I did yesterday.

OK, I have double checked again (looking at the proper files) and I have seen there aren't any important changes in SMF 1.1.11 between versions 1.4 and 1.5. All the big changes have been only for SMF 2.0

For SMF 1.1.11 there has been only one change really: The mod now look for the icons inside the default Theme folder instead of inside the folder of the particular Theme you are using, so the people who install the mod now (like a new mod) don't need to copy the icons from one folder to the other.

But if you have already the icons copied from the default Theme to your Theme, you can forget about this change and just continue using version 1.4

So the only thing you really need is to download the file OS_Browser_Detection_v1.5_SMF_1.x_SMF_2.x.zip, unzip it and extract from it the file os_browser_detection.php

That's the file that do the actual checking looking for the OS & Browser. Upload this file to the Sources folder in your forum overwriting the file you already should have there.

There are also 3 new icons in version 1.5 you need to add to the folder where you have the old ones inside your Theme images folder:


  • icon_mandriva.png
  • icon_pclinuxos.png
  • icon_syllable.png

If you are using the icons ahrasis did on reply #232 you can download these 3 new icons from my reply #284
If you are using the original icons from X3mE just find them in the package 1.5

==================================

With just these 2 things you will have your mod working almost like everybody else.

As I said the only difference you will have is your mod will look for the icons inside the images folder of the particular Theme you are using instead of the default Theme (like it's doing for the rest of the people). It's not a very important difference really, but if you want to change that also (to have the mod as everybody) just read my reply #258 and follow the instructions to edit your file Display.template.php

If you are going to edit it, look first inside the folder of the Theme you are using (to see if there is a file Display.template.php there) and if it's there modify it. If it's not there, look inside the default Theme and edit the file Display.template.php in that folder.

Remember also (if you make this change) the mod will look for the icons inside the default Theme folder, so you will need to copy the 3 new icons there.

Quote from: snoopy_virtual on October 12, 2010, 01:53:15 PM
Quote from: Cal O'Shaw on October 12, 2010, 01:58:51 AM
Just saw the version I have is identifying some XP users as Vista and IE9 as IE7.  I really would like to record this info accurately.

In my forums I see it identify everything correctly. I don't understand why it's not doing it in your forum.

As I have already realized I have made a mistake when I was answering you yesterday, I have double checked also this point today. Yesterday I was answering you too quickly and didn't really thought too much about it.

Well, now I'm not really so sure about it.

I am sure about the OS. I can see a lot of examples in my forum of people using Windows XP, Vista and 7 and all of them are detected properly.

But not so sure really about the browser.

I thought I had seen somebody using IE9 but when I have double checked today, looking one by one carefully to all the entries there in no one IE9 there. A lot of IE7 and IE8, but no IE9 at all. So maybe you are right there and the mod is detecting it wrong.

Can you do the changes I told you above and ask your friend (the one who uses IE9) to write something in your forum so you can check if it's detecting it properly now or not?

The problem is I cannot check it myself because I don't have IE9 installed in any of my computers, but if there is a problem with that I will like to confirm it to sort it.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Saxtus

Can you add Pale Moon browser? (palemoon.org)

USER-AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.11) Gecko/20101023 BTRS35926 Firefox/3.6.11 (Palemoon/3.6.11)

Masterd

Croatian utf-8 translation:

$txt['OS_Browser_Compatible'] = 'Kompaktibilan';
$txt['OS_Browser_OS'] = 'OS';
$txt['OS_Browser_Unknown'] = 'Nepoznat';
$txt['OS_Browser_Browser'] = 'Preglednik';
$txt['permissiongroup_simple_view_os_browser'] = 'Vidjeti detektirani OS & Preglednik u postu ';
$txt['permissionname_view_os_browser'] = 'Vidjeti detektirani OS & Preglednik u postu';
$txt['permissionhelp_view_os_browser'] = 'Ako je omogućeno, član će vidjeti detektirani OS i Preglednik za svaki post, ako su detektirani';

coldy316

#293
Quote from: coldy316 on September 23, 2010, 09:55:52 PM
still need an answer from my topic, can someone please explain what could be the problem

Quote

Maybe i'm having the problem or the mod is having a problem.

I'm running windows 7 the mod detects that fine but not the browser. its reading the browser
as windows ie 7 when its not ie 7. matter of fact i'm using IE8 how can i fix this slight problem

I'm running smf 2.rc3 forum software with default curve


considering no one has replied to this or suggested any help towards me i guess i have to bump this up again

I know everyone has problems and i understand that. I really thought it would go in order wise for help..
   I'm really just asking for a simple modification on this, i'm sure its just something small to adjust.

majority of the other information doesnt relate to my problem
Would you believe it that i live in gods country
Australia

snoopy_virtual

Quote from: coldy316 on November 05, 2010, 09:44:07 PM
I'm running windows 7 the mod detects that fine but not the browser. its reading the browser
as windows ie 7 when its not ie 7. matter of fact i'm using IE8 how can i fix this slight problem

   I'm really just asking for a simple modification on this, i'm sure its just something small to adjust.

Well, I don't think it's a simple modification, as nobody else has this problem. Assuming of course you have already updated your mod to the latest version.

To fix this I will need to see the inside of your forum to check what's wrong.

Can you contact me through Skype?

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

GazOutEast

Is there any prediction about when it will be released for SMF 2.0 RC4?
I have 20:20 vision - I can see anything bigger than 20" x 20"

snoopy_virtual

I have just installed it in a 2.0 RC4 forum and didn't see any errors at all.

Have you seen any?

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

#Pascal

Quote from: GazOutEast on November 22, 2010, 12:55:03 PM
Is there any prediction about when it will be released for SMF 2.0 RC4?
It works under RC4 without any problem (use version emulation in order to install it in admin CP)

SD-X

Having a little bit of an issue with the Users Online listing. It's displaying the OS and Browser twice for each user, even spiders, rather than once each. Any ideas on this? Using SMF2 RC4.

DSK-Googler

i hv installed this mod....
installation successful .. but i cant find where to enable this mod...
im using silent wave theme /smf2.0RC4
Be my friend on facebook 


   
http://facebook.com/profile.php?id=100001290082093

Advertisement: