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

User Status

Daniel Hood

Well-known member
#1
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.
 

Daniel Hood

Well-known member
#3
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
        );