ExpressionEngine addons Lab
FAQ

Features

MX Mobile Detect is a small and simple plugin to detect if the template was requested by Mobile Device or not...

The latest release of MX Mobile Device Detect for ExpressionEngine 2 is available here

Requirements

  • EE1 - PHP 4+, ExpressionEngine 1.6.5+
  • EE2 - PHP 5+, ExpressionEngine 2+

Installation

MX Mobile Device Detect contains a single plugin file. To install the new field type please follow the simple instructions below:
  • Download the MX Mobile Device Detect archive and extract the files.
  • EE1: Copy pi.mobile_detect.php to /system/plugins/
  • EE2: Copy pi.mobile_detect.php to /system/expressionengine/third_party/

Tags


{exp:mobile_detect location="http://m.site.com/"} 

{exp:mobile_detect location="http://site.com/" redirect="not_mobile"} 

{exp:mobile_detect}
	{if mobile}
	Is mobile device
	{/if}
	{if not_mobile}
	Is not mobile device
	{/if}
{/exp:mobile_detect} 

Parameters

  • location="http://m.site.com/"
  • redirect="not_mobile" default - mobile
    redirect not mobile devices

Conditional variables

  • {if mobile} ... {/if}
  • {if not_mobile} ... {/if}

Change Log

ExpressionEngine1

  • 0.3.0 - 05/20/2010:
    New tags & parameters
  • 0.0.2 - 09/04/2009:
    Initial release

MX Mobile Device Detect

Download MX Mobile Device Detect  0.3.0

Version: 0.3.0
Released: 05/20/2010

Thank Me By ‘Buying Me A Cup Of Coffee'

Like my add-ons?
Consider buying me coffee.

Like it? Tweet it!

Digg itAdd to Stumbleupon Share whith Facebook

http://eec.ms/sbkl

Follow me on twitter