Skip to Content Skip to Menu

[SOLVED] CB List Management & CBSubs

  • AusAPT
  • AusAPT
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
10 years 10 months ago - 10 years 10 months ago #239520 by AusAPT
[SOLVED] CB List Management & CBSubs was created by AusAPT
What value do I need to enter in the CB List "filter" field to only display members with "any plan active" in a CB list?

Attachments:
Last edit: 10 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
10 years 10 months ago #239628 by krileon
Replied by krileon on topic CB List Management & CBSubs
The below should ensure the users row has at least 1 active subscription.

Code:
( ( SELECT COUNT(*) FROM `#__cbsubs_subscriptions` AS sub WHERE sub.`user_id` = u.`id` AND sub.`status` = 'A' ) >= 1 )

Adjust as needed. Please note I did not test the above.


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

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

  • AusAPT
  • AusAPT
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
10 years 10 months ago #239632 by AusAPT
Replied by AusAPT on topic CB List Management & CBSubs
Thanks Kyle.
That did the trick.

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

  • jfredball
  • jfredball
  • OFFLINE
  • Posts: 8
  • Thanks: 2
  • Karma: 0
9 years 1 month ago #271495 by jfredball
Replied by jfredball on topic [SOLVED] CB List Management & CBSubs
This didn't work for me, pasted directly in. What adjustments might need to be made?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
9 years 6 days ago #273840 by krileon
Replied by krileon on topic [SOLVED] CB List Management & CBSubs
No adjustments need to be made. Enable debug mode and maximum error reporting in Joomla global configuration before testing to allow errors to expose.


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