• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

sub-forums in column

TheLord

Member
clipboard02se.jpg




Templates: node_forum_level_2



find:
<xen:if is="{$renderedChildren} AND {$level} == 2">
many text here
</xen:if>

replace for:
<xen:if is="{$renderedChildren} AND {$level} == 2">
<div class="subForumsPopup" style="width:100%">

<div class="subForumsMenu">

<ol class="secondaryContent">
<xen:foreach loop="$renderedChildren" value="$child">
{xen:raw $child}
</xen:foreach>
</ol>
</div>
</div>
</xen:if>




find:
<div class="nodeInfo forumNodeInfo {xen:if '{$forum.hasNew} OR !{$visitor.user_id}', 'unread'}">
replace for:
<div class="nodeInfo forumNodeInfo">



find:
<h3 class="nodeTitle"><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}">{$forum.title}</a></h3>

replace for:
<h3 class="nodeTitle"><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}" {xen:if '{$forum.hasNew} OR !{$visitor.user_id}', 'style="font-weight: bold;"'}>{$forum.title}</a></h3>



find:
Code:
<span class="nodeIcon" title="{xen:if '{$forum.hasNew} OR !{$visitor.user_id}', '{xen:phrase unread_messages}', ''}"></span>

replace for:
Code:
 <span class="{xen:if '{$forum.hasNew} OR !{$visitor.user_id}', 'nodeIcon2', 'nodeIcon'}" title="{xen:if '{$forum.hasNew} OR !{$visitor.user_id}', '{xen:phrase unread_messages}', ''}"></span>



in node_list.css add:
.nodeIcon2
{
@property "nodeIcon";
background: transparent none no-repeat center center;
margin: 10px 0 10px 10px;
float: left;
width: 36px;
height: 36px;
@property "/nodeIcon";
background-image: url(@forumIconUnreadPath);
}

happy fun!
 
No works I can not find
Code:
<xen:if is="{$renderedChildren} AND {$level} == 2">
many text here
</xen:if>
 
No works I can not find
Code:
<xen:if is="{$renderedChildren} AND {$level} == 2">
many text here
</xen:if>
Just look for:
Code:
<xen:if is="{$renderedChildren} AND {$level} == 2">
The "many text here" just relates to the fact there is a lot of code in the if statement.
 
Didn't work for me. I'm sure I followed the instructions to a T.
Does anyone have an actual demo?
 
Added this in and it's exactly what I have been looking for, for the subforums :) however is there any way to make them go side by side of each other rather than in one big list down?

At the moment it's in one column going down and leaving a big space on the right hand side.

Thanks.
 
Top Bottom