Skip to Content Skip to Menu

[SOLVED] need SQL to put into the CB List so I can get accurate list of Active CBsubs users

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
8 years 6 months ago #280313 by ThePiston
one more question on this - the advanced filter should include the entire query with the SELECT included or just the WHERE clause? I'm guessing the entire query from SELECT to the end, thanks

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

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

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
8 years 4 months ago #281999 by beat

ThePiston wrote: one more question on this - the advanced filter should include the entire query with the SELECT included or just the WHERE clause? I'm guessing the entire query from SELECT to the end, thanks


Yes, as already replied by Kyle above.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
8 years 4 months ago #282007 by ThePiston

krileon wrote: The exact usage is directly in the below post.

www.joomlapolis.com/forum/277-cbsubs-gpl-support/227615-user-lists-by-subscription#255712

You need to directly copy and paste that entire query string as your Advanced filter for your userlist. I'm not sure why you only took the WHERE statement from it.

I did that because in the popup instructions for the Filter field, you specifically say to only include the WHERE clause:


CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
8 years 4 months ago #282012 by krileon
The query I provided is an advanced usage called a subquery. The tooltip is not telling you to only include the WHERE of a subquery or anything like that. It's telling you that anything you put there will be added as WHERE to the query.


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.

  • ThePiston
  • ThePiston
  • OFFLINE
  • Posts: 334
  • Thanks: 26
  • Karma: 1
8 years 4 months ago #282024 by ThePiston
ok, got it now, thanks

CB 2.3, CBsubs 4.3, PHP 7.1, J! 3.9.X

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

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
8 years 4 months ago #282198 by beat
Awesome! Marked as solved.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

Moderators: beatnantkrileon
Powered by Kunena Forum