MyBB Community Forums

Full Version: Updating lastpost in the forum table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a script which manually creates new threads.

(I posted the code here)

The problem is that after the script creates a new thread the lastpost, lastposter, and lastposttid in the forums table are not updated. Where in the mybb codebase are these values updated?

I want to look at some example code to see how I should go about doing it. Thank you!
It should be in the updateforumcount function (look in inc/functions.php). I believe that updates the last poster columns and the forum count.