screen-shot-2010-04-08-at-70411-pm

The Mobile Content Switch Plugin is a free Joomla Plugin that will enable you to hide or show content depending if the user is visiting your site from an iPad, iPhone, iPod Touch, or not.

Great to display an embedded Flash video  for non-Apple mobile devices, and a QuickTime movie for Apple mobile devices, or other such uses.

(Thanks to Peter van Westen from www.nonumber.nl for the help with regex)

Usage:

  • {ipad}Display content to visitors ON an iPad.{/ipad}
  • {noipad}Display content to visitors NOT on an iPad{/noipad}
  • {iphone}Display content to visitors ON an iPhone or iPod touch.{/iphone}
  • {noiphone}Display content to visitors NOT on an iPhone or iPod touch.{/noiphone}
  • {applemobile}Display content to visitors in EITHER an iPad, an iPod, or an iPhone{/applemobile}
  • {noapplemobile}Display content to visitors in NEITHER an iPad, an iPod, or an iPhone{/noapplemobile}
  • {android}Display content to visitors on an Android device{/android}
  • {blackberry}Display content to visitors on an BlackBerry{/blackberry}
  • {palm}Display content to visitors on an PalmOS device{/palm}
  • {sonyericsson}Display content to visitors on an SonyEricsson (Nokia) device{/sonyericsson}
  • {symbian}Display content to visitors on an SymbianOS device{/symbian}

joomla_commpow_sm

Important Notes: (updated June 6, 2010)

  • Set in  Global Configuration > Systems > Cache = no for the plugin to work, otherwise what you will see is the cached version of the article, which may have been generated by a device other than the one you are viewing the article on.
  • If you have caching enabled, and your content is in a module, make sure to set the module not to be cached (advanced parameters > caching)
  • If you use the plugin  in a module, make sure that the module is capable of running plugins (such as mod_placehere)

Changelog

Version 2.1 – August 11, 2011

  • Support for Joomla 1.6 (Thanks to Louis Carlos)
  • Added {mobile}{/mobile} {nomobile}{/nomobile} parameters (Thanks to @Mano)

Version 1.7 – January 29, 2011

  • Added support for Android, Palm, Blackbery, Symbian, Palm, and Sony Ericsson

Version 1.6 – June 16, 2010

  • Resolved an issue with iPhone compatibility
  • To upgrade, unzip the plugin and copy the mobilecontentswitch.php and mobilecontentswitch.xml files to /plugins/content

Download the Mobile Content Switch Plugin for Joomla 1.5

Download the Mobile Content Switch Plugin for Joomla 1.6

Found the plugin useful?

All proceeds will be donated to Words of Peace Global