Quote:
Originally Posted by Jay...
|
Quote:
Originally Posted by Loco.M
nice hack, I agree .. I would want the font a little smaller to match
|
Change that
HTML Code:
<br />Referrals: $refferals
to:
HTML Code:
<br /><div class="smallfont">Referrals: $referrals</div>
This should work.
Quote:
Originally Posted by Surviver
This Hack adds 1 Query to echt post in showthread.php. That isn?t good for the performace (You can get problems if your Server is slow).
|
A suggestion would be better.
Quote:
Originally Posted by Ken Iovino
I would suggest using vBulletins database class to do this.
PHP Code:
$refcount = $db->query_first_slave("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = $this->post[userid]");
$referrals = vb_number_format($refcount['count']);
Would be more efficient. 
|
I used that before but there were some errors so I changed it. Thanks for the information.