Skip to Content Skip to Menu

[#5335] CB Conditionals Tab issue

  • Doromi
  • Doromi
  • OFFLINE
  • Posts: 9
  • Thanks: 1
  • Karma: 1
9 years 4 months ago - 9 years 4 months ago #265704 by Doromi
[#5335] CB Conditionals Tab issue was created by Doromi
Hi,

I work with Joomla 3.4.1, CB 2.0.9 and CB Conditionals 4.0.5. Just deleted CB Privacy without any change of the following behaviour:

I have a tab that I want to control via CB Conditionals - only special users (condition via username) should be able to see this tab.

This condition works (put my username to test), and I do see the two fields belonging to this tab.
BUT - I can't save values to these fields, and I don't see the values I have manually entered via phpmyadmin.

Do I have to put conditions on these fields as well to be able to read / write values ?

Where else could I have done something stupid ?

If I switch off the condition in the tab everything runs smoothly, but of course - for all users...

Thnx,
doromi
Last edit: 9 years 4 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265714 by krileon
Replied by krileon on topic CB Conditionals Tab issue
What do you mean you're not able to save values? They don't show up in profile edit? You change the value, click update, and the value is same as the old one? What is the exact condition you're using? You maybe better off just using a view access level and assigning a special usergroup to users that's in that view access level then setting the access of your tab to that view access level. This would be significantly easier to maintain than a list of usernames.


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.

  • Doromi
  • Doromi
  • OFFLINE
  • Posts: 9
  • Thanks: 1
  • Karma: 1
9 years 4 months ago #265741 by Doromi
Replied by Doromi on topic CB Conditionals Tab issue
Kyle,

thanks for your answer.

krileon wrote: What do you mean you're not able to save values? They don't show up in profile edit? You change the value, click update, and the value is same as the old one?

Exactly. Even worse - a value entered directly entered in the database doesn't show up either in profile edit.

What is the exact condition you're using?



You maybe better off just using a view access level and assigning a special usergroup to users that's in that view access level then setting the access of your tab to that view access level. This would be significantly easier to maintain than a list of usernames.

Not really - these are tabs for single persons one by one, and I really would prefer not to create usergroups for single persons...

Thanks for any good idea,

Doris

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265771 by krileon
Replied by krileon on topic CB Conditionals Tab issue
Ok, so you can see the inputs and the tab, but the information doesn't save. If that's the case the condition is working fine during jQuery, but it's failing during the post processing. Do you allow the username to be changed? If not then the post value of the username field could be empty so it's conditioning against an empty username. Try using the below condition.

Field: Custom > Value
Value: [username]
Translate Value: No


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.

  • Doromi
  • Doromi
  • OFFLINE
  • Posts: 9
  • Thanks: 1
  • Karma: 1
9 years 4 months ago #265829 by Doromi
Replied by Doromi on topic CB Conditionals Tab issue
Hi Kyle,

thanks for your reply.

krileon wrote: Ok, so you can see the inputs and the tab

Actually, no. I can see the tab but the fields are empty although the fields in the database table are filled. (When I switch off the condition they are shown.)

but the information doesn't save. If that's the case the condition is working fine during jQuery, but it's failing during the post processing.

Do you allow the username to be changed?

No, I don't because the username is connected to LDAP data to check for the password.

If not then the post value of the username field could be empty so it's conditioning against an empty username. Try using the below condition.

Field: Custom > Value
Value: [username]
Translate Value: No


Thanks for the idea. I tried it - still the same. I see the tab and the (empty) fields. I can enter data but they won't be saved.

It's a pity because in CB 1.9.1 it worked ;(

Any other good idea ?

Kind regards, Doris

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

  • Doromi
  • Doromi
  • OFFLINE
  • Posts: 9
  • Thanks: 1
  • Karma: 1
9 years 4 months ago - 9 years 4 months ago #265834 by Doromi
Replied by Doromi on topic CB Conditionals Tab issue
Can't believe it - I found it.

You can use the condition for
- Registration
- Profile editing
- Profile showing

Because of the fact that registration is completely switched off on my website (only super users are allowed to enter new users) I had left the condition for "Registration" on "deactivated".
Just to have tried it I switched it to "activated", and - it works...
I see the data already in the field, can change them, save...

But WHY do I have to switch something on that I don't use to get something else running ?

At least now this problem is solved...

Kind regards, Doris
Last edit: 9 years 4 months ago by Doromi.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum