inherit
169267
0
Nov 25, 2024 15:26:25 GMT -8
Mike
Praise God Almighty!
1,534
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
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
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: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
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.
|
|