Tom's blog en Persist your session across your desktop and mobile site <p>This is a small tip for devs who decide to use separate domains for the desktop site and for the mobile site, and who want users to easily switch between both sites without loosing the session.</p> <p>e.g.:</p> <ul> <li>Mobile site: <a href="http://m.drupal.org" title="http://m.drupal.org">http://m.drupal.org</a></li> <li>Desktop site: <a href="http://www.drupal.org" title="http://www.drupal.org">http://www.drupal.org</a></li> </ul> <p>The trick is to let Drupal set your cookie for the base domain: drupal.org...</p> <p>Doing this can simply done by changing the $cookie_domain variable in your settings.php file.</p> <p><a href="http://mobiledrupal.com/content/persist-your-session-accross-desktop-and-mobile-site" target="_blank">read more</a></p> drupal mobile Fri, 26 Nov 2010 16:37:03 +0000 Tom 97 at http://mobiledrupal.com Create your own device detection algorithm in Drupal using Wurfl and Mobile Tools <p>While going through the <a href="http://drupal.org/project/issues/mobile_tools">Mobile Tools issue queue</a> today, I noticed some questions on the device detection mechanism in <a href="http://www.drupal.org/project/mobile_tools">Mobile Tools</a> and how some desktop browsers are wrongly detected as mobile devices.</p> <p>To be honest I don't use the Mobile Tools built in device detection mechanism myself.... The simple reason is that Mobile Tools has a set of rules that try to discover the nature of the accessing device by looking at the user agent string. Have a quick look at the <b><a href="http://drupalcode.org/viewvc/drupal/contributions/modules/mobile_tools/mobile_tools.module?revision=1.15.2.63&amp;view=markup">code (line 496: function _mobile_tools_is_mobile_device())</a></b> to see how the device detection works. </p> <p>You will understand that the effort in keeping up with new devices and browsers is not an easy task, and these rules become inaccurate or outdated. It is sufficient and recommended for testing and quick prototyping during mobile development... But I would not recommend using it for production sites!</p> <p><a href="http://mobiledrupal.com/content/create-your-own-device-detection-algorithm-drupal-using-wurfl-and-mobile-tools" target="_blank">read more</a></p> device detection drupal mobile Sun, 21 Nov 2010 16:32:12 +0000 Tom 96 at http://mobiledrupal.com Sugestio: recommendations as a service for Drupal <p>Making your website more personal has long been a wish for many developers. If you can predict what your visitors will like, you could give this content a more prominent position and potentially increase participation (clicks, sales, uploads, comments, ...) on your website.</p> <p><a href="http://mobiledrupal.com/content/sugestio-recommendations-service-drupal" target="_blank">read more</a></p> drupal recommendations sugestio Wed, 27 Oct 2010 01:38:38 +0000 Tom 93 at http://mobiledrupal.com Powering mobile apps by Drupal <p>The interest in creating mobile apps or mobile websites with Drupal is increasing enormously. With the launch of the new <a href="http://www.microsoft.com/windowsphone/en-us/default.aspx">Windows Phone</a> today, the new <a href="http://www.symbian.org/symbian-platform/symbian3">Symbian^3</a> and the <a href="http://na.blackberry.com/eng/services/blackberry6/">BlackBerry 6</a> family of devices, the already enormous popular Android and iPhone duo got some new brothers and sisters. It is clear that there will be an enormous need for mobile developers and platforms that can drive these developments.</p> <p>To illustrate the interest of the Drupal community in Mobile, just have a ook at a recent blogpost by Dries <a href="http://buytaert.net/drupal-in-a-tablet-world">where he polled the community</a> about possible wishes and needs in order to make Drupal a better platform to drive mobile apps.</p> <p>While a number of solutions are being created as we speak I just wanted to point to two specific efforts that, instead of creating Drupal code to better communicate with mobile apps, write libraries for mobile platforms to better communicate with Drupal:</p> <ul> <li><strong><a href="http://github.com/workhabitinc/drupal-ios-sdk">Drupal iOS SDK</a></strong> is an iPhone library for Objective-C developers</li> <li><strong><a href="http://groups.drupal.org/titanium-api">Titanium API Group</a></strong> tries to collect snippets of code for the <a href="http://www.appcelerator.com/">Titanium Framework</a> that can power both Android and iPhone platforms. Hopefully some more formal Titanium libraries will emerge from this effort...</li> </ul> <p><a href="http://mobiledrupal.com/content/powering-mobile-apps-drupal" target="_blank">read more</a></p> android drupal iPhone mobile Tue, 12 Oct 2010 02:28:37 +0000 Tom 92 at http://mobiledrupal.com Styling form buttons on the iphone: -webkit-appearance <p>Techniques for styling "form buttons" are well known to themers, and certainly to themers who develop for smarthphones that understand some CSS3, things become very easy.</p> <p>However, recently we ran into some issues with iPhones that show a glare if we theme our buttons...</p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;">&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot; id=&quot;submit&quot; /&gt; &nbsp; &lt;script type=&quot;text/css&quot;&gt; #submit { color: #fff; width: 135px; height: 30px; border: none; background: #E00 ; -webkit-border-radius: 5px; } &lt;/style&gt;</pre></div></p> <p><a href="http://mobiledrupal.com/content/styling-form-buttons-iphone-webkit-appearance" target="_blank">read more</a></p> iPhone mobile Mon, 27 Sep 2010 02:10:18 +0000 Tom 91 at http://mobiledrupal.com Rethinking the mobile web <p>This presentation is a very well crafted set of slides explaining some basic concepts of creating mobile websites, and more specific to make your desktop site adaptable.</p> <p>It discusses lot of techniques that I use to make mobile websites performant... However some design choices we get from clients not always allow the very lightweight approach ( => example slide shows on mobile devices).</p> <p><a href="http://mobiledrupal.com/content/rethinking-mobile-web" target="_blank">read more</a></p> mobile Thu, 16 Sep 2010 16:54:17 +0000 Tom 89 at http://mobiledrupal.com Mobile Web testing... What's in my toolkit <style> #simulators dt { padding-top: 10px; } #simulators dt a { color: #CA0F10; } </style><p>When you are developing mobile websites, it is very important to have a rich Toolset that helps you in evaluating your mobile creations. This is not only for yourself, but also to reassure the client that you have the development under completely under control.</p> <p>Screensizes and browser capabilities can change the look and feel of your site drastically... So better prepare!</p> <p><a href="http://mobiledrupal.com/content/mobile-web-testing-whats-my-toolkit" target="_blank">read more</a></p> drupal mobile web Tue, 14 Sep 2010 06:16:39 +0000 Tom 88 at http://mobiledrupal.com Using Virtual Hosts on the Android Emulator <p>We know that it is a very good practice to use Virtual Hosts on your local machine to develop websites locally. Using paths like <a href="http://localhost/site1" title="http://localhost/site1">http://localhost/site1</a> are not only bad looking, it gives problems when you reference files, images, ... relative to your domain. It also helps you get better organised.</p> <p>There are some steps to undertake in your systems hosts file and in your apache server in order to get these virtual hosts running. Just <a href="http://www.google.com/search?q=setting+up+virtual+hosts+apache&amp;btnG=Search">google</a> or <a href="http://www.bing.com/search?q=setting+up+virtual+hosts">Bing</a> for a tutorial.</p> <p><a href="http://mobiledrupal.com/content/using-virtual-hosts-android-emulator" target="_blank">read more</a></p> android iPhone mobile testing Mon, 16 Aug 2010 19:15:32 +0000 Tom 87 at http://mobiledrupal.com Device detection in apache <p>As maintainter of the Drupal <a href="http://drupal.org/projects/mobile_tools">Mobile Tools module</a> I often get the question how device detection works when caching is enabled (e.g. with Boost).</p> <p>Several solutions are emerging. Two of them worth looking at:</p> <p>- <a href="http://www.projectronin.com/blog/?p=10" title="http://www.projectronin.com/blog/?p=10">http://www.projectronin.com/blog/?p=10</a><br /> - <a href="http://www.idelfuschini.it/en/apache-mobile-filter-v2x.html" title="http://www.idelfuschini.it/en/apache-mobile-filter-v2x.html">http://www.idelfuschini.it/en/apache-mobile-filter-v2x.html</a></p> <p>Both are doing device detection in apache.</p> mobile web Sat, 31 Jul 2010 14:24:48 +0000 Tom 86 at http://mobiledrupal.com HOW TO: Optimize Your Mobile Site Across Multiple Platforms <p>Mashable has written a simple and short write up on creating a mobile website:</p> <p><a href="http://mashable.com/2010/07/13/mobile-web-optimization/" title="http://mashable.com/2010/07/13/mobile-web-optimization/">http://mashable.com/2010/07/13/mobile-web-optimization/</a></p> <p>It is short, but contains some links to good resources on developing mobile website.</p> mobile Sat, 17 Jul 2010 14:43:14 +0000 Tom 85 at http://mobiledrupal.com