[vBulletin] Total Threads Made by User

Status
Not open for further replies.

Exel

Active Member
2,074
2008
543
100
rT7H6.png


Product: vBulletin
Hook Location: global_start
Title: Total Threads Made by User
Execution Order: 5
Plugin PHP Code:
PHP:
$querythread = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "thread WHERE postuserid = " . $vbulletin->userinfo['userid'] . " AND visible = '1'");
// Brought to you by Exel from Elite-Source.com
$totalthread = vb_number_format($querythread['count']);
Template code (Add it wherever you want it to show):
Code:
<b>Threads:</b> <a href="search.php?do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">$totalthread</a>
 
Status
Not open for further replies.
Back
Top