We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Member expiry

How Do I?

deswork's avatar
deswork
122 posts
3 years ago
deswork's avatar deswork

Hi,

Looking for a way to move members to a ‘Dormant’ member group if they haven’t logged into the site for x amount of time.

I’ve looked around the add-ons but cant find anything to achieve this.

Not sure if this could be done with an SQL query and cron job that could be scheduled daily.

Alternatively is there some add-on that could generate a list of members that haven’t logged into the site for x amount of time.

I know it’s a bit vague but does anyone have thoughts on this.

I’d be open to developers quoting to produce an add-on that could provide this function. A proper brief would be provided if there’s any interest.

Thanks

Wayne.

       
vw000's avatar
vw000
482 posts
3 years ago
vw000's avatar vw000

An addon could certainly do this but you could as well externally and then just change the database with the SQL queries.

Basically:

A query to check the last time logged in for all members, probably with a cron once a day.

Then run another query if they match your time and change the member group for the affected results.

You could then reverse it as well. And you probably want to email users first, assuming it will affect their functionality if you move them to a more restricted group.

       
deswork's avatar
deswork
122 posts
3 years ago
deswork's avatar deswork

Thanks, I’ll look at a cron and SLQ query as my first route.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.