MyBB Tutorials

Subforums in columns (Templates edit)

Submitted by iHydra, , Thread ID: 9013

Thread Closed
17-08-2015, 07:52 AM
#1
imma show you how to make subforums in columns without the need of a plugins Wink
lets start ...

1- go into your admincp -> your skin templates -> Forum Bit Templates
we gonna edit those 3 templates:
forumbit_subforums
forumbit_depth3_statusicon
forumbit_depth3

Open forumbit_subforums and replace all contest with this:
Code:
<style>
.alt_sbc {
    list-style: none;
    margin: 0;
    padding: 0;
}
.alt_sbc li {
    width: 50%;
    float: left;
}
</style>

<ul class="alt_sbc">{$sub_forums}</ul>

Open forumbit_depth3_statusicon and add an <li> before the code, like this
Code:
<li><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="subforumicon ajax_mark_read" id="mark_read_{$forum['fid']}" />

Open forumbit_depth3 and replace everything with is:
Code:
{$statusicon}<a href="{$forum_url}" title="{$forum_viewers_text_plain}">{$forum['name']}</a></li>


[Image: 4CDJURH.png]

RE: Subforums in columns (Templates edit)

#2
thanks. who to do add top margin subforum

RE: Subforums in columns (Templates edit)

#3
Thanks for the instruction !
[Image: kSoqV6.png]

Users browsing this thread: 2 Guest(s)