It appears this should be relatively simple to do but I can't seem to get the thing working as I want it.
The operator must be able to set the date/time the account starts but may not change the account expiry time. This needs to expire 24 after after the account is activated (not created).
To accomplish this I tried creating custom form fields in the operator profile and then change modify_expire_time and expire_after fields.
The guest manual mentions:
- If modify_expire_time is “expire_after” or “expire_time”, then the expiration time is determined
according to the expire_after or expire_time fields as explained below.
-> how exactly? set a string value? change the options generarot or its parameters?
- If expire_after is set and not zero and the account will be activated immediately, then add the value
in hours to the current time to determine the expiration time.
- If expire_after is set and not zero and account activation is set for a future time (schedule_time)
instead of the current time, then the expiration time is calculated relative to the activation time
instead of the current time.
- Otherwise, if expire_after is zero, negative or unset, and expire_time has been specified, use that
expiration time. If the expire_time specified is in the past, set do_expire to 0 and ignore the
specified expiration time.
- Otherwise, if expire_time is not specified, then the expire_time is not set and do_expire will
always be set to zero.
So I tried pretty much any combination of the "modify_expire_time" and "expire_after" form Fields but I cannot get it to work as intended. It keeps complaining: "The expiration time occurs prior to the activation time."
Anyone that can lend a hand with this?