2020-01-29, 10:32 PM
(This post was last modified: 2020-01-30, 01:15 AM by Michael2014. Edited 7 times in total.)
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.
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.
Hey man, what's up?