20 January 2006

Recent Comments in the Sidebar

From Blogger Help

Simply take this code:

<MainPage>
<h2 class="sidebar-title">Recent Comments</h2>
<ul>
<Blogger>
<BlogItemCommentsEnabled>
<BlogItemComments>

<li><$BlogCommentAuthor$> //
<a href="<$BlogCommentPermalinkURL$>">
<$BlogCommentDateTime$></a></li>

</BlogItemComments>
</BlogItemCommentsEnabled>
</Blogger>
</ul>
</MainPage>


And stick it in your template, save, and republish. Then, you'll see it in the side bar. I've changed the formatting on my comments to make it look a little more pleasing to the eye.

Difficulty★★★Used on this site?Yes

8 Comments:

Blogger Trouble said...

Is there a way to make only a certain number of comments show?

4:10 PM, January 24, 2006  Edit Comment
Blogger hackstansbury said...

it's stuck at 10. that's the length of the RSS feed that powers the last messages. until Blogger adds more comment support, it's stuck at 10.

4:24 PM, January 24, 2006  Edit Comment
Blogger Trouble said...

god for some reason, when I did this, I got like 30 comments.

6:52 AM, January 25, 2006  Edit Comment
Blogger Eduardo Tetera said...

Same here...
Could U help Us, pls?

7:06 AM, February 19, 2006  Edit Comment
Blogger Eduardo Tetera said...

This comment has been removed by a blog administrator.

7:25 AM, February 19, 2006  Edit Comment
Blogger Eduardo Tetera said...

I really would like It to work on 3 to 5 comments.

7:34 AM, February 19, 2006  Edit Comment
Blogger The Asian Playboy said...

That's a pretty good hack.

I get a nice round 10, but is there a way to display the title of the post that was commented on? I don't think displaying the time tag is particularly useful for those readers/commenters who are participating in a blog post discussion.

10:56 AM, February 28, 2006  Edit Comment
Blogger Ed Kohler said...

This is a great idea. I think it makes a site seem more active to provide links to recent comments like this. Do you worry about the comments filling with spam if the author's homepage is linked from the sidebar?

Is this why you require blogger IDs for comments?

7:00 PM, March 05, 2006  Edit Comment

Post a Comment

<< Home