Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
logging users
Hello – would like to be able to log when editors etc login to the admin panel to make changes etc. right now all can determine is that a user has logged on in Feb. I would like more info: date, month, time.
Is there a plugin for this?
…. texted postive
Offline
#2 2010-02-15 22:14:19
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: logging users
You can edit the date format yourself in /textpattern/include/txp_admin.php, around line 324:
e.g. td($last_login ? safe_strftime('%d.%m.%Y %H:%M:%S', $last_login) : '').
is displayed as 05.02.2010 21:43:57
Edit: full paste, please ;)
Last edited by uli (2010-02-15 22:26:06)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: logging users
uli wrote:
You can edit the date format yourself in /textpattern/include/txp_admin.php, around line 324:
e.g.
td($last_login ? safe_strftime('%d.%m.%Y %H:%M:%S',
is displayed as05.02.2010 21:43:57
cool! well done.
this should be rolled in as a setting or preference, no?
…. texted postive
Offline
Re: logging users
bici wrote:
this should be rolled in as a setting or preference, no?
Sadly, no. 5th bullet point in this changeset explains why.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: logging users
Bloke wrote:
bici wrote:
this should be rolled in as a setting or preference, no?
Sadly, no. 5th bullet point in this changeset explains why.
ah ah…. yes i see why it’s not rolled in.
BUT why not implement cookies/java magic that logs you out after 4hrs ( or whatever time one wants) of inactivity.
…. texted postive
Offline
Re: logging users
bici wrote:
why not implement cookies/java magic that logs you out after 4hrs ( or whatever time one wants) of inactivity.
*shrug*. The cookie is hard-coded to 30 days in the core. Presumably if you were alloed to alter it in prefs it’d have to delete the cookie you’re currently using and resave it with the new time limit you specify; that smacks of hard work1 :-p
1 There’s likely a proper, technical reason for this not being implemented already! Bottom line is I don’t know enough about it.
Last edited by Bloke (2010-02-15 22:48:59)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: logging users
nay danger… we can live with what we have.
…. texted postive
Offline
Re: logging users
I would dare to say that adding the day as well as the month and year would be preferable to most, and add a little quiet disclaimer that says logins can last for up to one month.
Offline
Pages: 1