Info
- 3 posts
- 2 voices
- Started 4 years ago by warmechoco
- Latest reply from Phayze
subforums taking a lot of space
-
- Posted 4 years ago #
Hi,
I would like to work with subforums and sub-sub forums,
but obviously that takes a lot of room on my front page..
Does anyone have the same problem and has a solution for that?I suggest doing something like this:
Forum
- Subforum1
--Subsubforum1, Subsubforum2, Subsubforum3, Subsubforum4
-Subforum2
--Subsubforum1,Subsubforum2does anyone know how to? :)
thx!
-
- Posted 4 years ago #
anyone? :(
-
- Posted 4 years ago #
Someone pointed me to this:
<?php while ( bb_forum() ) :
global $bb_forums_loop;
$_loop =& $bb_forums_loop;
if($_loop->walker->depth >= 2) : ?>
<tr<?php bb_forum_class(); ?>>
<td colspan="3" class="subforums"><?php bb_forum_pad( '<div class="nest">' ); ?>Subforums:
<?php
while ($_loop->walker->depth > 1) :
if($_loop->walker->depth > 2) {
bb_forum();
continue;
}
?>
"><?php forum_name(); ?><?php
bb_forum();
if ($_loop !== null && $_loop->walker->depth > 1)
echo ', ';
endwhile;
?>
</td>
</tr>
<?php endif; ?>
<?php if ($_loop !== null) : ?>
<tr<?php bb_forum_class(); ?>>
<td class="topic"><?php bb_forum_pad( '<div class="nest">' ); ?>"><?php forum_name(); ?>
<?php forum_description();?><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endif; endwhile; ?> -
You must log in to post.