2008-08-19, 06:24 AM
When a forum has more subforums than MyBB is configured to display, and they don't all have the same display order, the "and x more" count can be wrong or not displayed at all.
For example, on a test board I have this setup:
[attachment=10629]
But when I view the index I see:
[attachment=10630]
It should say "Sub Forums: Sub 1, Sub 2, and 2 more."
Note: the Admin CP does show the correct "more" text, but only because of this bug in /admin/modules/forum/management.php:
($val should be $forum)
Funny how one bug can actually "fix" another bug...
BTW, the same $val['disporder'] bug also exists in these files due to copy-and-paste:
/admin/modules/forum/announcements.php
/inc/functions_modcp.php
For example, on a test board I have this setup:
[attachment=10629]
But when I view the index I see:
[attachment=10630]
It should say "Sub Forums: Sub 1, Sub 2, and 2 more."
Note: the Admin CP does show the correct "more" text, but only because of this bug in /admin/modules/forum/management.php:
foreach($forum_cache as $forum)
{
$forums_by_parent[$forum['pid']][$val['disporder']][$forum['fid']] = $forum;
}
($val should be $forum)
Funny how one bug can actually "fix" another bug...
BTW, the same $val['disporder'] bug also exists in these files due to copy-and-paste:
/admin/modules/forum/announcements.php
/inc/functions_modcp.php