![]() |
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 |
Append 'referrerid' to register.php
|
could you elaborate on that? :D
|
Code:
http://www.yoursite.com/forum/register.php?referrerid=USERID |
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.
|
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] |
All times are GMT. The time now is 05:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|