Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: prevent bump to top when new replies are submitted?


deadlyhifi
Participant

@tomdebruin

I do this on one of my forums (a classified forum that I didn’t want users ‘bumping’ on constantly.) Just add

<?php
if ($forum_id == 3) {
$limit = bb_get_option('page_topics');
$offset = ($page-1)*$limit;
$forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id AND topic_status = 0 AND topic_sticky = 0 ORDER BY topic_id DESC LIMIT $limit OFFSET $offset");
$forum_one_topic_posts = get_thread( $topic->topic_id);
$topics = $forum_one_topics;
}
?>

to the top of the forum.php file in your template. Take out the if ($forum_id == 3) { and trailing } if you want to apply it to all your forums.

To show topic creation date instead of freshness replace topic_time(); with get_topic_start_time(); in the forum.php, and front-page.php template files – though I haven’t tested that bit.

Skip to toolbar