Code Snippets

Adding a Google Map Image to your Mobile Website

I get many people asking how to put an image of a Google Map on their mobile website. This is a very easy task to do, and I will explain how.

Articles, Code Snippets

Using Twitter with PHP to automatically post tweets

This is a cool little trick I used on my new site, Surl Mobile Bookmarks. Basically whenever someone adds a new bookmark, I want it to be tweeted. I searched around the web, and found an easy code snippet, that works like a charm.
For my site, when someone adds a bookmark, it posts their site [...]

Articles, Code Snippets, Developers

Using Device Atlas to redirect Users

I’ve been working on a project that required both a mobile version, and a web version. After countless methods of browser detection, I find that Device Atlas was the only one that worked the way I wanted it to. How do I want it to work? I want it to detect whether the user is [...]

Articles, Code Snippets, Developers

Get users to bookmark your site

This is a nice little trick that anyone can use to get users to bookmark your mobile site. This post was originally from mjelly.com – Thanks James for the very insightful posts!
The problem is that once you have got people into your mobile site it can be difficult to keep them coming back as mobile [...]

Articles, Code Snippets, Developers

Table like DIVS in mobile web design

Saw a request on Mobility.mobi for a div that will behave like a table. These are 2 really easy HTML and CSS codes you can use to get a ‘table’ on your mobile site.

Code Snippets, Developers

.htaccess, Mod_Rewrite and the Mobile Web

Hey all,
I’ve recently been re-doing all of my mobile sites for a fresh 2009 look! I’ve been using Mod_Rewrite to make ‘clean URLs’. Why you might ask? Well, I’ll come clean, I’m no SEO expert, more of an SEO hack. So using Mod_Rewrite can change my URL structure from:
page.php?var=variable&var2=variable2
to:
/page/var/var2/
I thought I would share with everyone [...]

Articles, Code Snippets, Developers, SEO, dotMobi Sites

Adding Multiple RSS feeds to your site

Here is another trick that allows you to pull multiple rss feeds onto your site. This may be useful if you want to have a news section on your site with multiple feeds.

Code Snippets

Quick SMS code to embed in your xhtml

I’ve gotten many requests from my clients to have a SMS feature on their site. This isn’t much of a daunting task anymore, as I have built my own application to use, but this code snippet will allow the user to send an SMS using their own texting service, rather from the mobile website.
A big [...]

Code Snippets

Adding weather on your site via Yahoo

This is a quick and easy code snippet for you to get weather on your mobile website. This code uses the Yahoo RSS Weather feed, provided by Weather.com

Code Snippets