{"id":9280,"date":"2011-02-14T12:37:18","date_gmt":"2011-02-14T20:37:18","guid":{"rendered":"http:\/\/blog.wapreview.com\/?p=9280"},"modified":"2011-02-14T19:55:36","modified_gmt":"2011-02-15T03:55:36","slug":"prepaid-phone-news-and-blogger-mobile-tricks","status":"publish","type":"post","link":"https:\/\/wapreview.com\/9280\/","title":{"rendered":"PrepaidPhoneNews.com and Blogger Mobile Tricks"},"content":{"rendered":"
<\/a><\/p>\n I’ve launched a new blog, prepaidphone<\/strong>news.com<\/a>, covering the US pay as you go mobile industry from a user’s perspective. The site grew out of a series of posts<\/a> I wrote on WapReview that compared the various operator and MVNO prepaid offerings for both voice\/SMS only and data users. Those posts have consistently been among the most popular on Wapreview so I decided to spin the prepaid coverage off to a dedicated site.<\/p>\n Prepaid Phone News is also an experiment in shoestring web publishing. Rather than going the self-hosted WordPress route that I use for WapReview and BoostApps, the new site is running on Google’s free (as in beer) Blogger platform. I was drawn to Blogger partly because it’s free but also because of its remarkable uptime<\/a>. My other sites run on shared hosting and even with the best of hosts there are always some outages. Plus my self hosted WordPress sites seem to get hacked every now and then. I’m hoping that Google will do a better job of keeping my site up and exploit free than I could myself.<\/p>\n Another reason that Blogger is interesting to me are its new mobile templates<\/a>. If you turn the mobile option on, iPhone and Android users are directed to an attractive touch friendly mobile version of your blog. Users of unsupported browsers can see the mobile version by appending ?m=1 to any Blogger URL. I tried the mobile version in a number of browsers and it seems to work well in Opera Mini and Mobile and with the Symbian, bada and WebOS browsers. It suspect it will work with any browser that supports JavaScript and can handle pages up to several hundred KB in size.<\/p>\n I wanted to redirect all capable mobile browsers to the mobile version of the new site but I haven’t got that working yet. I did find some JavaScript on the web<\/a> that mostly worked. The only problem was that it kept kicking mobile users back to the mobile site even after they clicked the “View desktop site” link on the mobile pages.<\/p>\n I settled on adding a “View Mobile Version” link to the top of my desktop pages. If you want to do something similar you can adapt my code. First save a copy of your Blogger template just in case something goes wrong. Then\u00a0 search for the first and only occurrence of the <body> tag in the template and insert the following\u00a0 just below <body> :<\/p>\n <script language=’javascript’ type=’text\/javascript’> The code above will\u00a0 dynamically create a link to Blogger’s mobile version of the current page in any browser that supports JavaScript.<\/p>\n So what about embedded WAP browsers which don’t do JavaScript?\u00a0 They won’t see the link and wouldn’t be able to handle Blogger’s mobile version anyway as it which requires JavaScript for navigation.\u00a0 I didn’t want to leave feature phone users out so I made a free lightweight version of the Blog using Mippin<\/a> (you could also use Winksite<\/a> or Wirenode<\/a>, if you prefer).\u00a0 Then I added a link to the Mippin\u00a0 site enclosed in a <noscript> block immediately below the\u00a0 JavaScript. Here’s the complete code with the <noscript> portion in bold.\u00a0 You will need to change URL (in red) to point to your Mippin, etc. lite mobile site.<\/p>\n <script language=’javascript’ type=’text\/javascript’> Only browsers that don’t support JavaScript will see the link in <noscript><\/noscript> block.<\/p>\n Here are the two mobile versions, Blogger’s on the left, Mippin’s on the right<\/p>\n <\/p>\n If you want to try them in your browser, here are direct links: I’ve launched a new blog, prepaidphonenews.com, covering the US pay as you go mobile industry from a user’s perspective. The site grew out of a series of posts I wrote on WapReview that compared the various operator and MVNO prepaid offerings for both voice\/SMS only and data users. Those posts have consistently been among the most popular on Wapreview so I decided to spin the prepaid coverage off to a dedicated site. Prepaid Phone News is also an experiment in … Continue reading
\nvar h = "http:\/\/" + window.location.hostname + window.location.pathname;
\ndocument.write ("<div style=’padding:0 4px’><a href=’" + h + "?m=1′>View Mobile Version<\/a><\/div>");
\n<\/script><\/span><\/p>\n
\nvar h = "http:\/\/" + window.location.hostname + window.location.pathname;
\ndocument.write ("<div style=’padding:0 4px’><a href=’" + h + "?m=1′>View Mobile Version<\/a><\/div>");
\n<\/script>
\n<noscript><div style=’padding:0 4px’><a href=’http:\/\/mippin.com\/prepaid<\/span>‘>View Mobile Version<\/a><\/div><\/noscript><\/strong><\/span><\/p>\n
\nprepaidphonenews.com\/?m=1<\/a> – Blogger Mobile
\nmippin.com\/prepaid<\/a> – Mippin<\/p>\n","protected":false},"excerpt":{"rendered":"