MyBB Community Forums

Full Version: How to get {$post['pid']} to show on usercp_latest_threads_threads template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey gang, is it possible to get {$post['pid']}, as in the post id,

to show on the usercp_latest_threads_threads template?

I think I figured it out, and it is way deeper than first imagined::: ...so within a custom plugin that calls the template via var,
I simply added p.pid and it worked

$query = $db->query("SELECT pid

so latest thread query was formulated as

$query = $db->query("
SELECT t.*, t.username AS threadusername, u.username, p.pid, lu.avatar, f.name, p.message

without a plugin, one would just add p.pid directly to the query in the file that outputs the latest threads var.