MyBB Community Forums

Full Version: Hide forum on index
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Looking for something to hide a category/forum on index but still be accessiable by a link. Saw some other plugins but they dont work.
Something like this could solve your issue: https://community.mybb.com/thread-124696...#pid901896
Here is a quick core edit to achieve the same:

First create a new setting in ACP as per the following details:

[Image: Untitled.png]

Click "Insert New Setting" button at the bottom.
Now you will get a new settings under "ACP > Configuration > Settings > Forum Display Options"

Enter the forum IDs you want to hide (separated by comma):

[Image: Untitled.png]

Settings part over.
Now open the file: inc/functions_forumlist.php, go to line 37, find this line:

$donecount = 0;

Add after that:

$hideonindex = array_filter(array_unique(explode(',', $mybb->settings['hideonindex'])));

Find line no 43 / 44
        foreach($parent as $forum)
        {

Add after that:

if(!in_array($forum['fid'], $hideonindex)) {

Lastly, go to line 452, find closing brace } and add another closing brace } after that.

Save the file. If you have done the modifications locally then reupload and replace the file with modified one using FTP.

If you have done everything correctly you will get the desired result. Let me know if you need further help.
Thanks effone! I just used your guide and it worked perfect.

Thank you!