Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-15 21:58:20

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,135
Website Mastodon

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

#3 2010-02-15 22:26:32

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,135
Website Mastodon

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 as 05.02.2010 21:43:57

cool! well done.

this should be rolled in as a setting or preference, no?


…. texted postive

Offline

#4 2010-02-15 22:41:43

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

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

#5 2010-02-15 22:45:14

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,135
Website Mastodon

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

#6 2010-02-15 22:48:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

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

#7 2010-02-15 22:50:34

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,135
Website Mastodon

Re: logging users

nay danger… we can live with what we have.


…. texted postive

Offline

#8 2010-02-15 23:35:12

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

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

Board footer

Powered by FluxBB