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

12 years 1 month ago #197849 by Pere LK
The weird thing is all other conditional (on tab for example) still working.
There is something about the value tested by the REGEX but what ? How can I echo the tested value ?

Please Log in to join the conversation.

12 years 1 month ago #197872 by krileon

There is something about the value tested by the REGEX but what ?

I don't know, it looks fine to me.

How can I echo the tested value ?

You'd need to edit the class file and add a var_dump to see what it's trying to match against.

Perhaps you've a field permission issue where the field value can't even be retrieved?


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.

12 years 1 month ago #197885 by Pere LK
Of course I have to <pre>var_dump</pre> but what object in wich file/class ?
I have already do it on the $this object of plugin/template/templatename/templatename.php but I don't have any anything relevant because the render of the html is already store in the object.

I hope CB 2.0 well be more MVC compliant ;-)

Please Log in to join the conversation.

12 years 1 month ago #197887 by krileon

Of course I have to <pre>var_dump</pre> but what object in wich file/class ?
I have already do it on the $this object of plugin/template/templatename/templatename.php but I don't have any anything relevant because the render of the html is already store in the object.

components/com_comprofiler/plugin/user/plug_cbconditional/cbconditional.class.php

I hope CB 2.0 well be more MVC compliant

CB is MVC. CB 2.0 will improve on this of course. Just because it's not structured the same as Joomla does not mean it isn't MVC.


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.

12 years 1 month ago - 12 years 1 month ago #197894 by Pere LK
There is any specific $var you need to help me ?

I agree that the Joomla structure is specific MVC obvislousy I wanted to say : a nice overridable Joomla structure like for us making nice template easily ;-)

edit :
Echo $value => $field_value of the cbconditionalClass::getMatch( $field_value, $operator, $value );

/nophoto_n.png|tnnophoto_n.png/=>http://xxxxxxxxxxxxxxx/components/com_comprofiler/plugin/templates/oxalis/images/avatar/nophoto_n.png

$Match => 0

Still don't understand.
It seems doesn't working anymore in the dev server too...
Attachments:

Please Log in to join the conversation.

12 years 1 month ago #197902 by Pere LK
I have use only this REGEX expression :#nophoto_n.png#
because the array treatment don't inspire me (but I'm not a real coder ^^ but i d'ont udernstand the implode('|*|) and now I have $match = 1 but still have the default image on screen...

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.226 seconds

Facebook Twitter LinkedIn