Owner Profile

Overview

The user profile object for the owner of the current site is accessed using the $OWNER_PROFILE variable. This object contains information about the user, methods to return avatar photos for the user and other relevant user methods. For instance, if a user is browsing a friend’s profile page then $OWNER_PROFILE would represent that friend’s profile. The object has the same properties and methods available as the VIEWER_PROFILE object (which represents the currently logged in user)

Example Uses

Variable Description
{$OWNER_PROFILE->name} The display name of the user
{$OWNER_PROFILE->avatar()} URL of the user’s 40×40 avatar image URL
{$OWNER_PROFILE->avatar(60)} URL of an alternate size of the user avatar. Network options must be set to tell the network to save copies of the user’s avatar in alternate sizes.
{$OWNER_PROFILE->photo()} URL of the user’s large profile photo
{$OWNER_PROFILE->photo(120)} URL of an alternate size of the profile photo. Network options must be set to tell the network to save copies of the profile photo in alternate sizes.
{$OWNER_PROFILE->quote} The user’s quote
{$OWNER_PROFILE->get_field(‘PROFILE_FIELD’)} A field from the user’s extensible profile. substitute PROFILE_FIELD for the name of the profile field. i.e. FAVORITE_MOVIES
{$OWNER_PROFILE->status} The user’s status message
{$OWNER_PROFILE->mood_icon} URL for the icon of the user’s current mood
{$OWNER_PROFILE->mood} The user’s mood selection
{$OWNER_PROFILE->home_url} URL for owner’s homepage
{$OWNER_PROFILE->location} Location specified for user in the profile.
{$OWNER_PROFILE->age} Age.
Note: calling this directly overrides the system’s ability to know if the user has set their age to private.
{$OWNER_PROFILE->dob} Date of birth of user.
Note: calling this directly overrides the system’s ability to know if the user has set their age to private.
{$OWNER_PROFILE->dob_month} Date of birth month.
Note: calling this directly overrides the system’s ability to know if the user has set their age to private.
{$OWNER_PROFILE->dob_day} Date of birth day.
Note: calling this directly overrides the system’s ability to know if the user has set their age to private.
{$OWNER_PROFILE->dob_year} Date of birth year.
Note: calling this directly overrides the system’s ability to know if the user has set their age to private.
{$OWNER_PROFILE->first_name} First name
{$OWNER_PROFILE->last_name} Last name
{$OWNER_PROFILE->date_status_updated} Date status was last updated