PDA

View Full Version : Subaffiliate cookies


Bjorn StudentUniverse
11th January 2005, 06:13 PM
Hello there,

Thank you for a great product. I am using Post Affiliate Pro. I have a small problem though:

When a user clicks an affiliate product banner ad and applies to become an affiliate, this user is automatically registered as a subaffiliate under the affiliate for whom he clicked through. My desired behavior would be that this only happened if 1) the user came through the http://www.yoursite.com/affsignup.php?pid=XX link OR 2) the user inserted the ID of the referring affiliate in the "ID of Affiliate who Referred you" field in the signup form.

Is there any way I can get there with the current version?

Thanks,
Bjorn

mark
12th January 2005, 11:37 AM
Hello,

this is normal behavior. You can remove this functionality by editing the file /scripts/SignupUser.class.php

and removing or commenting the lines

if($pparentaffiliateid == '')
$pparentaffiliateid = $this->checkCookie();


then it should not take value from the cookie, only passed or directly entered by the affiliate.

regards,

mark