solved 3 forums tabs all using same template but 1 pulls in the replies too

soaringeagle
@soaringeagle
9 years ago
3,304 posts
using this
{jrCore_list module="jrForum" order_by="forum_updated random" search1="forum_profile_id = 13827" search2="forum_featured = on" limit="10" template="my_forum_list.tpl"}
2 tabs on www.dreadlockssite.com
i got newest random featured random all
random all is also listing the replies not just topics
all i did was remove search 2



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 11/25/16 03:22:57PM
soaringeagle
@soaringeagle
9 years ago
3,304 posts
{jrCore_module_url module="jrForum" assign="murl"}
<div class="item mCustomScrollbar">
    {foreach from=$_items item="item"}
    <div class="frontpageforumpost" style="overflow:hidden;margin-bottom:12px">
        <div style="float:left;padding-right:12px;">
            {jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._user_id size="xsmall" alt=$item.user_name class="action_item_user_img iloutline"}
        </div>
        <div>
            {if $item.forum_pinned == 'on'}
                <h2><a href="{$jamroom_url}/dreadlocks-forums/forum/{$item.forum_cat_url}/{$item._item_id}/{$item.forum_title_url}">{$item.forum_title}</a></h2>
            {else}
                <h2><a href="{$jamroom_url}/dreadlocks-forums/forum/{$item.forum_cat_url}/{$item._item_id}/{$item.forum_title_url}">{$item.forum_title}</a></h2>
            {/if}
            <br><span class="normal"><small>{$item._created|jrCore_format_time}, by <a href="{$jamroom_url}/dreadlocks-forums/forum/{$item.forum_cat_url}">{$item.forum_cat}</a> </small></span><br><div class="forummainpagelisttext">{$item.forum_text|jrCore_strip_html|truncate:300}<p><br><div class="forumreadmore"> <div class="item"><a href="{$jamroom_url}/dreadlocks-forums/forum/{$item.forum_cat_url}/{$item._item_id}/{$item.forum_title_url}">read more</a></div><div class="item"> Replies {$item.forum_post_count}</div></div> </div>
        </div>
    </div>
    {/foreach}

</div>



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
9 years ago
7,772 posts
Probably, the search2="forum_featured = on" applies only to the first item in a forum. you could try adding:

search2="forum_cat_url like %"

That would probably do it. Or if that doesnt work, group_by="forum_group_id"
soaringeagle
@soaringeagle
9 years ago
3,304 posts
both gave syntax errors


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
9 years ago
7,772 posts
this works for me:
 {jrCore_list module="jrForum" limit="10" search1="forum_cat_url like %"}
soaringeagle
@soaringeagle
9 years ago
3,304 posts
ok got it
thnx


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags