The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Referral variable
I need to know the variable tha writes out the nick or the id of the person whom the user typed in as Referral.
plx help i cant find this variable, btw is there a list if all vbulletin variables Somerset? thanks //Zardos |
#2
|
|||
|
|||
Append 'referrerid' to register.php
|
#3
|
|||
|
|||
could you elaborate on that?
|
#4
|
||||
|
||||
Code:
http://www.yoursite.com/forum/register.php?referrerid=USERID |
#5
|
|||
|
|||
Aaa You misinterpreted me. After a user have registered an account i want to show the name of the person the referred him in his profile, so i need to know the variable that writes out the referral.
|
#6
|
||||
|
||||
You need to add an extra MySQL query to retrieve that information.
[sql]SELECT `username` FROM `" . TABLE_PREFIX . "user` WHERE `userid` = " . $userinfo['referrerid'] . " LIMIT 1[/sql] |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|