Subforums in columns (Templates edit)

by iHydra - 17-08-2015, 07:52 AM
Closed Account
Posts:
239
Joined:
Jul 2015
Likes:
11
Credits:
27
Reputation:
3
1 Year of Service
#1
OP
Posted: 17-08-2015, 07:52 AM
imma show you how to make subforums in columns without the need of a plugins ;)
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]
Novice
Posts:
36
Joined:
Jun 2015
Likes:
1
Credits:
3
Reputation:
0
2 Years of Service
#2
Posted: 24-08-2015, 04:51 PM
thanks. who to do add top margin subforum
Junior Member
Posts:
90
Joined:
Aug 2015
Likes:
6
Credits:
66
Reputation:
21
1 Year of Service
#3
Posted: 24-08-2015, 05:15 PM
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)