News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Paid Subscription + Affilate Mod

Started by swords1, August 28, 2010, 02:20:45 AM

Previous topic - Next topic

swords1

So, I was browsing through the open source PHP code for the 'Paid Subscription' feature and was noticing... it may be quite easy to create a small mod for an 'affiliate' type of thing.

The one part that caught my eye the most is:


addSubscription($subscription_id, $member_id);


Now if we were to add an 'if' statement to check if $member_id has a referrer, then we could give the referrer a 'balance' of money somewhere. Instant payout would be awesome, but messing with more IPN stuff with PayPal seems a bit overboard. I was just thinking of creating a 'balance' in their profiles or such and when they want to cash out I will manually do it.

*I'm going to find the Referral mod script's code and see what I can't find in their to compare to $member_id*

Any help with this would be great.

If this is the wrong section, or if theres a better section for it, please move it. Thank you.
Starcraft 2 Guide [nofollow]


Oranos

You should ask a mod to move this topic either to SMF Coding discussion so that someone can help you code this, or to mod requests in order for someone to make a mod that does this for you, depending on what you're looking for.

Advertisement: