Skip to:
Content
Pages
Categories
Search
Top
Bottom

Create a blank page

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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();
    ?>

    aha .. thank you wery much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar