Info
- 3 posts
- 2 voices
- Started 4 years ago by vafaaaan
- Latest reply from vafaaaan
- This topic is resolved
Create a blank page
-
- Posted 4 years ago #
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 4 years ago #
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 4 years ago #
aha .. thank you wery much!
-
You must log in to post.