Skip to Content Skip to Menu

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

CB Condiionals with email adress as login and hide profile

  • comyoo
  • comyoo
  • OFFLINE
  • Posts: 87
  • Thanks: 1
  • Karma: 0
11 years 9 months ago #219542 by comyoo
Hi,

I've waited so long for this feature: CB Tab only viewable by profile owner

Dus we use the login via e-mailadress and because of that we don't want to show the username on the profile. But if you hide the username, this condition isn't working. I followed the tutorial www.joomlapolis.com/support/tutorials/107-use-cases/18336-using-cb-conditionals-to-hide-or-show-fields-or-tabs

and tried to change the [cb:userfield field="username" user="#me" /] into [cb:userfield field="email" user="#me" /] but that isn't working.

Can you help me?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219579 by krileon
Depends on how the email field is configured. If it's set to email form then substitution matching it probably won't work. You can try the below though.

Field: Email
Operator: Equal To
Value: [cb:userdata field="email" user="#me" /]

Substitutions respect full access controls and configurations, always keep this in mind when using them.

Please also keep in mind you do not have to display the username field for you to use it as the tutorial details. Simply move it to a tab that is in a not shown on profile position. Ensure the tab is public and published then set the username field to display on profile, but because of its tab position it won't actually be visible however substitutions for it will work fine.


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