Advertisement:

Author Topic: Mobile Device Detect  (Read 64171 times)

Offline samurai-lupin

  • Full Member
  • ***
  • Posts: 522
Re: Mobile Device Detect
« Reply #20 on: April 02, 2012, 11:09:38 AM »
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...

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

Offline cobland

  • Newbie
  • *
  • Posts: 4
Re: Mobile Device Detect
« Reply #21 on: April 02, 2012, 12:37:50 PM »
Hello cobland,
Yes, uninstall previous versions is better.
Thanks Emanuele!

PS: are you italian?

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Mobile Device Detect
« Reply #22 on: April 03, 2012, 06:11:27 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. ;)

Thanks Emanuele!
You are welcome! ;)

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.

Offline feline

  • SMF Hero
  • ******
  • Posts: 1,638
  • Gender: Female
Re: Mobile Device Detect
« Reply #23 on: April 05, 2012, 10:02:11 AM »
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):
Code: [Select]
if(preg_match_all('~'. implode('\b|', $mobileStrings) .'\b~i', $useragent, $device))

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Mobile Device Detect
« Reply #24 on: April 07, 2012, 07:43:48 AM »
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.

Offline feline

  • SMF Hero
  • ******
  • Posts: 1,638
  • Gender: Female
Re: Mobile Device Detect
« Reply #25 on: April 08, 2012, 02:30:08 PM »
Many smart phones with Windows Mobile use that  ;)

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: Mobile Device Detect
« Reply #26 on: April 08, 2012, 05:24:14 PM »
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.

Offline GreenMotion

  • Semi-Newbie
  • *
  • Posts: 22
Re: Mobile Device Detect
« Reply #27 on: April 10, 2012, 05:58:52 PM »
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

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Mobile Device Detect
« Reply #28 on: April 11, 2012, 05:53:14 AM »
Try the new one.


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.

Offline feline

  • SMF Hero
  • ******
  • Posts: 1,638
  • Gender: Female
Re: Mobile Device Detect
« Reply #29 on: April 11, 2012, 12:27:33 PM »
seems like it's better to remove 'tablet' from the list  ;)

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Mobile Device Detect
« Reply #30 on: April 11, 2012, 12:28:40 PM »
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.

Offline feline

  • SMF Hero
  • ******
  • Posts: 1,638
  • Gender: Female
Re: Mobile Device Detect
« Reply #31 on: April 11, 2012, 12:38:01 PM »
As usual it's MS's fault! :P
Never use a tablet with windows  :laugh:

Offline rbeuker

  • Semi-Newbie
  • *
  • Posts: 90
  • Gender: Male
    • NL Computer Forum
Re: Mobile Device Detect
« Reply #32 on: April 14, 2012, 09:52:33 AM »
Great work, emanuele! Works molto bene :)

Take care,

Ronald

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Mobile Device Detect
« Reply #33 on: April 14, 2012, 10:12:06 AM »
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.

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: Mobile Device Detect
« Reply #34 on: April 18, 2012, 08:36:46 AM »
not working on my android 2.3, with google chrome

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Mobile Device Detect
« Reply #35 on: April 18, 2012, 08:48:39 AM »
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.

Offline feline

  • SMF Hero
  • ******
  • Posts: 1,638
  • Gender: Female
Re: Mobile Device Detect
« Reply #36 on: April 18, 2012, 04:04:48 PM »
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  ;)

Offline Shawn Sorrell

  • Semi-Newbie
  • *
  • Posts: 21
  • Gender: Male
Re: Mobile Device Detect
« Reply #37 on: April 18, 2012, 04:07:57 PM »
Perhaps they are talking about this. http://www.google.com/intl/en/chrome/android/ [nofollow]
Shawn

Offline feline

  • SMF Hero
  • ******
  • Posts: 1,638
  • Gender: Female
Re: Mobile Device Detect
« Reply #38 on: April 18, 2012, 04:45:57 PM »
Well .. he say Android 2.3, but this need 4.0 ...
Quote
Chrome for Android is available, initially in Beta, on Android 4.0, Ice Cream Sandwich.

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: Mobile Device Detect
« Reply #39 on: April 19, 2012, 12:42:48 AM »
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.