Home Page Latest Forum URLs - all broken
Ning To Jamroom
Douglas -
This is NOT using Site Builder and it is a modified version of Ningja skin.
Please note that I was having a similar URL problem a couple of days ago with some URLs in the Activity timeline being badly formed. Brian did something to fix some of them (somewhere in my code I think), but said that a proper long-term fix would require a module update.
The code samples below were modified by me and by Paul during my push in early January to get the site live. They probably need to be cleaned up and I am thinking of going back to adding the scroll and pager. This might be the right time to do that.
I did not modify either of the following blocks of code yesterday.
Part 1 -- index.tpl Embedded Template
{* LATEST FORUM POSTS BLOCK START *}
{* This is the embedded template that is shown for EACH Latest Forum Posts *}
{if isset($_conf.nsTCLSkin1_top_discuss_active) && $_conf.nsTCLSkin1_top_discuss_active == 'on'}
{capture name="template3" assign="forum_tpl"}
{literal}
{if isset($_items)}
{jrCore_module_url module="jrForum" assign="furl"}
{foreach from=$_items item="item"}
<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>Last updated {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}
{/literal}
{/capture}
{/if}
{* This is the END of the embedded template that is shown for EACH Latest Forum Posts entry *}
Part 2 -- index.tpl Code that generates the content block
{* BEGIN LATEST FORUM POSTS *}
{if isset($_conf.nsTCLSkin1_top_discuss_active) && $_conf.nsTCLSkin1_top_discuss_active == 'on'}
{if isset($_conf.nsTCLSkin1_top_discuss_limit) && $_conf.nsTCLSkin1_top_discuss_limit > 5}
{assign var="post_pb" value=$_conf.nsTCLSkin1_top_discuss_limit}
{else}
{assign var="post_pb" value="5"}
{/if}
<div class="col8">
<div class="item blog-archive-header m10">
<h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="20" default="Latest"} {jrCore_lang skin=$_conf.jrCore_active_skin id="47" default="Forum"} {jrCore_lang skin=$_conf.jrCore_active_skin id="48" default="Posts"}{if strlen($_conf.nsTCLSkin1_forum_profile) > 0} <span class="normal"><a href="{$_conf.nsTCLSkin1_forum_profile}/new_posts">{jrCore_lang skin=$_conf.jrCore_active_skin id="30" default="All"}</a></span>{/if}</h2>
</div>
<div class="blog-index-text" style="height:636px; margin: 10px 10px 0px 10px; padding-bottom: 10px;">
{jrCore_list module="jrForum" search="forum_post_count > 0" order_by="forum_updated desc" template=$forum_tpl pagebreak=$post_pb page=$_post.p}
</div>
</div>
{/if}
{* END LATEST FORUM POSTS *}