MyBB Community Forums

Full Version: sub-forums in columns
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Using this hack http://mods.mybb.com/view/subforumsincolumns ( sub forums in columns ),
it has 1 setting for amount of COLUMNS you can choose BOARD-WIDE
The amount of COLUMNS you choose in the admin-settings affects ALL FORUMS sub-forums.

I would like it to be INDIVIDUAL FORUM based total columns,
Some FORUMS sub-forums could be 3 columns, and a different FORUMS sub-forum can be in 4 columns, etc.


The way sub-forums-in-columns is on PHPBBs MOD version.
( see below-attached image of what I want to do )

[Image: soZUzLI.png]

T.I.A.

*if there's another MOD that does this, please link me to it.
** Or if someone wants to make a NEW MOD, please do Smile
Maybe this can be moved to plugin request forum..........

T.I.A.
Moved to plugin requests.
awaits this for 1.6 and 1.8
Been a looong time before we get this for 1.8 might downgrade :/
Sounds pretty simple to do, though. I might be able to do this in the next week or so.
ok ok go
Using the following:
http://community.mybb.com/thread-167098.html

Should be possible. Find:
static $subforums_count = null;

Add before:
		$columns_row_count = 3;
		if($pid == 1) // 1 is the category FID
		{
			$columns_row_count = 2;
		}

Then change:
                    if($column_count % 3 == 0 || $column_count % 3 == $subforums_count && $subforums_count < 3)
                    {
                        if($column_count % 3 == 0)
                        {
                            $subforums_count -= 3;

To:
                    if($column_count % $columns_row_count == 0 || $column_count % $columns_row_count == $subforums_count && $subforums_count < $columns_row_count)
                    {
                        if($column_count % $columns_row_count == 0)
                        {
                            $subforums_count -= $columns_row_count;
.....