Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 23, 2015 13:01:02 GMT -8
Forum URL: brabants-motor-forum.boards.netThis question was posted earlier here Show multiple groups on mini-profile. I know if Graig says it's not possible it's not possible. but still. Why is this code not working? Not even for one group. Without the foreach only one group is shown
{if $[user.group]}
{foreach $[user.group]}
$[user.group.name]
{if $[user.group.stars]}
$[user.group.stars]
{/if}
<br />
{/foreach}
{/if}
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 23, 2015 13:08:15 GMT -8
Hi, Bunnie. $[user.group] only outputs your display group. It does not contain all of the groups you're a part of, and thus a foreach loop will not produce that result. There is no way to loop through each of your groups in the layout templates.
|
|
Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 23, 2015 13:17:49 GMT -8
Bummer,
so there are groups on which members are to be selected but can't be displayed
and there are custom profile fields which do show but on which you cannot select.
What to do?
I can have a group for each customField-Value combination, but that's not managable
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 23, 2015 13:21:12 GMT -8
What's the purpose of your foreach loop through the groups? Are you just trying to make them all display at once?
|
|
inherit
209000
0
Jul 22, 2016 21:57:24 GMT -8
Bütch
Resident Redneck
1,706
May 2014
butch1
|
Post by Bütch on Jun 23, 2015 14:20:23 GMT -8
Hi Bunnie If I'm understanding your question correctly it can be done with this plugin, Mini-Profile BG and Text Color. Install it and then you will have to setup your fields and name your own groups. Once setup the member edits their profile they can choose multiple groups that they want shown in the mini profile. Remember plugins don't work in Mobile view. On their settings page it will look like this.
|
|
Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 24, 2015 2:06:52 GMT -8
What's the purpose of your foreach loop through the groups? Are you just trying to make them all display at once? Yes. that's the idea. What's the use for being member in a group if no-one can see it.
|
|
Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 24, 2015 2:11:36 GMT -8
uncle bütch, thanks for the tip. I searched for a plugin and this one was in the list but didn't saw a possible solution for my request because of mainly its name. I'll try it out.
|
|
Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 24, 2015 2:25:50 GMT -8
uncle bütch, thanks for the tip. I searched for a plugin and this one was in the list but didn't saw a possible solution for my request because of mainly its name. I'll try it out. Hi Bütch,
could it be you referred to a wrong plug-in? I only see settings for BG and colors.
|
|
inherit
209000
0
Jul 22, 2016 21:57:24 GMT -8
Bütch
Resident Redneck
1,706
May 2014
butch1
|
Post by Bütch on Jun 24, 2015 4:25:39 GMT -8
Hi BunnieNo it's the correct one. Now you have to create the fields for it now go to Admin Home > Members > Custom Profile Fields > Then under field name type Group, then under type choose text box's, then cick (View/Edit) fill in you group name. Once in this section it is pretty much self explanatory
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 24, 2015 8:16:01 GMT -8
What's the purpose of your foreach loop through the groups? Are you just trying to make them all display at once? Yes. that's the idea. What's the use for being member in a group if no-one can see it. Powers and permissions. Given that you're able to be part of every member group at once it would be problematic for every single group to show in your mini-profile which is why it's narrowed down to one choice for your display group.
|
|
Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 24, 2015 11:37:55 GMT -8
Yes. that's the idea. What's the use for being member in a group if no-one can see it. Powers and permissions. Given that you're able to be part of every member group at once it would be problematic for every single group to show in your mini-profile which is why it's narrowed down to one choice for your display group. Indeed with a lot of groups to show it wouldn't work. But let that be a problem for the admins. Besides it could be made so that at group definition and/or at group joining a show/noshow flag could be set. Also could it be a scrollable list in a window in the miniprofile. etc etc.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 24, 2015 11:41:21 GMT -8
You can request a plugin to easily display them all at once, but as far as the $[user.group] template variable is concerned we won't be changing how that works.
|
|
Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 24, 2015 11:43:56 GMT -8
Hi BunnieNo it's the correct one. Now you have to create the fields for it now go to Admin Home > Members > Custom Profile Fields > Then under field name type Group, then under type choose text box's, then cick (View/Edit) fill in you group name. Once in this section it is pretty much self explanatory Works great! Thanks a lot.
|
|
Bunnie
Junior Member
back again
Posts: 204
inherit
71537
0
Jun 1, 2023 12:13:22 GMT -8
Bunnie
back again
204
February 2006
bunnie
|
Post by Bunnie on Jun 24, 2015 12:03:51 GMT -8
Hi BunnieNo it's the correct one. Now you have to create the fields for it now go to Admin Home > Members > Custom Profile Fields > Then under field name type Group, then under type choose text box's, then cick (View/Edit) fill in you group name. Once in this section it is pretty much self explanatory Works great! Thanks a lot. Bütch: Sadly it is not connected to the real group-membership's. In my humble opinion it's logical to have the functionality of 'Groups' concerning selecting and contacting it's members and to be able to show the group's of which one is member. Especially for Group's which has a more closed character. ie a member must have 'earned' the membership, is proud of it and wants to show it to the others.
|
|
inherit
209000
0
Jul 22, 2016 21:57:24 GMT -8
Bütch
Resident Redneck
1,706
May 2014
butch1
|
Post by Bütch on Jun 24, 2015 16:07:19 GMT -8
No it is not connected to the groups but they can show in the mini profile the groups they are a member of
|
|