MyBB Community Forums

Full Version: How to hide a category?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I have edited my forum and I wanna hide a catergory and just link to the catergory in a menu.

If I choose to set the forum on not active, he says the category doesnt exist, so that is impossible.

I cant close him because no1 can post a message.
How can I Hide the category (on main page), but still available to link to it?

[Image: remove.jpg]
You won't be able to do this without a Code Modification to my knowledge.
Is it not possible to change something in the database or in a sjablon?
Hi there,

Please read our guide on What qualifies for General Support.

Moving to code modifications.

Cheers,
CraKteR.
Sorry, my fault! :$

But is it possible with a few changes to make it?
Open inc/functions_forumlist.php

Find
			$plugins->run_hooks("build_forumbits_forum");

Add after

			if($forum['fid'] == x)
			{
				continue;
			}

Replace the x with the fid of the main category.
Thnx a lot! It works, if I replace the x with the fid will that categrory disappear

Youre great! thnx lex-
is it right that it doesnt work if I edit it in the new 1.2.8 file??
It still works in MyBB 1.2.8. Just tested it.
I tried again, I did something wrong, i had replace the word fid and not the X

Sorry! It works fine now, thnx :$