moman
17-05-10, 20:55
I have a custom modification that shows recent user posts in the user cp based on these two queries:
$getposts = $db->query_read("SELECT distinct b.threadid FROM ". TABLE_PREFIX . "post a, ". TABLE_PREFIX . "thread b WHERE a.userid = " . $vbulletin->userinfo['userid'] . " AND b.visible = 1 AND a.threadid = b.threadid ORDER BY a.postid DESC LIMIT 5");
Then based off of that query's thread id,
$getthreadid = $db->query_read("SELECT * FROM ". TABLE_PREFIX . "thread WHERE threadid = $tid");
When we print this thread's title from the database, the langtitle tag is not parsed. Is there a function I can require + invoke in the plugin on the title in order to parse it?
$getposts = $db->query_read("SELECT distinct b.threadid FROM ". TABLE_PREFIX . "post a, ". TABLE_PREFIX . "thread b WHERE a.userid = " . $vbulletin->userinfo['userid'] . " AND b.visible = 1 AND a.threadid = b.threadid ORDER BY a.postid DESC LIMIT 5");
Then based off of that query's thread id,
$getthreadid = $db->query_read("SELECT * FROM ". TABLE_PREFIX . "thread WHERE threadid = $tid");
When we print this thread's title from the database, the langtitle tag is not parsed. Is there a function I can require + invoke in the plugin on the title in order to parse it?