1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User Status

Discussion in 'XenForo Development Discussions' started by Daniel Hood, Jun 18, 2013.

  1. Daniel Hood

    Daniel Hood Well-Known Member

    How do they get the most recent status post for users on the member card? I see in the template it's {$user.status} but I'm not seeing where they assign that.
     
  2. tyteen4a03

    tyteen4a03 Well-Known Member

    The $user variable is assigned in the Controller.
     
  3. Daniel Hood

    Daniel Hood Well-Known Member

    Yeah, sorry I understand that. I mean what function can I call to get status to be part of the array. I use
    PHP:
    $user $userModel->getUserById($user_id);
    to get the user information which works, but it does not include the status variable.

    Do I need to include something like

    PHP:
    $userFetchOptions = array(
                
    'join' => XenForo_Model_User::FETCH_LAST_ACTIVITY
            
    );
     

Share This Page