Help! Show profile field groups according to s2 membership?
Posted: May 13th, 2011, 5:27 am
Hi,
Anyone please help!
I am using s2 with buddypress, and in the user profile (profile loop?) I need to show certain profile fields depending on membership level.
As you know buddypress offers those extended profile fields which we can organize in groups (those profile_group_id) - like basic user information goes to Group 1, Extended user information to Group 2, etc.
What I need to do is when a registered user browses the profiles of others users, in the other user's profile he should see the following:
if logged in user has s2_level0, when he looks at the profile of an other user he should only see that user's information contained in Group 1 (so only the basic information)
if the logged in user has s2_level1 than, when looking in other user's profiles he should see the profile information contained in Group1 & Group 2
and if for ex the logged in user has s2_level2 he should be able to see the full information in the profiles of the other users (so let's say all 5 definded field groups with their respective fields).
Could you guys please help me with this?
Thanks in advance
Anyone please help!
I am using s2 with buddypress, and in the user profile (profile loop?) I need to show certain profile fields depending on membership level.
As you know buddypress offers those extended profile fields which we can organize in groups (those profile_group_id) - like basic user information goes to Group 1, Extended user information to Group 2, etc.
What I need to do is when a registered user browses the profiles of others users, in the other user's profile he should see the following:
if logged in user has s2_level0, when he looks at the profile of an other user he should only see that user's information contained in Group 1 (so only the basic information)
if the logged in user has s2_level1 than, when looking in other user's profiles he should see the profile information contained in Group1 & Group 2
and if for ex the logged in user has s2_level2 he should be able to see the full information in the profiles of the other users (so let's say all 5 definded field groups with their respective fields).
Could you guys please help me with this?
Thanks in advance