inherit
264643
0
Oct 20, 2024 23:08:54 GMT -8
hodgepodgecollage
77
July 2021
hodgepodgecollage
|
Post by hodgepodgecollage on Sept 13, 2022 12:02:09 GMT -8
Hello there!
I was forwarded to this board, since my request is too complex for the general support board.
I’m looking to create a new Open group that our members can freely join without a staff member needing to add them to the group. But I want the group name to not display on the mini profile, or its associated stars (I realise I can just set the stars to zero to achieve this part). I’d like the member’s rank name and stars for their post count to continue to display.
I also have four groups for staff that currently show on the mini profile along with the stars associated with those groups. The staff groups and stars override the post count rank names and stars. I’d like for these staff groups to remain on the mini profile unchanged.
Basically, I’m looking to add a new Open group and not have it affect the member (and staff) mini profiles when members join the group.
Thank you so much for all your help, I deeply appreciate it!
|
|
Kami
Forum Cat
Posts: 40,198
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,198
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 13, 2022 16:24:30 GMT -8
Hello there! I was forwarded to this board, since my request is too complex for the general support board. I’m looking to create a new Open group that our members can freely join without a staff member needing to add them to the group. But I want the group name to not display on the mini profile, or its associated stars (I realise I can just set the stars to zero to achieve this part). I’d like the member’s rank name and stars for their post count to continue to display. I also have four groups for staff that currently show on the mini profile along with the stars associated with those groups. The staff groups and stars override the post count rank names and stars. I’d like for these staff groups to remain on the mini profile unchanged. Basically, I’m looking to add a new Open group and not have it affect the member (and staff) mini profiles when members join the group. Thank you so much for all your help, I deeply appreciate it! How comfortable are you editing your layout templates? Off the top of my head, you could set the conditional in the templates to read IF user group = {your group here) THEN display posting rank / stars. The only caveats are:1) you'd have to do this for every theme you have, 2) this won't affect the mobile view unless you block your users from experiencing the mobile optimisation, 3) this would have to be the only group they're assigned to (otherwise, the group display only reflects the group they have selected in their mini profile). Let me know how much (if any) help you need with this, if it's an acceptable solution.
|
|
inherit
264643
0
Oct 20, 2024 23:08:54 GMT -8
hodgepodgecollage
77
July 2021
hodgepodgecollage
|
Post by hodgepodgecollage on Sept 13, 2022 19:00:14 GMT -8
Hello there! I was forwarded to this board, since my request is too complex for the general support board. I’m looking to create a new Open group that our members can freely join without a staff member needing to add them to the group. But I want the group name to not display on the mini profile, or its associated stars (I realise I can just set the stars to zero to achieve this part). I’d like the member’s rank name and stars for their post count to continue to display. I also have four groups for staff that currently show on the mini profile along with the stars associated with those groups. The staff groups and stars override the post count rank names and stars. I’d like for these staff groups to remain on the mini profile unchanged. Basically, I’m looking to add a new Open group and not have it affect the member (and staff) mini profiles when members join the group. Thank you so much for all your help, I deeply appreciate it! How comfortable are you editing your layout templates? Off the top of my head, you could set the conditional in the templates to read IF user group = {your group here) THEN display posting rank / stars. The only caveats are:1) you'd have to do this for every theme you have, 2) this won't affect the mobile view unless you block your users from experiencing the mobile optimisation, 3) this would have to be the only group they're assigned to (otherwise, the group display only reflects the group they have selected in their mini profile). Let me know how much (if any) help you need with this, if it's an acceptable solution. This sounds like an excellent solution! I don’t have a problem editing the mini profile template. I figured out how to remove the group names from the mini profile, but it also removed the staff group names, so I started adding them back and it became a tangled mess. It seemed like it’d be so much easier to only deal with the new group, as you suggested with an if/then. But I was unsure how to accomplish this. Regarding the caveats: (1) I don’t have a problem adding the code to all the themes. We only have three, and I was prepared to do this. (2) It’s fine if this doesn’t apply to the mobile version, since the mini profiles aren’t visible. (3) For our members, the new open group will be the only group they’re assigned to, but staff have multiple (staff) groups, and they’ll join the open one as well. Thank you for your help!
|
|
Kami
Forum Cat
Posts: 40,198
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,198
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Sept 15, 2022 5:48:08 GMT -8
How comfortable are you editing your layout templates? Off the top of my head, you could set the conditional in the templates to read IF user group = {your group here) THEN display posting rank / stars. The only caveats are:1) you'd have to do this for every theme you have, 2) this won't affect the mobile view unless you block your users from experiencing the mobile optimisation, 3) this would have to be the only group they're assigned to (otherwise, the group display only reflects the group they have selected in their mini profile). Let me know how much (if any) help you need with this, if it's an acceptable solution. This sounds like an excellent solution! I don’t have a problem editing the mini profile template. I figured out how to remove the group names from the mini profile, but it also removed the staff group names, so I started adding them back and it became a tangled mess. It seemed like it’d be so much easier to only deal with the new group, as you suggested with an if/then. But I was unsure how to accomplish this. Regarding the caveats: (1) I don’t have a problem adding the code to all the themes. We only have three, and I was prepared to do this. (2) It’s fine if this doesn’t apply to the mobile version, since the mini profiles aren’t visible. (3) For our members, the new open group will be the only group they’re assigned to, but staff have multiple (staff) groups, and they’ll join the open one as well. Thank you for your help! OK, so if you haven't already, reset the "Mini Profile" template back to default on whatever theme you were testing it on. This will untangle whatever wound up happening during your experimentation. Once that's done, find the line that says {if $[user.group]} — with a reset template, this should be Line 5 of the template (the numbers are on the left-hand side of the text box). Change this to read: {if $[user.group] && $[user.group.name] != "Name of Special Group"}-- Please note that you need to replace Name of Special Group with the actual name of the group. This is Case Sensitive, and spacing matters. Also make sure that you're only changing the actual name of the group, and preserving the quotation marks around the group. Once that's done, skip the next line and move on to the line after (Line 7). This should read: {elseif $[user.rank]}Change this to read: {elseif $[user.rank] || $[user.group.name] == "Name of Special Group"}-- The same caveats to Name of Special Group in the previous set of changes also apply here. Save your template. Now, you should see people in groups that are not the Special Group (or do not have the Special Group selected as the group to display in their profile) will retain their "normal" group. You'll also see anyone that IS in the special group only (or have selected the special group to show in their profile) retains their posting rank / stars as applicable. Now, regarding this: I just want to make sure I've covered this in the above instructions / expected results (I realised about halfway through typing the instructions that the last line could be interpreted to mean you want the staff groups / stars to be overridden by post count (ie: 'unchanged' from prior to the user being assigned the staff group)) so I wanted to double check
|
|
inherit
264643
0
Oct 20, 2024 23:08:54 GMT -8
hodgepodgecollage
77
July 2021
hodgepodgecollage
|
Post by hodgepodgecollage on Oct 23, 2022 19:56:55 GMT -8
This sounds like an excellent solution! I don’t have a problem editing the mini profile template. I figured out how to remove the group names from the mini profile, but it also removed the staff group names, so I started adding them back and it became a tangled mess. It seemed like it’d be so much easier to only deal with the new group, as you suggested with an if/then. But I was unsure how to accomplish this. Regarding the caveats: (1) I don’t have a problem adding the code to all the themes. We only have three, and I was prepared to do this. (2) It’s fine if this doesn’t apply to the mobile version, since the mini profiles aren’t visible. (3) For our members, the new open group will be the only group they’re assigned to, but staff have multiple (staff) groups, and they’ll join the open one as well. Thank you for your help! OK, so if you haven't already, reset the "Mini Profile" template back to default on whatever theme you were testing it on. This will untangle whatever wound up happening during your experimentation. Once that's done, find the line that says {if $[user.group]} — with a reset template, this should be Line 5 of the template (the numbers are on the left-hand side of the text box). Change this to read: {if $[user.group] && $[user.group.name] != "Name of Special Group"}-- Please note that you need to replace Name of Special Group with the actual name of the group. This is Case Sensitive, and spacing matters. Also make sure that you're only changing the actual name of the group, and preserving the quotation marks around the group. Once that's done, skip the next line and move on to the line after (Line 7). This should read: {elseif $[user.rank]}Change this to read: {elseif $[user.rank] || $[user.group.name] == "Name of Special Group"}-- The same caveats to Name of Special Group in the previous set of changes also apply here. Save your template. Now, you should see people in groups that are not the Special Group (or do not have the Special Group selected as the group to display in their profile) will retain their "normal" group. You'll also see anyone that IS in the special group only (or have selected the special group to show in their profile) retains their posting rank / stars as applicable. Now, regarding this: I just want to make sure I've covered this in the above instructions / expected results (I realised about halfway through typing the instructions that the last line could be interpreted to mean you want the staff groups / stars to be overridden by post count (ie: 'unchanged' from prior to the user being assigned the staff group)) so I wanted to double check Thank you so very much, Kami! Many apologies for the delay. There was an emergency, and I’ve been away for a while. It’s good to be back, but there’s a lot of catching up. I did implement your solution, and it is brilliant! Everything looks as it should and the group is no longer showing. I also applied it to the user profile and micro-profile templates. I greatly appreciate all your time and assistance. And again, sorry for the late thank you. Cheers!
|
|
Kami
Forum Cat
Posts: 40,198
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,198
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 24, 2022 10:23:53 GMT -8
hodgepodgecollage Fantastic, I'm so glad it worked for you! I hope all is well now, and please don't hesitate to make a new thread if you have any other questions or issues! (And thanks for the badge!)
|
|