Mobile Content Switch


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)
It is working fine. You just have to remember to set the cache off and to empty it.
Jossi, the developper answers quickly and is very helpful.
Thanks
Maybe it would be nice if we could group several devices in one tag, like {noapplemobile,noandroid} for example.
Anyway, I highly recommend, if you're looking for a very simple way to display or not a piece of content depending on the device.
It ill be quite easy to add more devices. What other mobile devices you are interested in?




