Ok I'm re-surfacing this thread because I need some help.
I have created a plugin in the Postbit_display_start hook with this code;
PHP Code:
$stories = $this->registry->db->query_first("
SELECT count(threadid) AS num
FROM vbthread AS thread
WHERE
( forumid = 57 or
forumid = 58 or
forumid = 59 or
forumid = 60 or
forumid = 61 or
forumid = 62 or
forumid = 63 ) and
postuserid = " . $post['userid'] . "
");
And then I use the variable
$stories[num] inside my postbit template to display the result (the result is all the threads a user has started in specific forums). This part is working fine (I only have a small forum so no delay problems)
The thing is, I want to display the same information in the MEMBERINFO page, anyone know how to do that? I suppose I have to add the variable to another hook as well?