Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

SIMPLE: User profile information lookup functions?

edited April 2011 in Vanilla 2.0 - 2.8
Is there a set of functions that will allow me to safely and easily lookup user information with an ID? Something along the lines of $Users->GetUserInfo($UserID, 'email');

I don't want to have to use a custom SQL, because this seems like a benign task that would already be built in. I have searched the documentation endlessly, and the only option I see is using SQL.

Any hints?

Comments

  • LincLinc Detroit Admin
    edited April 2011
    $UserModel = new UserModel();
    $User = $UserModel->GetID($UserID);

    That will give you a dataset of the stuff you're looking for.

    //edit: Double-check that the GetID method is in your version's UserModel (applications/dashboard/models/class.usermodel.php). I forget when it was added.
Sign In or Register to comment.