May 10, 2010

How to Add URL QR Code in Your Blogspot Post


This post QR Code
Smartphones and PDA gets smarter today and more people use it to browse the web with mobile phones. While it's somewhat annoying to type URL address of your blog, you may put a QR Code for your reader to scan it with their smartphone instead of typing the URL. Here I will show you how.

First, lets take a look on Google Chart's API to display a QR Code image, the URL format to display it is http://chart.apis.google.com/chart?cht=qr. Other options is described as below:

March 27, 2010

Highlight Author Comment by Author Profile ID


There are many posts on highlighting author comments on Blogspot that I had applied one of those tips on my personal blog. But there was one problem that make me didn't like those tricks, it came when you had to change your display name. Since those codes compare data:comment.author to data:post.author, my old comments weren't highlighted anymore.

I thought I could overcome this problem by comparing post author ID with comment author ID, but I couldn't find any proper tag when I searched at blogger help page. So I come up with this solution: by comparing comment author URL with my Blogger profile page URL which is in http://www.blogger.com/profile/BLOGGER_ID format.

Here's how I done it:

March 25, 2010

How to Create Blogspot Table of Content with Javascript


Have you ever wonder how to create a table of content of your Blogspot/Blogger post? If you don’t have any clue how to do it, then you should try this.

Actually, Blogspot already have a widget that can retreive your blog post in form of feed. You may insert that widget and point to your RSS feed of your blog, something like http://YOUR-BLOG.blogspot.com/feeds/posts/default?orderby=updated. That’s fine if you only want to show your last 5 or 7 post to your reader. But if you want to show all your blog post in one page, that’s why I’m writing this.
I got this idea when I play around in the Google Code Playground. It explains how to use javascript to retrieve your posts in a certain blog. Well, you can read the explanation over here, for now let’s just play with the script:
 
Copyright © 2010 - Go Blogspot!