Latest Comment on the home page
Using Jamroom
Latest Comments for the Elastic front page.
{* LATEST COMMENTS *}
{if jrCore_module_is_active('jrComment')}
<div class="block">
<div class="title">
<h2>Latest Comments</h2>
</div>
<div class="block_content">
<div class="item">
{capture name="comments_template" assign="comments_row"}
{literal}
{if isset($_items)}
<div style="height:450px;overflow:auto;">
{foreach from=$_items item="item"}
<div style="display:table">
<div style="display:table-row;">
<div style="display:table-cell;width:1%;text-align:center;vertical-align:top;">
<a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="xxsmall" crop="auto" alt=$item.user_name class="action_item_user_img iloutline"}</a>
</div>
<div style="display:table-cell;text-align:left;vertical-align:top;padding-left:5px;">
<div class="normal">
<a href="{$item.comment_url}">Re: {$item.comment_item_title|truncate:20:"...":false}</a><br>
{$item._created|jrCore_date_format}<br>
<span class="highlight-txt"><i>By:</i></span> <a href="{$jamroom_url}/{$item.profile_url}"><span class="capital">{$item.profile_name|truncate:20:"...":false}</span></a><br>
<br>
{$item.comment_text|truncate:200:"...":false|jrCore_strip_html}
</div>
</div>
</div>
</div>
<hr>
{/foreach}
</div>
{/if}
{/literal}
{/capture}
{jrCore_list module="jrComment" order_by="_created NUMERICAL_DESC" limit="10" template=$comments_row}
</div>
</div>
</div>
{/if}Hope this helps!