Skip to Content Skip to Menu

[SOLVED] Delete from usergroup when plan expires

  • nag
  • nag
  • OFFLINE
  • Posts: 15
  • Thanks: 3
  • Karma: 0
8 years 7 months ago - 8 years 6 months ago #280854 by nag
Hi Community,

When a user subscribes to a plan, it's easy to add him to a Joomla user group (CBSubs > Plan > ... > Access).

But when the subscription expires, the user stays in this group. It's a bit annoying, isn't it? What can I do to change it?
Last edit: 8 years 6 months ago by nant.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 7 months ago #280887 by nant
Replied by nant on topic Delete from usergroup when plan expires

nag wrote: Hi Community,

When a user subscribes to a plan, it's easy to add him to a Joomla user group (CBSubs > Plan > ... > Access).

But when the subscription expires, the user stays in this group. It's a bit annoying, isn't it? What can I do to change it?


Joomla version?
CB Version?
CBSubs version?

Do you have a Grace period set for this plan you are testing with?

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

  • nag
  • nag
  • OFFLINE
  • Posts: 15
  • Thanks: 3
  • Karma: 0
8 years 7 months ago #280934 by nag
Replied by nag on topic Delete from usergroup when plan expires
Sorry.

Joomla 3.5.1
CB 2.0.14
CBSubs 4.0.2.

The plans I'm testing expire after 12 hours.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 7 months ago #280974 by nant
Replied by nant on topic Delete from usergroup when plan expires

nag wrote: Sorry.

Joomla 3.5.1
CB 2.0.14
CBSubs 4.0.2.

The plans I'm testing expire after 12 hours.


Please upgrade to latest CBSubs nightly from following link:

www.joomlapolis.com/component/docman/doc_details/671-cbsubs-gpl-nightly-build

and retest, but first please make sure yo have not configured a grace period in the plan you are testing.

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

  • nag
  • nag
  • OFFLINE
  • Posts: 15
  • Thanks: 3
  • Karma: 0
8 years 6 months ago #280985 by nag
Replied by nag on topic Delete from usergroup when plan expires
Plan duration is 12 hours and grace period is 1 hour.

Many hours after the end of the grace period, users are still in the group.

OK Nick, I'm gonna test the last version.
The following user(s) said Thank You: nant

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

  • nag
  • nag
  • OFFLINE
  • Posts: 15
  • Thanks: 3
  • Karma: 0
8 years 6 months ago #281034 by nag
Replied by nag on topic Delete from usergroup when plan expires
Now, it's nearly OK.

When a subscription is expired, the user status stays active until:
1. He tries to connect. The algorithm detects the subscription is over, his status changes to "expired" and the user leaves the Joomla group. That's OK.
2. The cronjob (CBSubs > Parameters > Massive expiration) detects the subscription is over. Then the status changes to "expired" but the user stays is the Joomla group. This seems to be a bug.

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

Moderators: beatnantkrileon
Powered by Kunena Forum