MyBB Community Forums

Full Version: How to make "Latest Threads" display the most recently-created threads?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
By default, the "Latest Threads" is actually just a list of the most recently replied-to threads. How can I make it actually display the most recently-created threads regardless of when they were last replied to?

Hopefully that makes sense.

I'm basically trying to set up two boxes: one for the most recently-created threads and one for the threads which contain the most recent replies. The latter is already taken care of by default.

Thanks.
Bump! Wink
* Matt bookmarks
Hmm, well I'm not too sure how to go about changing it without looking at the files (server's down right now), but the query should be simple enough.

$options = array(
     "order_by" => "dateline",
     "order_dir" => "DESC",
     "limit" => 10,
     "limit_start" => 0
);
$query = $db->simple_select("threads", "*", "1=1 GROUP BY dateline", $options);

while($thread = $db->fetch_array($query))
{
     // This will be a loop of 10 of the latest threads made
}
where can I put those code to?