Thread: Referrals
View Single Post
  #6  
Old 02-02-2011, 11:01 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 29,428
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Hall of Famer View Post
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.
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote