Page 1 of 1

Setting FrontEndUsers Expire Date to a specific date

Posted: Sat Dec 21, 2013 6:22 am
by forest-guy
CMS Version 1.11.7
CGExtensions 1.38
FrontEndUsers 1.21.18
CustomContent 1.9
SelfRegistration 1.8.1
CGUserDirectory 1.4.3

I am working on a site for a club where they want members to be able to register themselves and at the end of the calendar year their account expires. The self registration is working fine. I have the expire date set for 12 months - but what I really need is to have it automatically expire at midnight on the last day of December of the current year. I really don't want to have to manually set this for each user. Is there a way to have this as the default when created or a page/command used by an administrator that would blanket set everyone's Expire Date to a specific date & time? Has anyone developed something along these lines?

Thanks in advance

Re: Setting FrontEndUsers Expire Date to a specific date

Posted: Mon Dec 23, 2013 3:55 am
by JohnnyB
The only thing I can think of is using a UDT that will set their expiry date when the user is created. The UDT would be triggered by the built-in Events system (under Extensions) when a user is created via FEU. There might be PHP examples in the forum to get you started.