The Arcive of vBulletin Modifications Site. |
|
Where is the $referrals Details »»
|
|||||||||||||||||||||||||
Okay, I'm slightly confused and pretty much peeved. I don't have time to delve into this code much more than I already have. I see on my profile on my site that I have 4 referrals. I have not made any link referrals anywhere so these referrals have to be coming from somewher.
1. Where is the existing code to add referrals to the database? I can write code from scratch to do what I WANT it to do, but I'd rather work within the vB framework if for no other reaosn so I don't get my wires crossed. 2. Theres a tempolate variable, $referrals, in my getinfo template. This is the portion that displays the referral count in my profile. This appears to be a reference to the getinfo_referrals template. So in THAT template, there is a call to $referrals again. WHERE is this variable defined? Thanks for helping me sort this. Sketch Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
its defined in member.php
|
|
#3
|
|||
|
|||
|
thanks, now if I can just get home to be able to FTP I'd be set.
|
|
#4
|
||||
|
||||
|
Code:
// Get referrals
if ($usereferrer) {
if ($backcolor=="{firstaltcolor}") {
$backcolor="{secondaltcolor}";
$bgclass = "alt2";
} else {
$backcolor="{firstaltcolor}";
$bgclass = "alt1";
}
$refcount = $DB_site->query_first("SELECT count(*) AS count
FROM user
WHERE referrerid = '$userinfo[userid]'");
$referrals = $refcount[count];
eval("\$referrals = \"".gettemplate("getinfo_referrals")."\";");
} else {
$referrals = '';
}
|
|
#5
|
||||
|
||||
|
chen you shoul disable parsing of replacements in posts, ist a problem as you can see
![]() also in txt attachments... |
![]() |
|
|