Wednesday, 11 July 2007

"Recent comments" widget for Blogger

Blogger Templates have a great "recent comments" widget available which you can use to display recent comments in blog. You can see an example of this in my right sidebar.




To use this widget in your blog, head over to Blogger Templates and choose your options, including the Blog*Spot url of your blog. Click "apply" then "Add widget to my blog".

You will then be taken to your Blogger dashboard where you can automatically insert this widget into your Blogger layout.

If you have a custom domain, you can still use this widget! Simply go to Template>Page elements in your Blogger dashboard and open up the recent comments widget. The code should look like this:

<script style="text/javascript" src="http://giga.ovh.org/rc"></script><script style="text/javascript">var a_rc=3;var m_rc=true;var n_rc=true;var o_rc=100;</script><script src="http://yourblog.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments"></script>

You need to change only the red section of the URL to your custom domain URL (eg: http://www.yourblog.com). Click save and you should then see your recent comments appear.

Technorati Tags: | | |


No comments:

Post a Comment