I put up a new zip with that removed.. kindof a stupid mistake on my part since I took out the top referrer bit in the display. It didnt come up on the test board since I never turned on the referrer system.
Please note, If you want to add the top referrer to your front page you can add the following code..
PHP Code:
// Set this to ids you dont want counted, seperated by , 0 for none
$norefer1="0";
// Top Referrer
if ($usereferrer) {
$topref = $DB_site->query_first("SELECT COUNT(*) AS referrals, user.username, user.userid FROM user AS users
LEFT JOIN user ON (users.referrerid = user.userid)
WHERE users.referrerid <> 0 AND
user.userid NOT IN ($norefer1)
GROUP BY users.referrerid
ORDER BY referrals DESC
LIMIT 1");
$tl_refid = $topref[userid];
$tl_refname = $topref[username];
$tl_refnum = $topref[referrals];
}
And in your vbstats_forumhome template add:
Code:
<smallfont>Top Referrer: <b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$tl_refid">$tl_refname</a></b> (<smallfont color="$tl_color1">$tl_refnum referrals!</smallfont>)
[<a href="vbstats.php?s=$session[sessionhash]&action=memberrefer">Full List</a>] [ <a href="misc.php?s=$session[sessionhash]&action=faq&page=2#referrals">Help</a> ]</smallfont>
This is not fully tested as Im about to go to lunch but it should work dandy. The non referrer top stats is in the zip sorry about the messup.