This script will be an addition to a current community site. The member referral system is a 4 part setup, nothing to complex. Below is a brief overview of each part.
1: user referral link [url removed, login to view] this will load the registration page pass a cookie to the users computer (to prevent multiple registrations), and fill-in the Referred By textbox.
2: registration page edit... Referred By: textbox new members can enter a username manual if not signing up through a referral.
3: user view, show total referrals, total male & females, pending approval etc. basically showing how many people they've referred. this will pull info from the newly created tbl_referral table. refer points will be given for each signup.
4: admin view, shows overall totals (reads the tbl_referral info) show todays referral, lookup/search the fields in tbl_referral, delete option
thats it's... so its not all that difficult once the new user signs up all the referring info is saved to the new table and the user view and admin section will just retrieve the various info for display. the only section that will require any real thought would be the referral points setup... this will be explained. simple but requires multiple checks.
I will not give full access to my server/site so you will need to be able to create this as a standalone and i'll insert where need. I'll give a detailed description of table / field info to make integrate easier.