Create the following plugin:
Product: vBulletin
Hook Location: postbit_display_complete
Title: Get the number of threads started by a user
Execution Order: 5
Plugin PHP Code:
PHP Code:
global $db, $vbulletin;
$user_threads = $vbulletin->db->query_read("
SELECT COUNT(*) AS thread_count
FROM " . TABLE_PREFIX . "thread AS thread
where postuserid = " . $post['userid']
);
$user_thread = $db->fetch_array($user_threads);
$post['threads'] = $user_thread['thread_count'];
Plugin is Active: Yes
Click "Save".
Now, in your postbit template (whichever you use), you can use {vb:raw post.threads} to display the number of threads started by users.