Skip to:

Forum display rows not displaying right

  • grassrootspa


    Hey guys,

    I have a weird forum display issue and have no clue what I’m doing wrong. (My site is

    I’m trying to get the lower forum section on FrontPage.php and Forum.php to display like this:


    1) Everything seems to be working for the first 3 headings (which are standard), but the “Gravatar” and “Last Poster” seem to show up in the wrong rows (the Gravatar and Last Poster for the corresponding sections appear one row off.)

    I have no clue why this happens. It’s probably something very silly.

    Any idea what I messed up in the coding?:

    2) Also, any advice on getting the LAST POST to generate a clickable link to that post (right now the link is not clickable)

    Thanks in advance as I am stumped!

    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Forums'); ?></h2>
    <table id="forumlist">

    <th style="width:20px;"></th>
    <th style="width:660px;"><?php _e('Categories'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th style=padding:0px><?php _e('<i><b><font size=+1><font color=#a81817>!</font></font></b></i>'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Last Post'); ?></th>
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>

    <td class="num" style=padding:2px><img src='' width='30' height='20'><br></td>

    <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>
    <td class="num" style=padding:0px>
    <?php echo "<img src='".md5(bb_get_user_email($topic->topic_last_poster))."' width='24' height='24'><br>"; ?>
    <td class="num">
    <small><a href="<?php user_profile_link($topic->topic_last_poster) ?>" ><?php topic_last_poster(); ?></a></small>

    <td class="num"><a href="<?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>"><?php topic_title(); ?></td>

    <?php endwhile; ?>
    <?php endif; // bb_forums() ?>

  • You must be logged in to reply to this topic.
Skip to toolbar