Skip to Content Skip to Menu

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

[SOLVED] CB Conditionnal

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 8 months ago - 11 years 8 months ago #220919 by nijan
[SOLVED] CB Conditionnal was created by nijan
Hello,

I've tested CB conditionnal on local and everything works fine. Very nice CB plugin !
I just installed it on OVH and it has no effect.

On local I worked with hardcoded value field but with OVH I work with _UE_VALUE in /components/com_comprofiler/plugin/language/default_language/default_language.php.

For example :

// Type of account
DEFINE('_UE_ACCOUNT_TYPE_LABEL','Type de compte');
DEFINE('_UE_ACCOUNT_TYPE1','Professionnel');
DEFINE('_UE_ACCOUNT_TYPE2','Talent');
DEFINE('_UE_ACCOUNT_TYPE3','Spectateur');

--> Tab condition preference
If field "Type de compte" = "_UE_ACCOUNT_TYPE2" show ...
When I select "Talent" in my drop down list _UE_ACCOUNT_TYPE_LABEL ... nothing :-(

Any idea ? Missing something ?

Thanks !
Last edit: 11 years 8 months ago by krileon.

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 8 months ago #220921 by nijan
Replied by nijan on topic CB Conditionnal
Additionnal information ...

If I test a field with empty or not empty, the condition works.
If I test with a hardcoded value it doesn't works.

Thanks !

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 8 months ago #220942 by nijan
Replied by nijan on topic CB Conditionnal
Hi,

I did more test and I find the problem.

If the name of a field is a variable (like _UE_VARIABLE_NAME) I doesn't work even if writing the value.

Example :

DEFINE('_UE_VARIABLE_NAME','Test');

If I test with conditional value _UE_VARIABLE_NAME or Test, I doesn't work.

How can I fix this issue ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #220975 by krileon
Replied by krileon on topic CB Conditionnal
Created below bug ticket to fix for next release.

forge.joomlapolis.com/issues/3912

It's due to values always being translated.


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: nijan

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 8 months ago #220980 by nijan
Replied by nijan on topic [#3912] CB Conditionnal
Hi Krileon,

Many thanks for this work !
When this fix will be available ?

This issue can be closed for me (I don't find where I can closed it myself :huh:).

Cheers !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #220990 by krileon
Replied by krileon on topic [#3912] CB Conditionnal

When this fix will be available ?

Now, 3.0.2 has been released. Simply edit your field and set "Translate Value" to "Disable".


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