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] CB Conditional - show tab only for profile owner

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
11 years 9 months ago - 11 years 8 months ago #219025 by Roland
Hello,

I tried to show a tab only for profile owner with new CB Conditional 2.0 as written here:
www.joomlapolis.com/support/tutorials/107-use-cases/18336-using-cb-conditionals-to-hide-or-show-fields-or-tabs

I used the same parameter but the tab isn't shown anymore (also not for the own profile)...

I used also the complete dtring: "[cb:userfield field="username" user="#me" /]"



Greetings, Roland

www.simple-quality.de - The Quality-Web-Portal
Attachments:
Last edit: 11 years 8 months ago by krileon.

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

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
11 years 9 months ago #219026 by Roland
Sorry:

Joomla 2.5.8
CB 1.9
CB Conditional 2.0.0

www.simple-quality.de - The Quality-Web-Portal

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219028 by krileon
The username field needs to be on a public and published tab. The field it self also needs to be set to show on profile. You can move it to a tab in a not shown on profile position though if you don't want it visible. Standard substitution access checks apply here.


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.

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
11 years 9 months ago #219040 by Roland
Hey Kyle,

must the tab real public? I have profil access only for registered users. And here the tab is viewable for all if you login.
The username is also show on profil.

www.simple-quality.de - The Quality-Web-Portal
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219059 by krileon
The tab it is on must be public and published if you want the substitution to apply to everyone in all situations. If it's set to registered only then for public users the username will return as empty. Again, normal substitution access checks apply. Place the substitution in a delimiter field and test its output before attempting to use it, this should always be step 1 when using substitutions to ensure you're getting the display you expect.


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.

  • Roland
  • Roland
  • OFFLINE
  • Posts: 161
  • Thanks: 16
  • Karma: 11
11 years 8 months ago #221082 by Roland
Hello,

I can't get this working...

1. I made a delimiter-field called "Test" with "[cb:userfield field="username" user="#me" /]":
=> It shows on every Profile my username as it should

2. I made a tab as shown on the image on my post before. First I insert in "To" my name "Roland" and the tab is shown correctly only on my profile. After that I changed "Roland" to "[cb:userfield field="username" user="#me" /]" but now the tab isn't shown anymore...

Chance to have a look on my site? It would also be okay as a paid working hour...

Greetings, Roland

www.simple-quality.de - The Quality-Web-Portal

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

Moderators: beatnantkrileon
Powered by Kunena Forum