Forums

Join
bbPress Support ForumsThemesCreate a blank page

Info

Tags

Create a blank page

  1. what do i need to do that?

    <?php
    /*
    	Page Name: Highest rated
    	2007-11-29 14:47:26
    */
    $sidebar_area = "forum";
    // $sidebar_ibox = "topic";
    require_once('./bb-load.php');
    bb_get_header();
    ?>
    <div id="content" class="narrowcolumn">
    	<h2>Most highly rated topics</h2>
    	<?php
    	// Display top rated
    	bb_top_topics();
    	?>
    </div>
    <?php
    bb_get_footer();
    ?>

    Cant display topics so something is missing..

  2. You need to format the return array of bb_top_topics() on your own.

    <?php
    /*
        Page Name: Highest rated
        2007-11-29 14:47:26
    */
    $sidebar_area = "forum";
    // $sidebar_ibox = "topic";
    require_once('./bb-load.php');
    bb_get_header();
    ?>
    <div id="content" class="narrowcolumn">
        <h2>Most highly rated topics</h2>
        <table id="latest">
            <tr>
                <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
                <th><?php _e('Posts'); ?></th>
                <th><?php _e('Last Poster'); ?></th>
                <th><?php _e('Freshness'); ?></th>
            </tr>
    <?php if ( $topics = bb_top_topics() ) : foreach ( $topics as $topic ) : ?>
            <tr<?php topic_class(); ?>>
                <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
                <td class="num"><?php topic_posts(); ?></td>
                <td class="num"><?php topic_last_poster(); ?></td>
                <td class="num"><small><?php topic_time(); ?></small></td>
            </tr>
    <?php endforeach; endif; ?>
        </table>
    </div>
    <?php
    bb_get_footer();
    ?>
  3. aha .. thank you wery much!

  4. You must log in to post.