Saturday, April 19, 2008

How to Add Recent Comments

If you are using Google's Blogger, you will be wondering why Blogger can't be a bit more like WordPress or TypePad. While Blogger is incredibly easy to use, it's a bit more difficult to customize. But with a bit of work, you can tweak your Blogger site to near-perfection.

here is a code that you can use if you want your blog to have a recent comments widget. Just copy and paste the code below.


<script src="http://h1.ripway.com/slavezero23/blogger-widget.js">
</script>

<script>
var numposts = 20;
var showpostdate = true;
var showpostsummary = false;
var numchars = 100;
</script>
<script src="http://YOUR BLOG
URL/feeds/comments/default?orderby=published
&alt=json-in-script&callback=rp">

</script>


var numposts = 20; ---> number of comments shown
var showpostdate = true; ---> set this "true" if you want to show the date fo the comment
var showpostsummary = false; ---> if set to "true" this will also display the summary of the comment
var numchars = 100; ---> maximum character of comments shown

0 comments: