Skip to Content Skip to Menu

Using CBSubs fields to sort CB List somehow

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
8 years 2 months ago #285383 by startup
Hi team,

I have recently started using the awesome plan image plugin to show which members have purchase some kind of plan. I am showing the plan on image on their profile page and as a field in the CB List view.

Now, what I would like to do, but haven't been able to figure out, is this:

To sort the members in the CB list not by, e.g., last logged in date, but by who has a certain CBSubs plan. So that members who have a certain plan show first and would animate other members to upgrade to the same plan.

I was thing of some sort by plan-ID or but I am not sure how I could access any of the CBSubs field from the Advanced Field in the Sort tab for a CB list.

Is there any other way or a workaround to be able to sort members in a CB list based on their CBSubs plan subscription?

Thank you very much!

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 2 months ago #285401 by nant

startup wrote: Hi team,

I have recently started using the awesome plan image plugin to show which members have purchase some kind of plan. I am showing the plan on image on their profile page and as a field in the CB List view.

Now, what I would like to do, but haven't been able to figure out, is this:

To sort the members in the CB list not by, e.g., last logged in date, but by who has a certain CBSubs plan. So that members who have a certain plan show first and would animate other members to upgrade to the same plan.

I was thing of some sort by plan-ID or but I am not sure how I could access any of the CBSubs field from the Advanced Field in the Sort tab for a CB list.

Is there any other way or a workaround to be able to sort members in a CB list based on their CBSubs plan subscription?

Thank you very much!


Create a CB field to map the subscription plan and use CBSubs CB Gield integration to properly populate the field based on subscriptions.

Then use that field in your list to sort off.
The following user(s) said Thank You: startup

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

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
8 years 2 months ago #285763 by startup
Replied by startup on topic Using CBSubs fields to sort CB List somehow
Hello again,

I tested this and setting the value on plan assignment (and sorting off that field) works great.

However, setting the field to a new value on deactivation, e.g., when the plan expires, can it be that this is only done once a user logs out and back in again?

My test user's plan expired but the value for deactivation was not set. Only after logging out and back in, it seems to have taken effect. Is that the normal behaviour or is there anything else I need to do for it to automatically take place?

Thank you!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 2 months ago #285765 by krileon
Replied by krileon on topic Using CBSubs fields to sort CB List somehow
When the plan expires you need to trigger expirations. This is done by running the URL found within CBSubs > Settings > Global regularly with CRON, visiting CBSubs backend as an administrator (if configured), or the user re-logging. Until the expiration is triggered they won't be truly expired.


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

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

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
8 years 2 months ago #285895 by startup
Replied by startup on topic Using CBSubs fields to sort CB List somehow
OK. Thank you very much for the answer. So it's the URL for 'Url of cron task' in the section "Automated payments (this is only for use if required and supported in payment gateway and by payment service provider)"? That's the only one I see there at least.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 2 months ago #285987 by krileon
Replied by krileon on topic Using CBSubs fields to sort CB List somehow
No, it's within CBSubs > Settings > Global under "Automation settings".


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