Let forum.php also show topic content
-
Hi,
Currently forum.php only shows the topic titles in the forum. I want to extend it a little bit and let it also show the content of the first topic. Example:
Current:
Title 1 (I have a problem)
Title 2 (I hate bananas)
etc
What I want:
Title 1 (I have a problem)
Hi guys, can you help me with my problem?
Title 2 (I hate bananas)
I hate bananas and you? I really hate the taste!
etc
Current forum code:
<?php
require_once('./bb-load.php');
$forum_id = 0;
bb_repermalink();
if ( !$forum )
bb_die(__('Forum not found.'));
$bb_db_override = false;
do_action( 'bb_forum.php_pre_db', $forum_id );
if ( !$bb_db_override ) :
if ( $topics = get_latest_topics( $forum_id, $page ) ) {
bb_cache_last_posts( $topics );
}
if ( $stickies = get_sticky_topics( $forum_id, $page ) ) {
bb_cache_last_posts( $stickies );
}
endif;
bb_load_template( 'forum.php', array('bb_db_override', 'stickies'), $forum_id );
?>Seems that thread must be added some where and then only from the first topic (so no replies else it gets too big)
Any ideas? Also the template should be updated I think.
Kind regards,
- You must be logged in to reply to this topic.