MyBB Community Forums

Full Version: Sub-Forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to not display sub-forums on the main index page?
But if you click on the forum section with a sub-forum, you can only see it inside the forum section and not on the main index page.

If you get what I mean Wink?
Thanks.
Go to Admin CP > Configuration > Settings > Forum Home Options > Subforums to show on Index listing. Set it to 0.
I just want certain sub-forums to be hidden.
Until you click the board and you can see the sub-forum inside only.
You'll probably need a plugin for that, which doesn't exist yet I think.
Yes, I know this seems to be my answer to everything - but you could use XThreads - XThreads makes it possible to set an Index Forum bit template per category and forum. So you could use it to have certain forums have the subforums hidden and others not.

Or you can hide it on Index AND Forum display by default

It also does many other cool things Big Grin
Or you can wrap {$subforums} variable in forumbit_depth2_forum template with span or div tag and assign a class and category id like this

Quote:<span class="subforum_hidden" id="subforum_{$forum['fid']}">{$subforums}</span>


and in global.css add

.subforum_hidden {
display:none; /*This will HIDE all subforums*/
}

#subforum_x {
display:block !important; /This will SHOW subforums in particular category*/
}

Where x is category id.