Page 1 of 1

[SOLVED] FEU - disable expiration of users

Posted: Sun Aug 30, 2009 2:23 pm
by sn3p
Is there a way to disable the expiration of users in the Frontend Users module?
The users must be able to login unless they have been deleted by the admin.

I'm using an somewhat older version of the FEU (1.4.4) and CMSMS (1.4.1) because i've changed a lot of core files, so upgrading is not an option for now.
But please do tell me if newer versions have this option.

Re: FEU - disable expiration of users

Posted: Sun Aug 30, 2009 2:48 pm
by seensite
Do you have a section called "Session and Cookie Settings:" in the "Preferences" tab of your FEU ? If so, it should allow you to do this. Options available are:

>

...it is true for 1.6.9 version of FEU, I don't know for the former versions.

Re: FEU - disable expiration of users

Posted: Sun Aug 30, 2009 3:29 pm
by sn3p
Yes i've got these options and tried disabling them both, but no luck.
These options don't seem to control or affect the expiration in any way.

I did a quick search in the php files but couldn't find the expiration checks.
Any suggestions or solutions would be welcome!

Re: FEU - disable expiration of users

Posted: Sun Aug 30, 2009 3:37 pm
by seensite
And enabling them both ?
Enabled should keep your users loged in, disabled should kick them out, right ?

Re: FEU - disable expiration of users

Posted: Sun Aug 30, 2009 3:54 pm
by sn3p
Well, the expiration isn't controlled by cookies but serverside if i'm not mistaken. So these settings won't solve my problem. The cookies used for the settings you mentioned are keeping logins alive and remembering the login details.

Any other ideas?

Re: FEU - disable expiration of users

Posted: Sun Aug 30, 2009 4:05 pm
by seensite

Re: FEU - disable expiration of users

Posted: Sun Aug 30, 2009 7:43 pm
by jmcgin51
I think the OP is talking about users becoming inactive, not user sessions expiring.

I'm sure there is a way to make users permanently enabled, but why not just set the default expiration date to some date in the far distant future?  (520mo is the current max)

Re: FEU - disable expiration of users

Posted: Mon Aug 31, 2009 12:56 am
by sn3p
Thanks for the input guys!
Does anyone know in which php file the expiration check is done?

I prefer disabling the expiration instead of setting it to a date in the far future. Sometimes when a date is set, it saves as 0000-00-00 00:00:00 for some reason. If i (or my client) won't notice it the user's login will be disabled.

I could set the date in the far future, and hiding the expiration date drop-downs in admin, but that's my last option.
Still hoping there is some way to just permanently enable user logins.

Re: FEU - disable expiration of users

Posted: Mon Aug 31, 2009 2:09 am
by jmcgin51
to get started, try FrontEndUsers.module.php, around line 1034

remember that edits to the source code render your site unsupportable.

Re: FEU - disable expiration of users [SOLVED]

Posted: Tue Sep 01, 2009 12:21 am
by sn3p
While short on time I've decided to automaticly set a date in the far future, and just hide the field in the admin.
Thanks for the suggestions!

Re: FEU - disable expiration of users

Posted: Tue Sep 01, 2009 12:25 am
by calguy1000
In the future please keep your 'request for help for hacked code' out of here.

a) it's hacked code, we don't know what you've done or how youve done it.
b) you were running old stuff anyways... should somebody re-install/re-configure an older version of CMS and old-version of XXXXX module just to answer your questions.
c) threads like this just serve to dilute the results that other people with more ... straight forward (for lack of a better term)... needs are searching for
d) if you're proficient enough to hack the code, your proficient enough to find answers to questions like this yourself.