I'm in the process of modifying Affiliates to allow my site visitors to enter an affiliate's reference code (user-16) into the Invite Code field, allowing them to register, and giving the affiliate credit.
It seems that I need to programmatically set the affiliate's cookie info. What file sets the affiliate Cookie that contains the COOKIEHASH data? I know that affiliateincludes/classes/affiliatepublic.php checks for the cookie, but I don't see any code that will generate the cookie for the user. Or at least generate the hash data I need to manually add the correct affiliate_referred_by information.