Hello, I was wondering if I can put some kind of php if statement for affiliate accounts in my member.php to show some links and/or redirect I think I have a custom code for pending account like Code: $mem_status = ($_SESSION['_amember_user']['status']); if ($mem_status == 0){ (do some stuff) It looks like affiliate accounts falls into that status... There has to be a way to separate affiliates from pending user right? Thank you.
Are all active members affiliate accounts? aMember uses the amember user ID for the affiliate ID, so you can just create links using that. David
It seems like affiliate accounts are pending users according to the admin panel. I'm sure I can filter them through their member ID, but that means I have to edit my member.php page every time there's a new affiliate. Is there a way to separate pending users and affiliate accounts? Like... Code: $mem_status = ($_SESSION['_amember_user']['status']); if ($mem_status == 'aff'){ (show certain links) } Thank you.
Ah nevermind, I got it. The keyword was session variables. http://www.amember.com/forum/threads/code-to-only-show-if-affiliate.9912/ All I need to do is Code: $status = $_SESSION['amember_user']['is_affiliate'] ; if ($status != 0) { Do that special thing you want! }