October 01, 2004
How do I show a list of my most recent comments?
Did you know that you can show a list of the most recent comments to your blog. In that way, you can demonstrate to a new reader what entries have received the most discussion on your blog. It is actually very simple to do:
- First log into UThink.
- Click on the blog you'd like to create a list of the most recent comments for.
- Click on "Templates," and then on the "Main Index Template."
- Find the code in the Main Index Template that prints out the Search box.
If you have created your blog after November 28, 2005, add the following code:
<h2 class="module-header">Recent Comments</h2>
<div class="module-categories module">
<div class="module-content">
<MTEntries recently_commented_on="7" sort_order="descend">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a> (<$MTEntryCommentCount$>)<br /><MTComments lastn="1">
<$MTCommentAuthorLink spam_protect="1"$> wrote:
<$MTCommentBody trim_to="50" remove_html="1" convert_breaks="0"$>...[<a href="<$MTEntryLink$>#<$MTCommentID$>">more</a>]<br /><br /></MTComments>
</MTEntries>
</div>
</div>
If you have an older blog, right under the search box, add this code:
<div class="sidetitle">
Recent Comments
</div>
<div class="side">
<MTEntries recently_commented_on="7" sort_order="descend">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a> (<$MTEntryCommentCount$>)<br /><MTComments lastn="1">
<$MTCommentAuthorLink spam_protect="1"$> wrote:
<$MTCommentBody trim_to="50" remove_html="1"
convert_breaks="0"$>...[<a href="<$MTEntryLink$>#<$MTCommentID$>">more</a>]<br /><br /></MTComments>
</MTEntries>
</div> - Click on "Save" and then "Rebuild" and you should now see your most recent comments in your side menu section.


