MyBB Community Forums

Full Version: Global Referral Count Variable?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Trying to use the referral count variable on a global page but can't figure out what variable to use or if it works outside of profiles. Any help. Thanks.


On profiles it's
{$referral_count}

Tried doing:
{$mybb->user['referral_count']}

Never mind was referring to the wrong one.

If anyone wants to display a users referral count outside of their profile, use:
{$mybb->user['referrals']}
Glad you got this sorted. Will mark this as solved for now! Smile