Affiliate system for members don't work in clean 0.4 Tested it multiple times. Anyone can verify this?
Affiliate system for members don't work in clean 0.4 Tested it multiple times. Anyone can verify this?
Hi
Can you provide steps what you did, so that i can reproduce whatever error there was.
Thanks!
Moydi
oke.
Well i logged in as a member, send 5 emails to 5 test-emailaddresses after i set up the amounts for affilates as members, 5 members - 5 days gold, 10 members - 15 days gold etc...everything checked correct in the admin panel. Affillate checked and checked off free mode) Then after i recieved the 5 testmails i registered then through the link in the 5 testmails..but no members where added to my account, it stayed on 0...so i assume that there is a bug...is it a known one or just at my site? I am running clean version 04.
kind regards
Okay, there are two things to check if its a bug :
1) Look into the table->aff_members -- Does it increase everytime you signup with affiliate link.
2) Does the affiliate link has this -- ?dAff=<whatevernumber>
What is the code In join_form.php, similar below :
// Affiliate and friend checking
if ( $en_aff && $_COOKIE['idAff'] )
{
$res = db_res("SELECT `ID` FROM `aff` WHERE `ID` = {$_COOKIE['idAff']} AND `Status` = 'active'");
if ( mysql_num_rows( $res ) )
{
$res = db_res("INSERT INTO `aff_members` (`idAff`,`idProfile`) VALUES ({$_COOKIE['idAff']}, $IDnormal)");
}
}
if ( $en_aff && $_COOKIE['idFriend'] )
{
$idFriend = getID( $_COOKIE['idFriend'] );
if ( $idFriend )
{
$res = db_res( "UPDATE `Profiles` SET `aff_num` = `aff_num` + 1 WHERE `ID` = '$idFriend'" );
}
}
the email template only gives a link away...so ni id or what soever in the link and the join page only has this part:
// -------------------------
if ( $en_aff && $_COOKIE[idAff] )
{
$res = db_res("SELECT ID FROM aff WHERE ID=$_COOKIE[idAff] AND `Status`='active'");
if ( mysql_num_rows($res) )
{
$res = db_res("INSERT INTO aff_members (`idAff`,`idProfile`) VALUES ($_COOKIE[idAff],$IDnormal)");
}
}
// ---------------
I don'tknow if its supposed to be like that?
And i don't know how to make the email include an id from the sender in the link. I have another datingsite based on IQ and everything you said is in there and works, just this site is clean 04 and not...so help me out here please, i can just grab your code and paste it into the login.php...but how to get this email to give an ID to the link...i don't know
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks