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

Convert user ID into full user info

Discussion in 'XenForo Development Discussions' started by TheDeNuke, Nov 19, 2013.

  1. TheDeNuke

    TheDeNuke Member

    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-
    Last edited: Nov 19, 2013
  2. AndyB

    AndyB Well-Known Member

    I suggest explaining what you would like this add-on to do.
  3. Jeremy

    Jeremy Well-Known Member

  4. TheDeNuke

    TheDeNuke Member

    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.
  5. TheDeNuke

    TheDeNuke Member

  6. AndyB

    AndyB Well-Known Member

    Is this going to be a stand alone page? As I said before it would help if you explained what you want to do.
  7. xf_phantom

    xf_phantom Well-Known Member

    $userModel XenForo_Model_User::create('XenForo_Model_User');

    $userData $userModel ->prepareUser($userModel->getFullUserById($userId));
    TheDeNuke and Jeremy like this.

Share This Page