I am trying to add the Latest Comment block to the home page (of the Elastic skin under the Newest Images Block) similar to the one of ProJam
I have used the following code:
{jrCore_list module="jrComment" order_by="_item_id desc" limit="12" template="item_list.tpl"}
but is not exactly what I was looking for.
Then I copied the code found in the side_comments.php of Projam to :
{* Newest Comments Block *}
{if jrCore_module_is_active('jrComment')}
<div style="margin-top:7px;">
<div class="title">
<h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="48" default="Latest Comments"}</h2>
{jrCore_module_url module="jrComment" assign="comment_murl"}
<div class="title-more"><a href="{$jamroom_url}/{$comment_murl}">{jrCore_lang skin=$_conf.jrCore_active_skin id="22" default="all"}</a></div>
</div>
<div class="block_content">
<div class="item">
{if isset($_items)}
<div class="body_3 mb20">
<div style="height:450px;overflow:auto;">
{foreach from=$_items item="item"}
<div class="block">
<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>{jrCore_lang skin=$_conf.jrCore_active_skin id="112" default="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>
</div>
{/foreach}
</div>
</div>
{/if}
</div>
</div>
</div>
{/if}
but it doesn't work. Can someone help telling me what is wrong with this code?
Thanks in advance.
updated by @pch: 11/04/16 06:40:45AM