[SOLVED] How to hide an empty image with CB Conditional

12 years 1 month ago - 12 years 1 month ago #195424 by Pere LK
Hi,
I'm trying to hide an image field when it's empty (not the avatar).
In the conditional information I've try :
Display: Field conditional self
Field: image1
Operator: empty
Mode: Hide
Registration: Disabled
Profile Edit: Disabled
Profile View: Enabled
=> Not Working

I've check in the mysql : the field is null

In my tab I still have the empty img with title...

Thanks

Please Log in to join the conversation.

12 years 1 month ago #195546 by Pere LK
No idea ?

Please Log in to join the conversation.

12 years 1 month ago - 12 years 1 month ago #195547 by krileon
An image field is never truly empty. It'll return the dummy image file (e.g. DOMAIN/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_n.png) as its value so you'll need to check for that. The below condition I've confirmed works fine.

Operator: Is REGEX
Value: /nophoto_n.png|tnnophoto_n.png/

No idea ?

Need to be more patient. I'm going through all unreplied support posts. Please keep in mind we don't work weekends. See signature for support hours (from me). :)


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: Pere LK, pepperstreet

Please Log in to join the conversation.

12 years 1 month ago #195562 by Pere LK
Thanks it's working.
Sorry for the up I was thinking you have miss my post because other post had a answer and mybe because I work 16/24h on my project ^^

Please Log in to join the conversation.

12 years 1 month ago #197824 by Pere LK
The image is back ! The conditional param don't have been change.
I just move the website on the prod server... I don't understand where this change can affect condition plugin....

Please Log in to join the conversation.

12 years 1 month ago #197846 by krileon
CB Conditional doesn't suddenly stop working. Something you've changed has resulted in it failing. You'll need to review your install after the move to see what all has changed.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.212 seconds

Facebook Twitter LinkedIn