Solved: 5 Years ago How to get {$post['pid']} to show on usercp_latest_threads_threads template?
#1
Solved: 5 Years ago
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.
Hey man, what's up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)