Skip to Content Skip to Menu

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

TAB Conditional Behaviour

  • ahicks
  • ahicks
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
8 years 8 months ago #278054 by ahicks
TAB Conditional Behaviour was created by ahicks
PHP - 5.6.17
CB - 2.0.13
Joomla - 3.4.8
CB Conditional 4.0.6
CB Privacy 4.0.3

In all cases below CB Privacy Set to Normal CB Settings and Access Level for Tab set to Registered

With CB Conditionals Set to defaults

As expected

Registered User1 can view and edit TAB in Own Profile
Registered User1 can view but not edit TAB in User2 Profile


Want to allow User1 to view TAB in Own Profile but Not Edit it

CB Conditional 1 for TAB set to
Display - Tab Conditional
If Field - UserGroups
UserGroups - Registered
Mode - Hide
Registration - Enable
Profile Edit - Enable
Profile View - Disabled

Result, as expected for Own Profile, User1 Can View TAB in Profile but it is hidden in Edit Mode

Result NOT as expected for other Users Profile - TAB can no longer be seen in by User1 in User2 Profile

Want to allow member of another group to See and Edit that TAB Conditional 1 left as above and

CB Conditional 2 for TAB set to
Display - Tab Conditional
If Field - UserGroups
UserGroups - OtherGroup
Mode - Show
Registration - Enable
Profile Edit - Enable
Profile View - Enable

If user is member of OtherGroup then Result, as expected, User1 Can View TAB in Profile and can Edit in Edit Mode

If User1 is not a member of OtherGroup the Result is NOT as expected User1 can no longer view the TAB in own profile and cannot Edit see Tab in Edit Mode.


My overall objective is to implement a hierarchy of view/edit rights so just making users moderators gives them access to all tabs not just the ones I want them to be able to view/edit. e.g some TABS in a profile should be visible to the owning user but not editable by the owning user, but visible and editable by users in another group who have access to that tab but not all tabs.

Hope that is not too confusing!

Adrian

Using Moderator on own without conditionals does not work for me as some

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278072 by krileon
Replied by krileon on topic TAB Conditional Behaviour
So the tab can only be edited by OtherGroup, but it can be viewed by everyone else. In that case the below condition should work.

Condition 1
Display: Tab conditional
Field: Usergroups
Usergroups: OtherGroup
Mode: Show
Registration: Enabled
Profile Edit: Enabled
Profile View: Disabled

Just don't condition the view at all and only condition the edit views.

A tab or field can only be conditioned once in a specific view. If you condition it twice in profile edit for example then only the last condition matters. There is no AND/OR functionality at this time. So conditions will directly conflict with one another. Keep this in mind when configuring conditions.


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.

  • ahicks
  • ahicks
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
8 years 8 months ago #278097 by ahicks
Replied by ahicks on topic TAB Conditional Behaviour
Nope, this doesn't achieve anything as to be able to edit the member of OtherGroup has to also be a member of the Moderators group in which case they can edit anyway.

The owner of the profile can still edit the TAB whether they are a member of OtherGroup or not.

The attached MSWord File shows permission cases which work as expected in Table 1

Table 2 has permission cases and logic I think ought to work, but it doesn't based on single Conditional based on usergroup.




The problem seems to be that when you set a condition on a UserGroup whether HIDE or SHOW it HIDES or SHOWS without matching the vale of the Usergroup Set.

Example - I have a moderator user set with NotOtherGroup set - it shows or hides according to logic, but another moderator without NotOtherGroup follows the same HIDE or SHOW behaviour.

Adrian

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #278165 by krileon
Replied by krileon on topic TAB Conditional Behaviour
You can not condition the same tab or field more than once in the same view. It's not possible. There's no AND/OR condition capability yet (planned in later release). So multiple conditions in the same view will conflict with one another. You can debug your condition states further using the debug mode now included in latest CB Conditional release if needed. CB Moderators are not exempt from conditions.


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