|
This is easy as pie. Do you currently have a membership system? I'll take it upon myself to add this switch in for you if you want help on it.
If you know anything about PHP here's the concept you'll follow for two scenarios.
1. Already have a membership system.
- Add a database table called affiliates
- The table needs to have atleast two columns (aff_id, aff_code)
- Upon processing registration check to see if registration_code ='s any of the aff_codes.
2. A brand new membership system
- Create a database called whatever you want it to be
- Add atleast two rows. users and affiliates
- Add whatever information in the users table user_id, user_pass, user_referrer, etc
- Add whatever information in the affiliates table you want, but have atleast aff_id, and aff_code
- aff_id would be the locator
- aff_code would be the referrer code
- Find a tutorial on basic membership systems (Unless you know PHP) - And then when processing the form, do as before and if registration_code ='s any of the aff_codes - then add aff_id as the user_referrer
Hope this a good pointer in the right direction.
|