The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
[Someone Please Help] Referrals on Custom Template
Can't seem to find out how to do this. How would I get the correct referral count to show up? It says the total number of users registered on the site, and I can't get it to show how many referrals the person viewing has. Basically, I want it to have the same effect as $bbuserinfo so that whoever is looking at it, it'll tell you how many referrals you have.
I have this as a plugin for it, but it's only giving me the total number of users on the site. What could I do to make it show for the person viewing how many they have? Code:
// REFERRALS if ($vbulletin->options['usereferrer']) { $refcount = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = '$vbulletin->userinfo[userid]'"); $referrals = vb_number_format($refcount['count']); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|