EE 1
EE 2
MX Mobile Device Detect

Developer

Max Lazar

3rd Party (Free)

Creative Commons Attribution Non-Commercial Share Alike

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

MX Mobile Detect is a small plugin that detects if a template was requested by a Mobile Device. You also can detect Screen Resolution!

{exp:mobile_detect:device}


{if "{exp:mobile_detect:device}" == "mobile"}
Greetings mobile visitor!
{/if}
{if "{exp:mobile_detect:device}" == "not_mobile"}
Greetings desktop/laptop visitor!
{/if} 

{exp:mobile_detect:redirect}

{exp:mobile_detect:redirect location="http://m.site.com/"} 
{exp:mobile_detect:redirect location="http://site.com/" redirect="not_mobile"} 
{exp:mobile_detect:redirect ipad="http://ipad.site.com/" kindlefire="amazon.com"} 

{exp:mobile_detect:pair}

{exp:mobile_detect}
    {if device == "ipad"}
        Hello Steve
    {/if}
    {if device == "android" }
        Hello Bender
    {/if}
    {if not_mobile}
        Hello ... Bill ???
    {/if}
{/exp:mobile_detect} 

{exp:mobile_detect:screen_detect }

{exp:mobile_detect:screen_detect } 
{if {screen_width} > 1024}You have desktop{/if} 
{news_image}<img scr="/image/{screen_size}/{file_name}">{/news_image}

MX Mobile Device Detect Links

This entry was created November 19, 2009, 3:43 pm.
This entry was last updated July 19, 2012, 11:07 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

5 Reviews:

Geoff Towle 03.27.12

Rating - {addon_rating_average}

Thanks for this excellent plugin - extremely helpful!

Zac Gordon 02.19.12

Rating - {addon_rating_average}

Plugin works great and does just what it says.  Love it’s flexibility to say ipad=“no” to not redirect for iPads.

If you want to turn off mobile redirect it let’s you do that as well. 

Great job Max!

JCDerrick 07.09.11

JCDerrick
Rating - {addon_rating_average}

This is an awesome add-on and Max has done a great job with it. I still am having trouble getting it to recognize my iPad 1, but other than that this is a great plugin for recognizing mobile devices. The latest version with device recognition takes it to a whole new level!

Narration 04.15.11

Rating - {addon_rating_average}

Max,  you’ve done it again, made something very useful.

I’m also intrigued about the side-usage of handling ie6.

Thank you.

manimac79 12.28.10

Rating - {addon_rating_average}

easy and useful plugin! thanks Max :)