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] Query multicheckbox question

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
11 years 6 days ago - 11 years 3 days ago #235838 by KatoKalin
[SOLVED] Query multicheckbox question was created by KatoKalin
When I have a regular multicheckbox field and I make it save the values as language strings, the output is as expected, meaning that on profile or in user lists, the language string gets properly translated.

If I do the same with a query multicheckbox field, the output gets translated for registration and even in profile view in backend. But in userlist view only the language string shows up.

When I check on this in phpmyadmin I can see no difference. Both the query and the non-query checkbox field both have the language string saved as value. Only the display differs as described.

Is this a bug?
Last edit: 11 years 3 days ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 6 days ago #235851 by krileon
Replied by krileon on topic Query multicheckbox question
Ensure CB Query Field is loaded after CB Core within CB > Plugin Management. It could be due to it loading first and resulting in language plugins not being loaded yet. I'm working on addressing these odd language load issues in next CB release to prevent this from ever happening.


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
11 years 6 days ago - 11 years 6 days ago #235854 by KatoKalin
Replied by KatoKalin on topic Query multicheckbox question

krileon wrote: Ensure CB Query Field is loaded after CB Core within CB > Plugin Management.

It is already the last plugin in the list.
Last edit: 11 years 6 days ago by KatoKalin.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 6 days ago #235865 by krileon
Replied by krileon on topic Query multicheckbox question
Please make the below edit and see if issue persists.

IN: /components/com_comprofiler/plugin/user/plug_cbqueryfield/cbqueryfield.php
ON: Line 133
FROM:
Code:
$fieldName = $field->get( 'name' );
TO:
Code:
cbimport( 'language.cbteamplugins' ); $fieldName = $field->get( 'name' );


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
11 years 6 days ago #235892 by KatoKalin
Replied by KatoKalin on topic Query multicheckbox question

krileon wrote: Please make the below edit and see if issue persists.

IN: /components/com_comprofiler/plugin/user/plug_cbqueryfield/cbqueryfield.php
ON: Line 133
FROM:

Code:
$fieldName = $field->get( 'name' );
TO:
Code:
cbimport( 'language.cbteamplugins' ); $fieldName = $field->get( 'name' );

Issue still there. In the search form itself it displays fine. But in the user list results still the language strings do not get translated.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 5 days ago #235921 by krileon
Replied by krileon on topic Query multicheckbox question
I've no idea then. The above loads in CB language files. Ensure your language string is defined in all your language plugins as perhaps it's loading in a different language.


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