MyBB Community Forums
[new] 2 column subforums for MyBB with CSS - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [new] 2 column subforums for MyBB with CSS (/thread-32008.html)

Pages: 1 2 3


[new] 2 column subforums for MyBB with CSS - arno - 2008-05-31

Author: Blackinci

It is more useful than the plugin that it does. It doesnt run any MySQL quieries...

Please follow the steps which are below:
Admin CP=> Templates=> Edit/Delete=>The Theme that you use => Forumbit Templates => forumbit_depth3 Open:

Replace with:
<li>{$statusicon}<a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></li>


Admin CP=> Templates=> Edit/Delete=>The Theme that you use=>Forumbit Templates=> forumbit_subforums Open:
Replace with:
<br />{$lang->subforums}<br /><ul class="alt_forumlar">{$sub_forums}</ul>


Now, css codes are being added:

Admin CP=> Themes=> Edit/Delete=> Theme that you use => Additional CSS
.alt_forumlar {list-style: none; margin: 0; padding: 0;}
.alt_forumlar li {width: 50%; float: left;}


That's all.

Original Post: http://www.blackinci.com/mybb/35-css-ile-alt-forumlar-iki-blok-halinde.html


RE: [new] 2 column subforums for MyBB with CSS - ageskoch - 2008-06-01

thanks arno. Wink (cellulari)


RE: [new] 2 column subforums for MyBB with CSS - SaeedGh - 2008-06-01

Wow! thnx Wink


RE: [new] 2 column subforums for MyBB with CSS - SaeedGh - 2008-06-01

also you can change "50%" in "alt_forumlar" class to build more than 2 columns.
put after ".alt_forumlar li {width:" result of this calculation:
100 / number of columns

for example with this code you have 3 columns:

.alt_forumlar li {width: 33%; float: left;} /* 100/3 = 33 */


RE: [new] 2 column subforums for MyBB with CSS - sadiqsaad - 2008-06-01

Thx works great Smile


RE: [new] 2 column subforums for MyBB with CSS - arno - 2008-06-02

@saeedgh: Yes you can change width and there will be more than 2 column.

by the way, this is the original post: http://www.blackinci.com/mybb/35-css-ile-alt-forumlar-iki-blok-halinde.html


RE: [new] 2 column subforums for MyBB with CSS - Jag100 - 2008-06-04

Very nice Smile


RE: [new] 2 column subforums for MyBB with CSS - aglioeolio - 2008-06-04

it there any demo forum with this working?

nevermind I understand now

[Image: 1212096066_altforum.png]

Thanks for this tip


RE: [new] 2 column subforums for MyBB with CSS - spinning - 2008-06-04

It would be great that you can chose wich subforums will be showed and wich one not.
I do not wanne show every subforums.


RE: [new] 2 column subforums for MyBB with CSS - arno - 2008-07-20

(2008-06-04, 01:40 PM)spinning Wrote: It would be great that you can chose wich subforums will be showed and wich one not.
I do not wanne show every subforums.

it can be added a selection like "show on index page or forumbit" at forum editing in admin cp...