• 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.

forums in columns

If you add this in node_list.css
Code:
.sectionMain {
    width:100%;
}
.level_2 {
    float:left;
    width:33%;
    clear:none;
}

also change this in node_list.css:
Code:
.node .nodeText
{
    @property "nodeText";
    margin: 10px 270px 10px 56px;
    @property "/nodeText";
}

to
Code:
.node .nodeText
{
    @property "nodeText";
    margin: 5px 5px 5px 5px;
    @property "/nodeText";
}

It will display the forums in 3 columns (change 33% the way you want it to show). Only thing is, I suck at CSS styling and well, the forum list styling becomes bad. If anyone can make it look better/patch up the CSS, it will be much appreciated.

I would also recommend removing:
Code:
        <div class="nodeLastPost secondaryContent">
            <xen:if is="{$forum.lastPost.date}">
                {xen:phrase latest}: <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{xen:helper wordTrim, $forum.lastPost.title, 30}</a>
                <span class="lastThreadMeta"><xen:username user="$forum.lastPost" />, <xen:datetime time="$forum.lastPost.date" class="muted" /></span>
            <xen:else />
                <span class="noMessages muted">({xen:phrase contains_no_messages})</span>
            </xen:if>
        </div>

from node_forum_level_2
 
If you add this in node_list.css
Code:
.sectionMain {
    width:100%;
}
.level_2 {
    float:left;
    width:33%;
    clear:none;
}

also change this in node_list.css:
Code:
.node .nodeText
{
    @property "nodeText";
    margin: 10px 270px 10px 56px;
    @property "/nodeText";
}

to
Code:
.node .nodeText
{
    @property "nodeText";
    margin: 5px 5px 5px 5px;
    @property "/nodeText";
}

It will display the forums in 3 columns (change 33% the way you want it to show). Only thing is, I suck at CSS styling and well, the forum list styling becomes bad. If anyone can make it look better/patch up the CSS, it will be much appreciated.

I would also recommend removing:
Code:
        <div class="nodeLastPost secondaryContent">
            <xen:if is="{$forum.lastPost.date}">
                {xen:phrase latest}: <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{xen:helper wordTrim, $forum.lastPost.title, 30}</a>
                <span class="lastThreadMeta"><xen:username user="$forum.lastPost" />, <xen:datetime time="$forum.lastPost.date" class="muted" /></span>
            <xen:else />
                <span class="noMessages muted">({xen:phrase contains_no_messages})</span>
            </xen:if>
        </div>

from node_forum_level_2
Result: (no bad)

2.webp
 
Is there any way to make this work for level_1 as well? I've tried getting this to work on level_1 but thus far, level_2 ends up looking terrible.
 
It works, but the only problem is, if i have more then 3 forums, it goes all messed up..

2dmh6jk.png
 
Top Bottom