T TheDeNuke Member Nov 19, 2013 #1 How would I do this in PHP? I need to know how to get all a user's data from just their ID, including custom fields in PHP - other stuff removed- Thanks, TheDeNuke Last edited: Nov 19, 2013
How would I do this in PHP? I need to know how to get all a user's data from just their ID, including custom fields in PHP - other stuff removed- Thanks, TheDeNuke
Jeremy in memoriam 1991-2020 Nov 19, 2013 #3 As long as you are using the class proxy system, this resource explains all: http://xenforo.com/community/resources/understanding-the-xenforo-class-proxy-system.2080/
As long as you are using the class proxy system, this resource explains all: http://xenforo.com/community/resources/understanding-the-xenforo-class-proxy-system.2080/
T TheDeNuke Member Nov 19, 2013 #4 Basically I just need to know how to turn a user ID into the full user table that has all data EG username, custom fields, ect.
Basically I just need to know how to turn a user ID into the full user table that has all data EG username, custom fields, ect.
AndyB Well-known member Nov 20, 2013 #6 TheDeNuke said: Basically I just need to know how to turn a user ID into the full user table that has all data EG username, custom fields, ect. Click to expand... Is this going to be a stand alone page? As I said before it would help if you explained what you want to do.
TheDeNuke said: Basically I just need to know how to turn a user ID into the full user table that has all data EG username, custom fields, ect. Click to expand... Is this going to be a stand alone page? As I said before it would help if you explained what you want to do.
xf_phantom Well-known member Nov 20, 2013 #7 TheDeNuke said: Basically I just need to know how to turn a user ID into the full user table that has all data EG username, custom fields, ect. Click to expand... PHP: $userModel = XenForo_Model_User::create('XenForo_Model_User'); $userData = $userModel ->prepareUser($userModel->getFullUserById($userId));
TheDeNuke said: Basically I just need to know how to turn a user ID into the full user table that has all data EG username, custom fields, ect. Click to expand... PHP: $userModel = XenForo_Model_User::create('XenForo_Model_User'); $userData = $userModel ->prepareUser($userModel->getFullUserById($userId));