Here is my fix. (EDIT: This is for 3.5.x) I liked it so much, I just did it without checking the version. I'll post up the 3.0.7 fix too in a bit.
Add a hook at "usercp_complete".
PHP Code:
// REFERRALS
$refcount = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE referrerid = '".$vbulletin->userinfo['userid']."'");
$referrals = vb_number_format($refcount['count']);
Edit the phrase "refid_usercp".
PHP Code:
<p>Please help us spread the word about "{1}". When referring others to the community you can use the link below which includes your unique referral ID.</p>
<p>Each time someone follows this link to {1} and registers as a new member, your referral count will be incremented by one. The number of referrals you have can be viewed in your <a href="{2}"><strong>{3}</strong></a> by other members and guests. You currently have <strong>{6}</strong> referrals.</p>
<p>Please be courteous when promoting {1} by not spamming other web sites with your referral link just to gain referrals.</p>
<fieldset id="referrallink"><legend>Referral Link for {4} </legend>{5}</fieldset>
Edit the template for this referal hack.
PHP Code:
<!-- ############### REFERRALS ############### -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"
style="background-color:white">
<thead>
<tr>
<td class="tcat">
<a style="float:right" href="#top" onclick="return toggle_collapse('referral')"><img id="collapseimg_referral" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_referral].gif" alt="" border="0" /></a>
$vboptions[bbtitle] $vbphrase[referrals]: <strong>$referrals</strong>
</td>
</tr>
</thead>
<tbody id="collapseobj_referral" style="$vbcollapse[collapseobj_referral]">
<tr>
<td class="alt1" align="left" width="100%">
<phrase 1="$vboptions[bbtitle]" 2="member.php?$session[sessionurl]do=getinfo&userid=$bbuserinfo[userid]" 3="$vbphrase[profile]" 4="$bbuserinfo[username]" 5="$vboptions[bburl]/index.php?referrerid=$bbuserinfo[userid]" 6="$referrals">$vbphrase[refid_usercp]</phrase>
</td>
</tr>
</tbody>
</table>
<br />
<!-- ############# END REFERRALS ############# -->
Thanks for a cool hack.