in technospeak

comment feed

chregu recently mentioned that he wants a feed for every blog (actually for every blog software…)

so i’ve modified my already present comment-feed, which i’ve been using to manage my comments (e.g archive nicely, edit, despam…) into a publicly available format, for all of you to consume.

the comment feed can be accessed via this file: comments.xml.

the full code is as follows [1]:

<?xml version=”1.0″ encoding=”<$MTPublishCharset$>”?>

<rss version=”2.0″






<title><$MTBlogName remove_html=”1″ encode_xml=”1″$> Comments</title>




<dc:creator><MTEntries lastn=”1″><$MTEntryAuthorEmail$></MTEntries></dc:creator>

<dc:date><MTEntries lastn=”1″><$MTEntryDate format=”%Y-%m-%dT%H:%M:%S”$><$MTBlogTimezone$></MTEntries></dc:date>

<admin:generatorAgent rdf:resource=”<$MTVersion$>” />




<MTComments lastn=”15″ sort_order=”descend”><MTCommentEntry>


<title><$MTCommentAuthor encode_xml=”1″$> on ‘<$MTEntryTitle encode_xml=”1″$>'</title>

<link><$MTEntryLink encode_xml=”1″$></link>



<$MTCommentAuthor$> @ <$MTCommentDate format=”%d. %B %Y, %H:%M”$>]]><br />

(<a href=”mailto:<$MTCommentEmail$>”>mail</a>, <a href=”<$MTCommentURL$>”>URL</a>)

<br />

—<br />

<$MTCommentBody encode_xml=”1″$>






so, if you want to add a comment feed to your MT installation, proceed like this. go to your mt.cgi (the main admin), add a new template, give it the name you want (comments.xml works nicely) and paste the code above into the Template Body field.

[1]: didn’t code it myself, but forgot where i’ve gotten it, it’s half a century ago (or so…)

technorati tags: , ,

Leave a Reply