MyBB Community Forums

Full Version: Thread / post totals include subforums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to include threads and posts from sub-forums in the total for one for a parent forum?

For example, on the Index in which a board has many sub-forums with posts, but which itself does not have any posts?

At the moment totals are not displaying for child boards?

I have checked, these parent boards are not categories [within categories].

Thanks,

Ignore - this wasn't core MyBB, but I wanted to check.


// Increment forum counters with counters from child forums
				$forum['threads'] += $forum_info['counters']['threads'];
				$forum['posts'] += $forum_info['counters']['posts'];
				$forum['unapprovedthreads'] += $forum_info['counters']['unapprovedthreads'];
				$forum['unapprovedposts'] += $forum_info['counters']['unapprovedposts'];
				$forum['viewers'] += $forum_info['counters']['viewing'];