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 #245399 by Armenos
Replied by Armenos on topic Disable empty tabs and fields
The actual field is an image field from CB and Delimiter field I’ve made like you said.

Actual field: Image field: cb_profielfoto2 on Tab: Contactpersoon 2
delimiter field: cb_profielfoto22 on Tab: Contactpersoon 2

The code in delimiter field:
[cb:if cb_profielfoto2~"nophoto_n.png|tnnophoto_n.png"][cb:userfield field="cb_profielfoto2" /][/cb:if]

Link with image:
test.okn-nieuwegein.nl/index.php?option=com_comprofiler&task=userProfile&user=231&Itemid=172

Link without image:
test.okn-nieuwegein.nl/index.php?option=com_comprofiler&task=userProfile&user=245&Itemid=172

Like you see, it still appears on the website.
What do I wrong? Can you help me?

Regards Armen

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 #245420 by krileon
Replied by krileon on topic Disable empty tabs and fields
The conditional is backwards. Change ~ to !~ and it should work as expected.


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 #245428 by Armenos
Replied by Armenos on topic Disable empty tabs and fields
I've changed it, now there are two images

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

test.okn-nieuwegein.nl/index.php?option=com_comprofiler&task=userProfile&user=230&Itemid=172

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 #245430 by krileon
Replied by krileon on topic Disable empty tabs and fields
You need to move the original image field to a tab in a not shown on profile position so it won't show, but can be used in substitutions. As is you're rendering both the delimiter field and the original image field at the same time.


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 #245432 by Armenos
Replied by Armenos on topic Disable empty tabs and fields
I made a new tab and called it "notforuse" :)
and gave it a position: not_on_profile_1
Still the image appears

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 #245434 by Armenos
Replied by Armenos on topic Disable empty tabs and fields
maybe important to know
the website is built on Joomla! 3.3.0 on server with php 5.4.28 and Database Version 5.5.36

And it shows:
Strict Standards: Non-static method pbcbRatings::_getLanguageFile() should not be called statically, assuming $this from incompatible context in /home/oknnieuw/public_html/components/com_comprofiler/plugin/user/plug_cbprofilebook/cb.profilebook.php on line 41

Maybe it has to do with this issue?

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

Moderators: beatnantkrileon
Powered by Kunena Forum