Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Advanced Usergroup ACL for access to see tabs on profile

11 years 6 days ago - 11 years 3 days ago #235827 by GarfieldLeChat
I basically want to know how I might go about setting up a way of having two sub groups of registered which have different profile fields to edit on different tabs

group a
group b


I want group a to edit some parameters which are visable to themselves and to group b but are only visable on group a's profile not group b's

some thing like

group a edit read show on profile view page
group b read only on users in group a not shown on own profile

and the reverse for group b

group b edit read show on profile view page
group a read only on users in group b not shown on own profile

Basically I want to find a way of conditionally editing the profile fields which appear on a users own profile and for that to be different to the view permission for the profile.

Can this be done?

if so if any one would be kind enough to explain how it'd be good.

Cheers
Last edit: 11 years 3 days ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 6 days ago #235848 by krileon
You can use CB Conditionals to conditionally show/hide fields/tabs based off other fields values. You can use a select field to determine what profile type they are then condition other fields/tabs based off that profile type field. Please review the below tutorial carefully to get started.

www.joomlapolis.com/support/tutorials/107-use-cases/18336-using-cb-conditionals-to-hide-or-show-fields-or-tabs


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: GarfieldLeChat

Please Log in or Create an account to join the conversation.

11 years 6 days ago #235853 by GarfieldLeChat
Hi Krileon


Thank you for that advice.

I have two issues with the conditional plugin at the moment

1. I get a memory time out with the conditionals plugin when adding new fields when it's installed I don't if it's not.

2. I want the CB profile types to inherit the standard user groups but cannot seem to use this to reflect the conditional as it appears to not have a way of being directly mapped to the profile. Where might I find the user type mapping so that I can use the predefined groups?

Thanks again for the help.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 6 days ago #235863 by krileon

1. I get a memory time out with the conditionals plugin when adding new fields when it's installed I don't if it's not.

Enable debug mode and maximum error reporting in Joomla global configuration. Once done retest and provide the full memory error message. It's possible you just don't have enough memory to use CB Conditional in addition to everything else installed.

2. I want the CB profile types to inherit the standard user groups but cannot seem to use this to reflect the conditional as it appears to not have a way of being directly mapped to the profile. Where might I find the user type mapping so that I can use the predefined groups?

You can give a user a usergroup based off a field value using CB Auto Actions. Please see the below tutorial for such usage.

www.joomlapolis.com/support/tutorials/107-use-cases/18237-cb-auto-actions-assigning-usergroup-based-on-cb-field-value

You could then give them a usergroup based off the profile type fields value.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: GarfieldLeChat

Please Log in or Create an account to join the conversation.

11 years 3 days ago #236030 by GarfieldLeChat
cool this works for fields which I only want the user to see but this is slightly different.

I want the user to see the field on their profile if it's applicable based on the group access level and allow the second user group to see the contents of that field on profile view but not on their own profile.

It's more an

Exclude this field from own profile - yes
show this field on others profiles - yes
edit this field on own profile - no

So I'm not sure the default view is sufficient. in that if this is viewed on others profiles then it'll also show on their own profile to.

Is their a step by step of how one might configure this specifically?

cheers for all your help so far.

Please Log in or Create an account to join the conversation.

11 years 3 days ago #236045 by GarfieldLeChat
S'ok I figgered it out.

cheers for putting me on track.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum