Quote:
Originally Posted by Hall of Famer
oh my badness, I replied just by looking at the thread title.
Yeah this can be done, you will need to add a new textbox called 'Referrer' in register.php, insert two new column 'Referrer' and 'Referrals' in prefix_users table, and then the script should check if the entered referrer's name matches any existing user's name. The value 'Referrals' is initiated as 0, and it increments whenever a referred user signs up. You can play the game further by adding cash or even items for the referrers.
|
You'll need to run a query to check to see if the person they wrote down as a referer is actually a member. Also, having the new email check query in the registration will help make sure people don't abuse the referal system.