bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Create a blank page

(3 posts)
  • Started 11 months ago by vafaaaan
  • Latest reply from vafaaaan
  • This topic is resolved

Tags:

  1. vafaaaan
    Member

    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..

    Posted 11 months ago #
  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();
    ?>
    Posted 11 months ago #
  3. vafaaaan
    Member

    aha .. thank you wery much!

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.