Mobile Device Detect

Started by emanuele, March 07, 2012, 02:29:20 PM

Previous topic - Next topic

samurai-lupin

Quote from: emanuele on April 02, 2012, 05:12:14 AM
Quote from: samurai-lupin on April 01, 2012, 08:14:43 PM
Hello, this sounds like a fantastic mod! Could you please do a SMF 1.1 version of it? Thank you!
Hello samurai-lupin,
it shouldn't be too difficult, but it's a while I don't do anything for 1.1...

Quote from: cobland on April 02, 2012, 02:08:47 AM
may i unistall version 0.1.0 before install this?
Hello cobland,
Yes, uninstall previous versions is better.

Hello, it would be great if you could back-port it for SMF 1.1.

Like many others I run a highly customized SMF 1.1 site so I won't update to SMF 2.0

Still having this mod available would come in very handy for many of my visitors.

Regards and thanks

cobland

Quote from: emanuele on April 02, 2012, 05:12:14 AM
Hello cobland,
Yes, uninstall previous versions is better.
Thanks Emanuele!

PS: are you italian?

emanuele

Quote from: samurai-lupin on April 02, 2012, 11:09:38 AM
Hello, it would be great if you could back-port it for SMF 1.1.
Please note that the attachment is a beta and I did not test it in any way!
Please note also that you could have problems with the package, my SMF didn't like it and it was not able to recognize it as a valid package (decompression problem).

Let me know what doesn't work. ;)

Quote from: cobland on April 02, 2012, 12:37:50 PM
Thanks Emanuele!
You are welcome! ;)

Quote from: cobland on April 02, 2012, 12:37:50 PM
PS: are you italian?
Yep.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

feline

Emanuele ... I found a small bug on preg_mach_all(..)
if the useragent have a string 'mobil' this matches 'mobile' and 'mobi'  :o
To fix that use word boundary (\b):

if(preg_match_all('~'. implode('\b|', $mobileStrings) .'\b~i', $useragent, $device))

emanuele

Thanks feline for the report!
Will include it as soon as possible! ;)

Just out of curiosity what browser uses a user-agent string with "mobil" in it? (just plain curious! :))


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

feline

Many smart phones with Windows Mobile use that  ;)

shazoo!

Quote from: Kreator on March 08, 2012, 01:39:31 AM
will this have any advers effect if the tapatalk mod is installed ? just a thought
This mod shouldn't affect tapatalk at all, because in the instance of THIS mod, the user is browsing via the web.  Tapatalk only works via their app, so it should be fine.

GreenMotion

One of my users has reported her notebook is being detected as a mobile device. I think it is a Dell or HP notebook mini ... I have in inquiry in with her for her exact model to help me further troubleshoot.

Her User Agent is being reported as follows:

"Mozilla/4.0 (compatibl
e; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET
4.0C; .NET4.0E; Tablet PC 2.0)"

In the meantime, any idea on how I can exclude her theme from switching to the mobile theme all the time?

Thanks all!

  GM

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

feline

seems like it's better to remove 'tablet' from the list  ;)

emanuele

Yep, that's what I did...

As usual it's MS's fault! :P


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

feline


rbeuker

Great work, emanuele! Works molto bene :)

Take care,

Ronald

emanuele

Quote from: feline on April 11, 2012, 12:38:01 PM
Quote from: emanuele on April 11, 2012, 12:28:40 PM
As usual it's MS's fault! :P
Never use a tablet with windows  :laugh:
Never use windows! :P

@Ronald thanks!


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

diontoradan

not working on my android 2.3, with google chrome

emanuele

Could you please go to this web site: http://whatsmyuseragent.com/
and report what is the user agent of your browser? (with your mobile device of course. ;))


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

feline

Quote from: diontoradan on April 18, 2012, 08:36:46 AM
not working on my android 2.3, with google chrome
I'm not sure, but I'v never seen a google chrome for android and I can't find any on the Play Store  ;)

Shawn Sorrell

Shawn

feline

Well .. he say Android 2.3, but this need 4.0 ...
QuoteChrome for Android is available, initially in Beta, on Android 4.0, Ice Cream Sandwich.

diontoradan

Mozilla 5.0, linus U android 2.3.4 en LGP990 apple webkit 533.1, KHTML etc...

browser chrome for android. my website www.ravelex.net/forum, please check.

yes chrome for android is only for ICS, but i manage to install it through a custom rom.


Advertisement: