MyBB Community Forums

Full Version: Confused, please explain
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
forumbit_depth2_cat and and forumbit_depth2_forum.

Both of them are identical
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

Any explanation please? (I know I opened a similar thread in the past but for some reason the MyBB staff had nothing to say about this).
They are used in different circumstances; for when a forum is a category or when it is a forum, or if it is a category inside of a forum etc. They are identical because of the way MyBB works sub-forums, it is difficult to gather the depth and use the same template.
Now I see Smile I said it's confusing because the forumbit_depth1_cat template is totally different from the forumbit_depth2_cat. I would have thought that both are the same but the first for the index page and the latter for the forumdisplay page, when you click a category. That was my understanding of depht1 and depht2.

Thanks for clearing this up.