Mobile Content Switch


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 Apple iPad, iPhone, iPod Touch, and many other mobile devices, or not. Great to render a quicktime embed for iPads, and a Flash embed code for non iPad devices, or similar uses.

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, 2010: Added support for Android, Palm, Blackbery, Symbian, Palm, and Sony Ericsson


Version 1.6 now, resolving an iPhone compatibility issue.

========================


Usage:

Version 2.1 only
* {mobile}Display content to visitors on one of the mobile devices below.{/mobile}
* {momobile}Display content to visitors NOT on amy of the mobile devices below.{/nomobile}
:::::::::::::::::::::::::::::::::

* {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{/applemobile}
* {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}


Important Notes: (updated June 6, 2010)

* Set 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)

No comments:

Post a Comment