Thursday, 18 September 2008 17:42
Have you heard about the mobile web, or are you looking to build a mobile-optimized version of your website? Why would you want to do this in the first place? Well, there's a couple of reasons:
1. Millions of people are now surfing the web on their cell phones. However, screens on phones are not well optimized for regular websites. Even on the iPhone, which has the "real" internet, it can be a pain to constantly zoom in and out and scroll around.
2. Speed. Most cell phones don't have a lot of bandwidth, so if you can strip out as much of your site as possible, such as the excess javascript, css, and large images, you'll be delivering a your content more quickly to your users.
I'll be discussing two extensions that can help give you a mobile site with Joomla 1.5:
The more fully featured plugin for mobile websites, PDA Plugin works quite well. It comes with two files, a template and a plugin. Install both and then visit Plugin Manager and click on PDA Plugin to set some options:

The settings above are the settings that I am currently using. First thing you'll notice is that this plugin was sort of rushed for Joomla 1.5 as it's still called "Mambot" rather than the preferred "Plugin."
The first two options are very important. You'll have to decide whether you want to give the choice for mobile users to visit your regular site and your optimized site, or if mobile users will always see the mobilized version. I prefer to give my readers the choice, so I've set it up that way, as it shows in the graphic above. To have two versions, you need to do some additional work: Create a CNAME in your web hosting control panels that maps m.yourdomain.com to yourdomain.com. I chose to use "m" as it's become pretty common on a lot of sites and it's shorter than the default of "pda." Remember that typing on a mobile can be a pain, so the shorter the better!
If you'd like to offer your mobile visitors the mobile site all the time, you won't have to change any of the settings. Just publish the plugin and you're done.
Next, visit the Template Manager and click on pda. From here you can customize how your template will appear to mobile users. You can specify which modules should show up (up to 5), so make sure to include one of your menus at least!

All together, this is a very nice solution to creating a mobile version of your website. Issues I can see in the future:
I believe the name of this extension had iPhone added on just to make it seems more useful for iPhone users, because it isn't specifically made for the iPhone. What it does do, is allow you to serve up to 3 different templates to users based on the browser they use. By default it allows you to target iPhone, Internet Explorer, and Mozilla users, but you could use this for users of other browsers as well.
Installation is sorta straightforward--installs as a module. Set it to a postion, set it to not show the title, and publish it. Oh wait, what's this? You also have to make a Joomla core file modification.

Note that this extension does not come with any templates, so you'll need to find one and install it separately.
Issues:
There aren't that many native Joomla 1.5 Templates. If you know of any, let me know if the comments. Here's what I've found:
Don't have a mobile device but want to see if the plugin is working? You can see if the mobile detection is working by using these tools:
1000 mobile phones picture from Gaetan Lee.
Really it wasn't working when i clicked on it i promise
© (c) 2009 - 2010 Joomla Podcast