News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

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

AlenNS


X3mE

Version 1.1 is out! :)

I've managed to fix the undefined index error. Please update to the latest version.

Changelog:

* Version 1.1 (18. 01. 2009.)
- Fixed Unefined index error in Subs-Post.php (SMF 2.x)
- Windows 7 support included
- Swedish translation added (thanks to P_cool)
- Portugeese translation added (thanks to joomlamz)
- Polish translation added (thanks to saneone)
- Spanish translation added (thanks to M-DVD)


Please report if you find any further errors.
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



X3mE

Here is the Display.template.php for you to insert. Sorry it took this long. Btw, your Display.php is ok.

Quote from: mitz on December 30, 2008, 08:23:17 PM
Hi guys I have read all these posts and tried some but it does not work for mine .. I have version 1.1.5 and I am using the babylon theme. Can someone give me a clue as to what to edit to get this mod going..

I have installed the mod with no problems...but will not show up
BK-SMF Sub-Board 1.5   
OS & Browser Detection 1.0
Anti-Spam Verification Questions 1.02
YouTube BBCode 2.4

I have attached my display.php and my display.template.php

Also do i have to put the images into a certain folder?

Any help would be greatly appreciated!!!! :)
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



X3mE

HowTo: Switch from K-Detection to OS & Browser Detection
(SMF 1.1.x)

If you already have K-Detection and wish to switch to OS & Browser Detection, here's how to do it and keep existing K-Detection Data into OS & Browser Detection.

This is not recommended if you haven't manipulated your database directly (through phpMyAdmin for example) before, as you will be doing it now.

1. Backup your database.

2. It's best to put your forum in maintenance mode for a while, this only takes a minute, but the forum will be unusable (you cannot view any topic) until you complete the procedure.

3. Do not uninstall K-Detection yet! Uninstalling will erase data from the database, we want to ensure we will be using it first.

4. Open up the database in phpMyAdmin (or whatever other way you use) and go to the SQL query window.

5. Perform the following query:

ALTER TABLE smf_messages CHANGE k_os ua_os TINYTEXT NOT NULL ,
CHANGE k_br ua_browser TINYTEXT NOT NULL ,
CHANGE k_os_ico ua_os_icon TINYTEXT NOT NULL ,
CHANGE k_br_ico ua_browser_icon TINYTEXT NOT NULL;


Note: If your table prefix is not smf_, be sure to replace it.

6. Now go to the admin panel and uninstall K-Detection.

7. Install OS & Browser Detection.

8. Done! Now restore the forum from maintenance mode, if you'd put it there.

This generally applies to 1.1.x, but could also be used in 2.x if your database still has K-Detection columns in the messages table, and you haven't installed OS & Browser Detection yet.

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



Cal O'Shaw

Hello,

Can this information be restricted to be viewed only by Admins or certain membergroups?

X3mE

Yes, but you'll have to do the edits yourself, as I don't believe this would be implemented any time soon. You just need to edit Display.template.php and add a membergroup check before the line:

//OS & Browser Detection
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



edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

KahneFan

Quote from: Cal O'Shaw on January 19, 2009, 02:29:49 AM
Hello,

Can this information be restricted to be viewed only by Admins or certain membergroups?

X3, I saw your answer, but wanted to ditto this request, as I don't think it's necessary for all users to see this info for all users.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

X3mE

Ok, I will implement a permission system for membergroups to view that information, but it'll have to wait for my exam term to end.

I also had in mind to enable users to hide their information to everyone (exept the admin) from their profile, regardless of permissions other membergroups have.
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



Cal O'Shaw

Sounds excellent!  Can you give us a rough idea when your exam term ends, so we don't bug you?

Grazie!

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



InjecteD

Hi, i have a problem, X3mE i can't see the Navegator / OS in my forum, i have Languaje Spanish & DilberMC Theme (1.1.7)..

If you can help me please my msn is: [email protected]


Thnx,
InjecteD.

X3mE

Post your Display.template.php here and I'll edit it to show them.
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



Peludo_08

detect windows seven?

screen of my forum..



he use windows seven (7)
Mi Foro: http://www.descargawarez.net
Mi Venganza: http://www.mivenganza.com
Mi Web de Videos: http://www.videosplay.net
Venta de Host: http://www.comprahost.net
Otro Foro: http://descargawarez.net
Descarga Premium de RS, MU y mas por 1 sms diario http://www.descargapremium.com

X3mE

Download version 1.1 from the mod site, it's implemented 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



villasg

Ι unistall the old .
Install the new .
All ok
With a little problem
In my forum need manually tranfer the files in  the folder  {os_browser_detection}

Thanks

X3mE

A new version is out: 1.2!

* version 1.2 (05. 02. 2009.)
- Updated to work with SMF 2.0 RC1 (Removed compatibility with 2.0 Beta 4)
- Fixed a layout issue in SMF 1.1.x
- SMF 1 & 2 installs in same package, AUMR version no longer needed

Other that that, all remained the same, for now.

Since I completely reorganized the packages, I removed all the old ones from the mod site to avoid confusion. Now there are two variations only.

This means you can't install it in 2.0 Beta 4 anymore. If someone needs it for 2.0 B4, PM me.
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



sley

Hi!

I would like to add the Linux Mint OS in the Browser list.

How can I do that?
Could somebody help me?


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



Advertisement: