Redirecting Affiliate Accounts

Discussion in 'Integration' started by oliver94, Jul 15, 2012.

  1. oliver94

    oliver94 Member

    Joined:
    Feb 22, 2011
    Messages:
    33
    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.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    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
  3. oliver94

    oliver94 Member

    Joined:
    Feb 22, 2011
    Messages:
    33
    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.
  4. oliver94

    oliver94 Member

    Joined:
    Feb 22, 2011
    Messages:
    33

Share This Page