Setting FrontEndUsers Expire Date to a specific date

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
forest-guy
Forum Members
Forum Members
Posts: 32
Joined: Fri Jan 23, 2009 11:10 pm

Setting FrontEndUsers Expire Date to a specific date

Post 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
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Setting FrontEndUsers Expire Date to a specific date

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Post Reply

Return to “Modules/Add-Ons”