Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] Strange result for query field

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 5 months ago #207859 by fribse2011
Replied by fribse2011 on topic Re: Strange result for query field
That didn't change anything.
But removing a user that was manually created (in joomla's user management) added to the group in question, and didn't have any info in it, removed the problem.
I looked up the ID's in the comprofiler table, and it's all NULL's, except the 'approved', 'confirmed' and 'avatarapproved'.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48708
  • Thanks: 8319
  • Karma: 1447
12 years 5 months ago #207899 by krileon
Replied by krileon on topic Re: Strange result for query field
Run synchronization within CB Tools to fix users added through Joomla user manager. You need to always ensure to use CB user management.


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.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 5 months ago #207904 by fribse2011
Replied by fribse2011 on topic Re: Strange result for query field
The users are synced (I've actually run most of the checks I can find), but it still shows strange results.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48708
  • Thanks: 8319
  • Karma: 1447
12 years 5 months ago - 12 years 5 months ago #207918 by krileon
Replied by krileon on topic Re: Strange result for query field
Don't know what to tell you. Seams to be working fine in all my tests. There's some sort of odd conflict somewhere. Seams like you've some corrupt users or something of the sort. Maybe try the below.
Code:
SELECT IF( `by`, `by`, ' ' ) FROM `kef_postnumre` WHERE `nr` = '[cb_postnummer]'

The above would return a blank if there is no `by`.


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.
Last edit: 12 years 5 months ago by krileon.

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 2 months ago - 12 years 2 months ago #214464 by fribse2011
Replied by fribse2011 on topic Re: Strange result for query field
Hmm, I had put this away, to get some fresh eyes on it, but it's still not working properly.
I'll start from the top

I have these fields:
name (predefined)
cb_adresse (text)
cb_postnrby (delimiter)
cb_medlemsnummer (integer)
cb_betalt (multiselect)

placed in a list

Users enter a field called cb_postnummer in their profile.
cb_by is then found via a query looking like this:
[cb:if cb_postnummer!=""]SELECT `by` FROM `kef_postnumre` WHERE `nr` = '[cb_postnummer]'[/cb:if]
cb_postnrby is then defined as a delimiter field containing
[cb_postnummer] [cb_by]

I tried both the 'if' construction and the select construction, the if produced the city, but didn't solve the problem, the select didn't produce the city (as shown below).
Notice that for the person that doesn't have a city given, the two fields are empty (as they should be), but on the next line the 'tag-replacement' in the delimiter field fails. Maybe the problem lies in the delimiter field instead?


Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Attachments:
Last edit: 12 years 2 months ago by fribse2011.

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

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 2 months ago - 12 years 2 months ago #214465 by fribse2011
Replied by fribse2011 on topic Re: Strange result for query field
Just tried something stupid, I set the two fields cb_postnummer and cb_by to show on the profile, that is normally only shown on the 'edit profile' as I can't show them after one another on one line unless it's a delimiter field.
So I only have the delimiter field showing on the profile.
So for this test I have them shown on the profile, and now it displays correctly in the list as well!!
This is not a solution, as I don't want the two fields to be shown seperately, but it does point to the delimiter being the problems.



Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Attachments:
Last edit: 12 years 2 months ago by fribse2011.

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

Moderators: beatnantkrileon
Powered by Kunena Forum