Skip to Content Skip to Menu

Obtain a list of new subscribers from the front end?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48891
  • Thanks: 8358
  • Karma: 1450
10 hours 34 minutes ago #340503 by krileon

That works well. Thanks. Any way to download that user list as a file?

There's no functionality to download the results of a userlist.

Sorry, also how do I show only users joined since a certain date, say September 2023?

You can either add to the Advanced Filter to take into account their registration date or you can set the Register Date field to be searchable so you can just search the userlist at anytime with a date filter.


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.

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 113
  • Thanks: 13
  • Karma: 1
10 hours 30 minutes ago #340504 by wintercorn
The problem is that a lot of users were imported in after their sub started on a previous site so the registerdate field isn't an accurate start date. The cb_substartdate field is custom htmI and only contains a calculation as follows:

[cbsubs:if user="#displayed" plan="1" status="A"] [cbsubs:subscriptions user="#displayed" plan="1" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="2" status="A"] [cbsubs:subscriptions user="#displayed" plan="2" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="3" status="A"] [cbsubs:subscriptions user="#displayed" plan="4" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="4" status="A"] [cbsubs:subscriptions user="#displayed" plan="4" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="9" status="A"] [cbsubs:subscriptions user="#displayed" plan="9" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="11" status="A"] [cbsubs:subscriptions user="#displayed" plan="11" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="14" status="A"] [cbsubs:subscriptions user="#displayed" plan="14" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="1" status="X"] [cbsubs:subscriptions user="#displayed" plan="1" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="2" status="X"] [cbsubs:subscriptions user="#displayed" plan="2" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="3" status="A"] [cbsubs:subscriptions user="#displayed" plan="4" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="4" status="X"] [cbsubs:subscriptions user="#displayed" plan="4" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="9" status="X"] [cbsubs:subscriptions user="#displayed" plan="9" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="11" status="X"] [cbsubs:subscriptions user="#displayed" plan="11" output="signup_date" /] [/cbsubs:if][cbsubs:if user="#displayed" plan="14" status="X"] [cbsubs:subscriptions user="#displayed" plan="14" output="signup_date" /] [/cbsubs:if]

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48891
  • Thanks: 8358
  • Karma: 1450
9 hours 48 minutes ago #340508 by krileon
Then you'll need to add to the Advanced Filter for that. Advanced Filter directly adds to the WHERE clause of the userlist query so you can add whatever SQL you need for your custom like. Advanced Sort adds directly to the ORDER BY clause of the userlist query. You've complete control over who it shows and in whatever order you want.

With my below post from earlier for example you can adjust it so it only returns users with a subscription date after a specific date.

www.joomlapolis.com/forum/professional-members-support/247364-obtain-a-list-of-new-subscribers-from-the-front-end?start=0#340469

Example as follows.

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


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