Help - Search - Members - Calendar
Full Version: Mt4.01 : Recent Comments
Movable Type Community Forum > Using Movable Type > Commenting System
r00
I haven't found a way to post recent comments on my main page anywhere for MT4. However, the syntax for MT3.2 works, with slight adjustments.

In your Sidebar layouts modules, place the following where you want the comments to appear.

CODE
<MTIf name="module_recent_comments">
<h3 class="widget-header">Recent Comments</h3>
<div class="widget-content">
<ul class="widget-list">
<MTEntries recently_commented_on="5" sort_order="descend">
<li class="widget-list-item">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a> (<$MTEntryCommentCount$>)<br />
<MTComments lastn="1"><$MTCommentAuthorLink show_email="0"$> wrote:
<$MTCommentBody trim_to="35" remove_html="1" convert_breaks="0"$>...
[<a href="<$MTEntryLink$>#c<$MTCommentID$>">more</a>]<br />
</MTComments>
</MTEntries>
</li>
</ul>
</div>
</MTif>


In your main index template, add the following:

CODE
<MTSetVar name="module_recent_comments" value="1">


This will give you a recent comments section like the one here.

Hope this helps those that want something like this!
MrBluster
QUOTE (r00 @ Dec 4 2007, 12:58 PM) *
I haven't found a way to post recent comments on my main page anywhere for MT4. However, the syntax for MT3.2 works, with slight adjustments.

In your Sidebar layouts modules, place the following where you want the comments to appear.

CODE
<MTIf name="module_recent_comments">
<h3 class="widget-header">Recent Comments</h3>
<div class="widget-content">
<ul class="widget-list">
<MTEntries recently_commented_on="5" sort_order="descend">
<li class="widget-list-item">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a> (<$MTEntryCommentCount$>)<br />
<MTComments lastn="1"><$MTCommentAuthorLink show_email="0"$> wrote:
<$MTCommentBody trim_to="35" remove_html="1" convert_breaks="0"$>...
[<a href="<$MTEntryLink$>#c<$MTCommentID$>">more</a>]<br />
</MTComments>
</MTEntries>
</li>
</ul>
</div>
</MTif>


In your main index template, add the following:

CODE
<MTSetVar name="module_recent_comments" value="1">


This will give you a recent comments section like the one here.

Hope this helps those that want something like this!


I can't see any way to make this work.
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-2010 Invision Power Services, Inc.