inherit
169267
0
Sept 4, 2023 1:07:10 GMT -8
Mike
Praise God Almighty!
1,501
July 2011
riccetts
|
Post by Mike on Apr 1, 2022 10:32:58 GMT -8
Is there a way to list groups a user belongs to in their profile? I see that you can only choose one group in the profile settings. like say a user is in the contributor group and also in a moderator group. how can I list them both in the summary part of the profile?
|
|
inherit
Official Code Helper
65613
0
1
Sept 28, 2022 13:12:14 GMT -8
Chris
8,751
December 2005
horace
|
Post by Chris on Apr 1, 2022 20:04:48 GMT -8
Is there a way to list groups a user belongs to in their profile? I see that you can only choose one group in the profile settings. like say a user is in the contributor group and also in a moderator group. how can I list them both in the summary part of the profile? Not possible since the summary page only has the $[user.group] variable which is different from the top level $[group] variable on the groups page. The one relevant difference here is the variable on the groups page is iterable (can be used in a foreach loop) while said property does not exist for the user variable. The summary page user variable will only give you the current group choice of the user not the list of groups to which that user also belongs, for that you will need to switch to the groups tab of the user's profile.
|
|
Kami
Forum Cat
Posts: 39,622
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
39,622
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Apr 2, 2022 8:26:22 GMT -8
Scott for vis, since you directed OP here from support.
|
|