MyBB Community Forums

Full Version: How to make it so that subforum isn't shown in specific forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering how to make it so that subforums aren't shown in specific forum on my board. How could i do this?
You mean the little list that shows in the row for each forum on the index?? There's a setting in the Forum Home Options to disable that.
(2010-05-08, 05:22 PM)MattRogowski Wrote: [ -> ]You mean the little list that shows in the row for each forum on the index?? There's a setting in the Forum Home Options to disable that.

yeah but i only want it disabled for one section. is this possible?
Not without a plugin or code modification. Try this, line 155 of ./inc/functions_forumlist.php:

else if($depth == 3)

to:

else if($depth == 3 && $forum['fid'] != X)

Change X to the ID of the forum.
(2010-05-08, 05:51 PM)MattRogowski Wrote: [ -> ]Not without a plugin or code modification. Try this, line 155 of ./inc/functions_forumlist.php:

else if($depth == 3)

to:

else if($depth == 3 && $forum['fid'] != X)

Change X to the ID of the forum.

Rolleyes worked perfect.
but what if I in fact wanted to add 2 forum id's?
else if($depth == 3 && !in_array($forum['fid'], array('1','2','3','4')))

Add/remove as necessary.
(2010-05-08, 06:07 PM)MattRogowski Wrote: [ -> ]
else if($depth == 3 && !in_array($forum['fid'], array('1','2','3','4')))

Add/remove as necessary.

You are my hero Big Grin
thank you so much