Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How Do I Do This?


livibetter
Member

@livibetter

Is this? screenshot1

The structure of forums: screenshot2

Modification for Kakumei theme:

Find <?php if ( bb_forums() ) : ?> to <?php endif; // bb_forums() ?> (Total: 19 lines) in front-page.php.

Replace them with:

<?php
if ( bb_forums() ) :
global $bb_forums_loop;
$_loop =& $bb_forums_loop;
bb_forum();
while ($_loop) :
if ($_loop->walker->depth == 1) {
?>
<h2<?php bb_forum_class?>><?php forum_name(); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e('Main Theme'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php
}
else {
?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php
}
bb_forum();
if ($_loop === null || $_loop->walker->depth == 1)
echo '</table>';
endwhile; ?>
<?php endif; // bb_forums() ?>

Skip to toolbar