solved Main profile of power user

alt=
DannyA
@dannya
9 years ago
584 posts
How do you determine the main profile of a power user?
updated by @dannya: 02/06/16 09:47:17PM
brian
@brian
9 years ago
10,148 posts
It's their "home" profile - i.e. the profile that was created at the same time as their user account. Every user in Jamroom has a "home profile".

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
Thats what I mean. Is there a programmatic way to identify which one is the "home". I want to automatically associate their main profile image as their account image.
michael
@michael
9 years ago
7,715 posts
The code to get the current users profile home key is:
$_profile_id = jrUser_get_profile_home_key('_profile_id')

If your not looking for the current user, then its the '_profile_id' that is stored in the jrUser datastore.
alt=
DannyA
@dannya
9 years ago
584 posts
Great thanks

Tags