Skip to Content Skip to Menu

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

Missing Tabs on profile view

  • who_else
  • who_else
  • OFFLINE
  • Posts: 61
  • Thanks: 2
  • Karma: 1
11 years 2 months ago #232912 by who_else
Missing Tabs on profile view was created by who_else
I created several Profile tabs, which are set to published for everyone and use conditional fields.

This are being made for the differing needs for different usergroups.

So Tab 1 is to be shown, if the user of usergroup 1 is going to edit his profile.

Unfortunately the user of usergroup 2 cannot view that fields of the tab of usergroup 1, since he has no right for that. My settings are: If Field Usergroup 1 is Usergroup 1 then show for registration, Profile Edit, Profile View as Two-Way.

If i set this to one way only, and add another condition to that Tab, like if Usergroup 2 is Usergroup 2 and show Profile View as one way, then it will show on the usergroup 1's User profile as well.

I want to have each Usergroup their specific TAB(s) ontaining the fields they need, and to show that Tabs with their other profile option, if another user of another Usergroup wants to see his Profile.

Any idea how to get this done? The fields are not being found in search as well.

Thanks!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #232939 by krileon
Replied by krileon on topic Missing Tabs on profile view
Below conditional should do what you're wanting. This should show only to Usergroup 1 in profile edit and profile view. Conditionals are always based off profile owner field values unless you use substitutions in custom value.

Display: Tab conditional
Field: Usergroup
Operator: Equal To
Value: Usergroup 1
Mode: Show
Registration: Disabled
Profile Edit: Enabled
Profile View: Enabled

With the above ensure the tab view access level is set to public so CB Conditional is exclusively controlling its display.


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.

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

  • who_else
  • who_else
  • OFFLINE
  • Posts: 61
  • Thanks: 2
  • Karma: 1
11 years 2 months ago #232949 by who_else
Replied by who_else on topic Missing Tabs on profile view
And how can i make sure, that a User from Usergroup 1 can view the profile of a User from Usergroup 2, whereas both Usergroups have different tabs with extended profile fields just for that group?

When i am logged in as a user of Usergroup 1 and i view a profile of a user in Usergroup 2 i cant see the conditional Tab for Usergroup 2. It is hidden; so i can't check, whether his profile matches or not.

The tab view access is being set to public, my current setting is:

Display: Tab conditional
Field: Usergroup
Operator: Equal To
Value: Usergroup 1
Mode: Show
Registration: Disabled
Profile Edit: Enabled
Profile View: Enabled
....

How can i give all other 4 Usergroups the right to view Usergroup1 Users conditional Tab (for Usergroup1) ?

Its a bit confusing, telling what i want to achieve ;-)
Thanks for help.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #232957 by krileon
Replied by krileon on topic Missing Tabs on profile view
The conditional is always based off the profile owners fields. If you view a profile of a user in Usergroup 2 then you won't see the tab. The below should allow the tab to display if the profile owner is Usergroup 1 or the viewing user is Usergroup 1. If I understand correctly that's what you're wanting?

Conditional 1
Display: Tab conditional
Field: Usergroup
Operator: Equal To
Value: Usergroup 1
Mode: Show
Registration: Disabled
Profile Edit: Enabled
Profile View: Enabled

Conditional 2
Display: Tab conditional
Field: Custom Value
Value: [cb:userdata field="cb_usergroup" user="#me" /]
Operator: Equal To
Value: Usergroup 1
Mode: Show
Registration: Disabled
Profile Edit: Enabled
Profile View: Enabled
Direction: One-Way

Adjust cb_usergroup to your actual field name if it's not correct, but basically it compares the viewing users field value instead of comparing the profile owners. It's also One-Way so if the conditional doesn't match it doesn't do anything.


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.

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

  • who_else
  • who_else
  • OFFLINE
  • Posts: 61
  • Thanks: 2
  • Karma: 1
11 years 2 months ago #232988 by who_else
Replied by who_else on topic Missing Tabs on profile view
Let's do it that way, so it might clear things up:

Let's say, i have 4 User Groups:

Musicians
Teachers
Bands
Organizer.

Each of them has a separate TAB for their specific profile fields which i did with conditional Fields.

So if a user registers as Musician, he will see only the tab Musician with his profile fields like, which instruments does he play, how long does he play, what styles does he play etc.

Another user registers as a band. He is looking for a guitarist, since his guitarist quit last week.

So,he can use the userlist for musicians and finds a bunch of them.

Now he wants to look at the musicians profile to find out, whether he could fit for the band or not. The only thing the user registered as a band sees are the contact infos, but not the musician's profile tab.

Let's assume, the musician is looking for a band.

So he checks the userlist for band and clicks on a band's profile. He also only sees the contact information, but not what type of music they do, what they are looking for etc, because that is on the conditional tab for bands.

It is hard to write that down... ;-(

Thanks for help.
Best

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #233000 by krileon
Replied by krileon on topic Missing Tabs on profile view
The first conditional I provided already does this. It displays the tab if the users usergroup matches the value supplied. It is always conditioning against the profile owners information. In your example set all 4 tabs as public and published then use the below conditional usage.

Musicians Tab
Display: Tab conditional
Field: Usergroup
Operator: Equal To
Value: Musicians
Mode: Show
Registration: Enabled
Profile Edit: Enabled
Profile View: Enabled

Repeat the above usage for each of the usergroup tabs. I don't know how much more to explain it, sorry.


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum