Broken URL in Forum listings on Home Page
Ning To Jamroom
You'd put this part into a separate template in your skin directory named (for example) index_forum_row.tpl
{if isset($_items)}
{jrCore_module_url module="jrForum" assign="furl"}
{foreach from=$_items item="item"}
{debug}
<div class="container">
<div class="row">
<div class="col2" style="padding-bottom: 12px;">
<a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="large" crop="auto" alt=$item.user_name width=false height=false class="iloutline img_scale"}</a><br>
</div>
<div class="col10 last">
<div class="p5" style="padding-top: 0px;">
{* <h3><a href="{$jamroom_url}/{$item.forum_updated_profile_url}/{$furl}/{$item._item_id}/{$item.forum_cat_url}/{$item.forum_title_url}
<h3><a href="{$jamroom_url}/{$item.profile_url}/{$furl}/{$item._item_id}/{$item.forum_cat_url}/{$item.forum_title_url}#last">{$item.forum_title|truncate:60}</a></h3>
<div class="normal" style="line-height: 15px;">
<strong>{jrCore_lang skin=$_conf.jrCore_active_skin id="45" default="Posted"}:</strong> {$item.forum_updated|jrCore_date_format:"%A %B %e %Y, %l:%M %p"}<br>
<strong>{jrCore_lang skin=$_conf.jrCore_active_skin id="46" default="By"}:</strong> <a href="{$jamroom_url}/{$item.forum_updated_profile_url}">@{$item.forum_updated_user_name}</a><br>
<strong>In: <a href="{$jamroom_url}/{$item._profile_url}/{$furl}/{$item.forum_cat_url}">{$item.forum_cat}</a></strong><br><br>
{$item.forum_text|strip_tags|truncate:200:"..."}
</div>
</div>
</div>
</div>
</div>
{/foreach}
{else}
<div class="center p10">
<h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="26" default="No"} {jrCore_lang skin=$_conf.jrCore_active_skin id="19" default="Discussions"}!</h3>
</div>
{/if}
Then your test.tpl can be changed to this:
{assign var="selected" value="home"}
{* Include Header File *}
{jrCore_include template="header.tpl"}
{* BEGIN Container *}
<div class="container">
{* BEGIN TEST CODE *}
<div class="row">
{jrCore_list module="jrForum" order_by="_created desc" template="index_forum_row.tpl" limit="10"}
</div>
{* END TEST CODE *}
</div>
{* END Container *}
{* Include Footer File *}
{jrCore_include template="footer.tpl"}
The {jrCore_list call might need search parameters etc to work exactly like it does on your index page.
updated by @ultrajam: 01/23/15 10:45:53AM