I'm trying to get the UserID of a user whose username is known. For example, in my code, I've this: PHP: $receiverUserName= $this->_input->filterSingle('username', XenForo_Input::STRING);$receiver = $this->getModelFromCache('XenForo_Model_User')->getUserByName($receiverUserName); Using debug information, I found out that the $receiver gets the entire user array and not just the Id. What's the best way to get userID from username? PS: I'm guessing that there'd be a ready-made function to do it in XenForo. But I do not know how / where to look for them.