MyBB Community Forums

Full Version: showing up the subforums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I see in this forum that the subforums under the forums are showed (on the indexpage)
exaple

BUG REPORTS
o Archived - MyBB 1.2.8, o Duplicate and Bogus Reports

How do I do this and is it possible to add only a few of the subforum under the forum.
ACP - Board Settings - Change - Forum Home Options - Subforums to show on Index listing
This is not possible to do it only for one forum????
When I do this with this function all forums will get subforums.
With a codemodification in ./inc/functions_forumlist.php its possible. And why do you guys always have such a weird requests ^^


Edit :

Open ./inc/functions_forumlist.php

Find
			// Fetch subforums of this forum
			if(isset($fcache[$forum['fid']]))

Replace by
			$fids = array(2,3);
			if(isset($fcache[$forum['fid']]) && !in_array($forum['fid'], $fids))

Note; Change the $fids array with the FIDS where you don't want to show the Subforums.
For my forum it is not weird, one of the forums has got 18 subforums, a bit to much to show.
And for some of the forums it is for me not important so show subforas.
Sorry did not work

I changed it to this
$fids = array(2,3,4,5,6,7,8,9,10);
if(isset($fcache[$forum['fid']]) && !in_array($forum['fid'], $fids))

In forum home options, Subforums to show on Index listing 5

What happens all forums on the indexpage get subforums AND
all forums with childforums (with less as 5 are gone)
spinning Wrote:What happens all forums on the indexpage get subforums

Provide me a link, cause on mine it works ... [ http://thingiej.be/mybb/ , all forums have a subforum but only of 1 its been shown on the index ] [ $fids = array(2,3); ]
That aren't FIDs of Forums, but of Categories ... ( im talking about your $fids array )
I called them forum, childforum and then subforum
but you see what I mean so I can change it back.
Pages: 1 2