Im running tests on my website and i created a integer number Field: "cb_serviceprovidersubscription" to be set to 1 when the user subscribes to an upgrade.
This goes to 0 when the subscription expires
The requirements for being placed on the user list are:
a) User Groups to Include in List: "Service Provider"
and
b) Filter : `cb_serviceprovidersubscription` ='1'
The problem is that when the user subscribes to the upgrade they are placed on the user list. but when their subscription expires they remain on the user list..
However next time they log in they are removed from the userlist.
This is bad for me as i wish to have the user removed from search as soon as their subscription expires
You need to trigger their expiration. The reason it waits until they login is because they're not actually expired until the expiration is triggered. You can trigger expirations with CRON, navigating to CBSubs backend, having the user login, or having any user login. You can adjust this behavior within CBSubs > Settings > Global.
Please also note there is a bug with value reversal in CBSubs Fields integration. You can a quickfix in the below topic to resolve the issue.
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.