Help - Search - Members - Calendar
Full Version: Recent Comments
Movable Type Community Forum > Additional Resources > Tips and Tricks
cdart
I am trying to put recent comments in my sidebar. I was able to get this to work on my Category, and Monthly pages. But not my Main Index and Individual Archive. Should I be doing something different for those pages?

Here is my code:
CODE
<span class="sidebarHead">recent comments</span><br />
<p>
<MTComments lastn="2">
<$MTCommentAuthorLink spam_protect="1"$>:
<$MTCommentBody trim_to="30" convert_breaks="0"$>... <a href="<$MTBlogURL$>archives/<$MTCommentEntryID pad="1"$>.html">more »</a><br/><br/>
</MTComments></p>


And a link to my site:

Any suggestions are always appreciated.
Thanks
oscarf
Have you tried something like this:
CODE
<MTEntries recently_commented_on="2">

<a href="<$MTEntryLink$>"><b><$MTEntryTitle$></b></a><br/>
<MTComments lastn="1"><$MTCommentBody remove_html="1" trim_to="30"$>... <br/>
by <$MTCommentAuthorLink spam_protect="1"$></MTComments>


</MTEntries>
cdart
That was it! Thanks for your help!

It's working now...
oscarf
You're welcome smile.gif

Also, btw, a search on recent AND comments reveals a million threads, many of them on just this topic, so you might try that in the future if you'd like a quicker answer.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.