Notes on Recent Comments

Am having fun with applying the Recent Comments plugin with Gravatars on my sites. I started with simple code, showing this:

using this code:

<a href="{commenterurl}" target="new"><span class="stats"><strong>{commenter}</strong></span></a> on <a href="{url}"><strong>{title}</strong></a> <a href="{commenturl}" rel="bookmark" title="{commentdate} at {commenttime}">: <em>{commentsnippet:50}</em>...</a><br><br>

Then added gravatars where it showed up like this:

using this code:

{gravatar:32}<a href="{commenterurl}" target="new"><span class="stats"><strong>{commenter}</strong></span></a> on <a href="{url}"><strong>{title}</strong></a> <a href="{commenturl}" rel="bookmark" title="{commentdate} at {commenttime}">: <em>{commentsnippet:50}</em>...</a><br><br>

but I couldn’t align it properly, so I resorted to good ol’ tables, resulting in this:

using this code:

<table cellpadding="0" cellspacing="4"><tr><td valign="middle">{gravatar:32}</td><td><a href="{commenterurl}" target="new"><span class="stats"><strong>{commenter}</strong> </span></a> on <a href="{url}"><strong>{title} ({commentcount:no comments:comment:comments})</strong></a> <a href="{commenturl}" rel="bookmark" title="{commentdate} at {commenttime}">:</td></tr>
<tr><td colspan="2"><em>{commentsnippet:50}</em>...</a><br><br></td></tr></table>

and if you noticed, added the total number of comments per post as well. There’s a whole shiteload of switches and options on the Plugin Author’s site, guaranteeing hours of happy geekiness that promises to rob me of a life.

here’s how it looks like on KE:

Must.Resist.More.Tinkering.

Leave a Reply

Your email address will not be published. Required fields are marked *