BP_Core_User class can be used by any component. It will fetch useful details for any user when provided with a user_id.
Example: $user = new BP_Core_User( $user_id ); $user_avatar = $user->avatar; $user_email = $user->email; $user_status = $user->status; etc.
Located in /bp-core/bp-core-classes.php (line 561)
The URL to the full size of the avatar for the user.
The URL to the mini size of the avatar for the user.
The URL to the thumb size of the avatar for the user.
The email for the user.
The full name of the user
ID of the user which the object relates to.
Contains a formatted string when the last time the user was active.
Example: "active 2 hours and 50 minutes ago"
Profile information for the specific user.
The total number of blog posts posted by the user
The total number of "Friends" the user has on site.
The total number of groups the user is a part of.
Example: "1 group", "2 groups"
The HTML for the user link, with the link text being the user's full name.
The absolute url for the user's profile.
Get WordPress user details for a specified user.
Get details of specific users from the database
Fetches the user details for all the users who username starts with the letter given.
Fetch extra user information, such as friend count and last profile update message.
Accepts multiple user IDs to fetch data for.
Find users who match on the value of an xprofile data.
Class constructor.
Static Methods *******************************************************
Populate the instantiated class with data based on the User ID provided.
Populates extra fields such as group and friendship counts.
Documentation generated on Mon, 27 May 2013 01:42:06 +0100 by phpDocumentor 1.4.3