Blogs BE
My projects
Archives
- March 2010 (1)
- February 2010 (1)
- January 2010 (2)
- December 2009 (2)
- November 2009 (2)
- August 2009 (4)
- July 2009 (1)
- May 2009 (1)
- April 2009 (1)
- February 2009 (1)
- January 2009 (1)
- October 2008 (4)
- September 2008 (2)
- August 2008 (3)
- July 2008 (2)
- June 2008 (2)
- May 2008 (3)
- April 2008 (6)
- March 2008 (4)
- February 2008 (4)
- January 2008 (5)
- December 2007 (4)
- November 2007 (6)
- October 2007 (6)
- September 2007 (6)
- August 2007 (9)
- July 2007 (11)
- June 2007 (6)
- May 2007 (3)
- April 2007 (11)
- March 2007 (15)
- February 2007 (10)
- January 2007 (13)
- December 2006 (18)
- November 2006 (11)
- October 2006 (11)
- September 2006 (15)
- August 2006 (15)
- July 2006 (11)
- June 2006 (16)
- May 2006 (18)
- April 2006 (21)
- March 2006 (23)
- February 2006 (19)
- January 2006 (13)
- December 2005 (14)
- November 2005 (16)
- October 2005 (18)
- September 2005 (12)
- August 2005 (10)
- July 2005 (8)
- June 2005 (9)
- May 2005 (7)
- April 2005 (6)
- March 2005 (5)
- February 2005 (14)
- January 2005 (24)
- December 2004 (12)
- November 2004 (12)
- October 2004 (18)
- September 2004 (8)
- August 2004 (8)
- July 2004 (7)
- June 2004 (14)
- May 2004 (11)
- April 2004 (7)
- March 2004 (1)
- February 2004 (1)
Stats
About this blog
Recent Comments
- Bart on Not happy with the Canon 500D
- Jelle on Not happy with the Canon 500D
- Nancy on Not happy with the Canon 500D
- DRoA=scammers on “Domain Registry of America” scam
- Vijay on Lexmark printers with “Hardware Error 0502″
- Stan on Govern yourselves accordingly
- BW on Lexmark printers with “Hardware Error 0502″
- theta on Lexmark printers with “Hardware Error 0502″
- Enemy of Domain Registry of America on “Domain Registry of America” scam
- Amedee Van Gasse on MIVB en Google Transit
- The Domain Naming Dude on “Domain Registry of America” scam
- James Cobalt on “Domain Registry of America” scam
Recent Posts
- Not happy with the Canon 500D
- Focal length for the common man: “portrait distance”
- “I will you in the night” – Idool 2003
- Fax 2.0: because fax won’t die in the internet age
- Dissection of the Phantom Menace
- Newscorp is indeed dropping out of Google
- iPhone bandwidth: orders of magnitude
- Idea: preview service for URL shorteners
- Imagine: a virtual iPhone for everyone
- Wordle and famous movies
- Facebook tricked me into my own spam FAIL
- Seth’s bandwidth vs synchronicity graph: it’s a start
Recent posts + comments in Blogger
One of the disadvantages of using Blogger is that by default, you don’t have categories and recent comments on your blog. There is a trick to put recent comments on this Blogger help page. It involves introducing a new
<Blogger> ... </Blogger>loop in the blog template. A nice trick, but I don’t like the fact that they only show the comment dates.So I developed the idea a bit further: on the main and archive pages of my blog, you now see the normal “Recent Posts” in the sidebar, but the posts that have comments also have those listed (see image at the right). On the individual post pages, I have the normal list of recent posts. I put each comment in a
divwith a height of 25 pixels and withoverflow: auto(defined in the CSS file) so that long comments don’t take too much space. The layout of the thing (e.g. each comment starts with a clickable “>”) is easy to adapt.This is the Blogger template code (in the standard templates, put this instead of the existing code that is much like the part here between the
<ItemPage> ... </ItemPage>tags). Feel free to use it if you want to.<ItemPage>
<h2 class="sidebar-title">Previous posts</h2>
<ul id="recently">
<BloggerPreviousItems>
<li><a href="<$BlogItemPermalinkURL$>" mce_href="<$BlogItemPermalinkURL$>"><$BlogPreviousItemTitle$></a></li>
</BloggerPreviousItems>
</ul>
</ItemPage>
<MainOrArchivePage>
<h2 class="sidebar-title">Previous posts</h2>
<ul>
<Blogger>
<li><a href="<$BlogItemPermalinkURL$>" mce_href="<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a>
<BlogItemCommentsEnabled>
<BlogItemComments>
<div class="recent_comment">
<a href="<$BlogCommentPermalinkURL$>" mce_href="<$BlogCommentPermalinkURL$>">></a> <$BlogCommentBody$>
</div>
</BlogItemComments>
</BlogItemCommentsEnabled>
</li>
</Blogger>
</ul>
</MainOrArchivePage>
You will need a CSS class (in your CSS file, or in the first part of your Blogger template) with something like the following code:
.recent_comment { overflow: auto; border-bottom: 1px #999 dashed; font-size: .8em; height: 25px; }