2009-04-22 15:16:42

thebombsite
Plugin Author
omega
Real name: Stuart
From: Exmouth, England
Known languages: Doh!
Website

Users last login day of the month

I was just wondering if on the “Users” page the “Last Login” field could include the day of the month as well. Just having the month and year doesn’t really give much of an idea.


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

2009-04-22 15:29:29

Bloke
Developer
omega
Real name: Stef Dawson
From: Leeds, UK
Known languages: Engl(ish)
Website

Re: Users last login day of the month

thebombsite wrote:

I was just wondering if on the “Users” page the “Last Login” field could include the day of the month as well.

+1 from me. Line 323 of txp_admin.php could be changed to:

td($last_login ? safe_strftime('%d %b %Y', $last_login) : '').

at the expense of an extra 8 bytes. Or something a little more locale-friendly might be in order?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

 

2009-04-22 15:36:57

thebombsite
Plugin Author
omega
Real name: Stuart
From: Exmouth, England
Known languages: Doh!
Website

Re: Users last login day of the month

Ha haa. I’ve just got out of hacking txplib_head.php Stef, I don’t want to start hacking something else. ;)


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

2009-04-22 15:41:15

Bloke
Developer
omega
Real name: Stef Dawson
From: Leeds, UK
Known languages: Engl(ish)
Website

Re: Users last login day of the month

thebombsite wrote:

I’ve just got out of hacking txplib_head.php Stef

Yeah, know what you mean. I meant that it’s ludicrously easy to change in the core, should wet/ruud decide to do it. There’s no impediment to changing it as far as I can see; the only sticking point is that hardcoding the format the way I did above is likely to annoy our US chums :-) So there’s probably a better way that takes one of the date format options into account.

Last edited by Bloke (2009-04-22 15:41:56)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

 

2009-04-22 15:53:54

thebombsite
Plugin Author
omega
Real name: Stuart
From: Exmouth, England
Known languages: Doh!
Website

Re: Users last login day of the month

Yep. Know what you mean. :)


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

2009-04-22 16:03:34

mrdale
Moderator
omega
Real name: Dale Chapman
From: Walla Walla
Known languages: strine.
Website

Re: Users last login day of the month

++1. knowing that someone edited the site “yesterday” as opposed to “sometime this month” is really valuable.

Offline

 

2009-04-22 19:50:15

wet
Developer
omega
Real name: Robert
From: Lenzing, Austria
Known languages: de-AT, en, PL/M-80
Website

Re: Users last login day of the month

The “Remain logged in” cookie lives for a month. The last login date can therefore not be determined beyond that precision.

Online

 

2009-04-22 20:09:52

Bloke
Developer
omega
Real name: Stef Dawson
From: Leeds, UK
Known languages: Engl(ish)
Website

Re: Users last login day of the month

wet wrote:

The “Remain logged in” cookie lives for a month.

Ahhhh, that makes sense. I just never noticed it because I’ve never used the ‘remain logged in’ feature… which brings about another tiny feature request, if I may hijack this thread slightly: add a jQuery focus() call to the login box when visiting the login page, unless the cookie is set and the password has expired for some reaosn, in which case focus in the ‘password’ box (because the login has already been automatically entered).

Last edited by Bloke (2009-04-22 20:11:10)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

 

2009-04-22 21:50:56

thebombsite
Plugin Author
omega
Real name: Stuart
From: Exmouth, England
Known languages: Doh!
Website

Re: Users last login day of the month

Hmmm. I never use that either. I just wonder what use it actually is beyond sloth. I mean, don’t most browsers remember logins these days anyway which means the details get filled and you just hit enter or did I miss a point somewhere?

So could that be reduced to remain logged in for a day? Or to put it another way, why do we need to remain logged in at all?


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

2011-10-16 18:37:41

towndock
Member
epsilon
Real name: Keith
From: Oriental, NC USA
Known languages: English
Website

Re: Users last login day of the month

Apologies for reviving an over 2 year old thread, but I’m wondering if a fix has ever been developed to answer Stuart’s original question – adding the day (and time if possible) to the Users “Last Login” info in the Admin area.

Offline

 

Powered by FluxBB