Skip to Content Skip to Menu

[SOLVED] Disable empty tabs and fields

  • Armenos
  • Armenos
  • OFFLINE
  • Posts: 9
  • Thanks: 1
  • Karma: 0
10 years 5 months ago - 10 years 5 months ago #244804 by Armenos
In 'Configuration' by 'User Profile' is possible to disable empty tabs and fields.
When I’m using a field with Image type, then this option doesn’t work because of avatar image.
How can I make this invisible?
Last edit: 10 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #244812 by krileon
Replied by krileon on topic Disable empty tabs and fields
That won't work for image fields in CB 1.x as image fields are never empty. In CB 2.x you'll be able to set "Empty Default" to "No image" to prevent it from display an image when none is uploaded (you can also select a different image of your choosing if you want).


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.

  • Armenos
  • Armenos
  • OFFLINE
  • Posts: 9
  • Thanks: 1
  • Karma: 0
10 years 5 months ago #244934 by Armenos
Replied by Armenos on topic Disable empty tabs and fields
When will CB 2.x be launched?
Is there a solution for my question till CB 2.x?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #244947 by krileon
Replied by krileon on topic Disable empty tabs and fields

When will CB 2.x be launched?

We've already released CB 2.0 Beta 3. As for stable, when it's done.

Is there a solution for my question till CB 2.x?

Yes, you can try using a delimiter field as the fields output instead of letting the field display directly. The below substitution should handle this fine.

[cb:if avatar!~"nophoto_n.png|tnnophoto_n.png"][cb:userfield field="avatar" /][/cb:if]


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.

  • Armenos
  • Armenos
  • OFFLINE
  • Posts: 9
  • Thanks: 1
  • Karma: 0
10 years 5 months ago #244956 by Armenos
Replied by Armenos on topic Disable empty tabs and fields
Hi Krileon,

I've tried this now it seems that this idea will work, but not jet
1. There is no possibility for user to change the photo.
2. The system puts somehow a photo from another tap.

you can see on this link: okn.mnatsian.com/index.php?option=com_comprofiler&task=userProfile&user=230&Itemid=172

thnx for you are helping me :)

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #244959 by krileon
Replied by krileon on topic Disable empty tabs and fields

1. There is no possibility for user to change the photo.

The user just needs to upload a new image to the image field. As long as the image field isn't empty it'll substitute in the actual fields value.

2. The system puts somehow a photo from another tap.

The example I provided is for the Profile Image field. If you're using it for another field then be sure you replace the field names in it. Example as follows as to what you need to replace.

[cb:if FIELD_NAME_HERE!~"nophoto_n.png|tnnophoto_n.png"][cb:userfield field="FIELD_NAME_HERE" /][/cb:if]


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.
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum