Addon has been completed, tested, and now works! Someone send me e-mails saying that the $bbuserinfo var holds all the information in the User table for the current user.... I tried adding another un-needed query...
Anyways, here's the addon, just replace the PHP and the template, and run this SQL query:[sql]ALTER TABLE `user` ADD `referrals_sent` SMALLINT UNSIGNED DEFAULT '0' NOT NULL ;[/sql]
Once this addon is installed, you can show the current number of
sent referrals on any vB page with
$bbuserinfo[referrals_sent]
Enjoy!