What would be the best way to add a new PHP clause to my Referral script.

Currently I have heavily modded the Affiliate/Referral script. Now this is not important as the script functions completely as expected. Currently when a member shares their referral link they are awarded points upon a new visitor signing up. Simple.

Now what I would like to add is what they are referring them too.

(example) My site will host campaigns that will be added by users. Other users can refer new users to view this campaign via their referral link.

I would like to have the referral link be unique to the campaign but also add the users referral id.

So something like this hxxp://mysite.com?campid=1234; refersid= 5678

So the referrer will have a overall stat of how many referrals they have done , as well as a stat for how many referrals they have done for each campaign.

The list would read something like this:

User Name: 5678

Total referrals: 260

Make a wish camp: 60 referrals
Stocket Camp: 110 referrals
Twizix Design Camp: 90 referrals

I hope I have indicated well enough what I am asking for. If not clear enough please let me know. Thanks in advance.

Sponsor our Newsletter | Privacy Policy | Terms of Service