The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is it possible to show the user names of users that someone has referered to the site in their profile?
thanks |
#2
|
|||
|
|||
Code:
$referrers = DB_site->query("SELECT username,userid FROM user WHERE referrerid='X'"); echo("$bbuserinfo[username] has referred these users: "); while ($referrer = mysql_fetch_array($referrers)) { ++$i echo("<a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$referrers[userid]\">$referrers[username]</a>"); if ($i < mysql_num_rows($referrers)) { echo(", "); } } echo("."); |
#3
|
|||
|
|||
hey thanks
now i'll have fun trying to implement it! |
#4
|
|||
|
|||
Sorry. Wasn't thinking.
In member.php, find Code:
if ($userinfo[yahoo]!="") { eval("\$userinfo[yahooicon] = \"".gettemplate("yahoo")."\";"); } else { $userinfo[yahoo]=" "; } Code:
$referrers = DB_site->query("SELECT username,userid FROM user WHERE referrerid='X'"); $userreferrals = "$bbuserinfo[username] has referred these users: "); while ($referrer = mysql_fetch_array($referrers)) { ++$i $userreferrals .= "<a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$referrers[userid]\">$referrers[username]</a>"; if ($i < mysql_num_rows($referrers)) { $userreferrals .= ", "; } } $userreferrals .= "."; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|