Skip to Content Skip to Menu

Searchable Multicheckbox Field Match - "OR" option

  • PHPMB
  • PHPMB
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
12 years 9 months ago #188420 by PHPMB
Joomla 1.5.25 CB 1.7
The first problem I get when I enable the debug mode is:

500 - JDatabaseMySQL::query: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 SQL=SELECT name AS mysqlfield FROM jos_users WHERE id =

The rest is in the attachment.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48437
  • Thanks: 8275
  • Karma: 1443
12 years 9 months ago #188447 by krileon
You've a fatal SQL error that's coming from CB MySQL Field (plug_cbmysqlfield). We're not this plugins developer please contact the developer of your plugin for further support. For the time being I recommend disabling the plugin or removing the field.

My guess is it performs a database query and outputs the results as a field; we've an official plugin to provide that (CB Query Field) as is available from our forge. It's possible if you supplied the query your self there could be an error in the query.

Once issues with the field are resolved please confirm if your userlist issue persists.


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.

  • PHPMB
  • PHPMB
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
12 years 9 months ago - 12 years 9 months ago #188470 by PHPMB
Here is the new file with information.

File Attachment:

File Name: debugpagesearch.txt
File Size:8 KB



I still have the problem.
When I search the word Helikopter I also get Mini-Helikopter.

Thanks for the help.
By the way: plug_cbmysqlfield is much easier to find on the Joomlapolis.com website than CB Query Field.
Attachments:
Last edit: 12 years 9 months ago by PHPMB.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48437
  • Thanks: 8275
  • Karma: 1443
12 years 9 months ago #188475 by krileon
The below filter/search criteria appears to be applied.
Code:
AND ((ue.`cb_gemaaktmet` LIKE '%Helikopter%')) AND (`cb_provincie` ='Noord-Brabant' AND `cb_categorie` ='luchtfotografen')

Which specifically is the field you're searching on? Everything looks correct from what I can tell.


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.

  • PHPMB
  • PHPMB
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
12 years 9 months ago #188479 by PHPMB
I also have term Mini-Helikopter.
Code:
AND ((ue.`cb_gemaaktmet` LIKE '%Mini-Helikopter%')) AND (`cb_provincie` ='Noord-Brabant' AND `cb_categorie` ='luchtfotografen')

When I am searching on Helikopter, I don't want to have the Mini-Helikopter in my results.
Is that possible?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48437
  • Thanks: 8275
  • Karma: 1443
12 years 9 months ago - 12 years 9 months ago #188556 by krileon
Yes, but you'll have to set your userlist to Simple search "is". The way it is set now is it'll take what you searched for and match anything that contains that word. So for example if you search "Helikopter" then it will always also show "Mini-Helikopter" as it contains "Helikopter". Simple "is" searching is an exact match meaning the value must exactly match what you searched.


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 9 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum