Quote:
Originally Posted by Boofo
Not without adding a query for every post.
|
Thats fine. Thats not an issue for me.
I tried this as a plugin that hooks in to the posrbit_display_start:
(slightly modified from the plugin thats in vb 3.8.x
Code:
usersid = $this->post['userid'];
$refcount = mysql_query("SELECT username FROM " . TABLE_PREFIX . "user WHERE referrerid='$usersid'");
$referrals = mysql_num_rows($refcount);
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt>Referrals</dt><dd> '. $referrals.'</dd>';
But i soon realized that I'm in way over my head with this