MyBB Community Forums

Full Version: Request : auto collapsed categories
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
There is any mode/(or requesting to build) that make all the categories to be collapsed?(For guests, for registered members, and such) This is rally help's when you have more then 20 forums..
I've tried this simpel 'code-change' and it works. Can you check if it respons to your needs ? =P

Open functions_forumlist.php

Find

			if(isset($collapsed[$collapsed_name]) && $collapsed[$collapsed_name] == "display: show;")
			{
				$expcolimage = "collapse_collapsed.gif";
				$expdisplay = "display: none;";
				$expaltext = "[+]";
			}
			else
			{
				$expcolimage = "collapse.gif";
				$expaltext = "[-]";
			}

And replace it with

			if(isset($collapsed[$collapsed_name]) && $collapsed[$collapsed_name] == "display: show;")
			{
				$expcolimage = "collapse.gif";
				$expaltext = "[-]";
			}
			else
			{
				$expcolimage = "collapse_collapsed.gif";
				$expdisplay = "display: none;";
				$expaltext = "[+]";
			}