Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-06-26 23:29:48

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

More granularity on user last login Date...

Month and year just don’t cut it. ;)

Offline

#2 2013-06-27 07:02:35

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: More granularity on user last login Date...

Agreed, including the date at the very least would be much more useful.

Offline

#3 2013-06-27 07:27:12

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: More granularity on user last login Date...

+1


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#4 2013-06-27 08:51:45

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: More granularity on user last login Date...

Agreed. Hope one of the programmy core devs can do this. Maybe open an issue in SVN?

Last edited by philwareham (2013-06-27 09:07:46)

Offline

#5 2013-06-27 11:48:13

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: More granularity on user last login Date...

The last login date only tells you when the user logged in. Not when the user accessed the site. As the session lasts for a month, the last login date isn’t very accurate presentation of when the site was accessed by the user. You can’t tell from when your account was accessed by someone else, or how actively users use the site.

Now, if the date contained the day, what valuable information would that provide to you?

Last edited by Gocom (2013-06-27 11:57:10)

Offline

#6 2013-06-27 13:08:33

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: More granularity on user last login Date...

Nitpick: then, the column may be better renamed to something else than last_access, as it’s currently named. last_login perhaps?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#7 2013-06-27 15:28:45

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: More granularity on user last login Date...

OK, so I suppose I should be more specific.

Often I would like to have an easy way to tell when the last time a user was accessing the back end. That field is virtually pointless as is.

Offline

#8 2014-04-03 20:22:30

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: More granularity on user last login Date...

I noticed that the last login column really isnt accurate.. Anyone else.?
I know for certain that a specific account was used, but no date shows up..

Offline

#9 2014-04-04 00:51:26

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: More granularity on user last login Date...

fiddle wrote #280049:

I know for certain that a specific account was used, but no date shows up..

That person didn’t log out then. As a result, there’s no login necessary and no new timestamp created.

Maybe hide the checkbox “Remain logged in” from the login screen? Can’t tell, though, what happens if users don’t log out and quit their browser immediately.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#10 2014-04-04 01:24:10

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: More granularity on user last login Date...

I did log out..

I created an account for myself just to test, and I log in, do whatever, log out.. Never gets marked with a date, although, this is using smd_user_manager, cbe_members, cbe_frontauth..
Not sure If this might make a difference, but some accounts are logged, others are not..

Last edited by fiddle (2014-04-04 01:26:21)

Offline

#11 2014-04-04 10:16:19

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: More granularity on user last login Date...

fiddle wrote #280055:

Never gets marked with a date

I.e. you have March in your admin right now, log out, log back in, visit the Users panel and there’s still March? That’d be weird.

You can install one of these dashboard plugins (e.g. smd_tabber) and put a query tag with a nicely formatted date there.
You might also hack the core. I did that once for these dates, it’s not too tough cause I could do it. But it didn’t survive the update and was never re-ordered.

Edit: Umm, wait, you’re not calling for more granularity like the others, you complained about TXP not working as it should, right? Did you try to deactivate the above plugins and test then? Do any of these have their own DB tables and override the system one’s? Then lay a cable from there into your dashboard.

Last edited by uli (2014-04-04 10:21:29)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#12 2014-04-04 10:41:09

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

Re: More granularity on user last login Date...

fiddle wrote #280055:

some accounts are logged, others are not..

smd_user_manager piggy backs on top of the core tables so shouldn’t affect the outcome here. Are you logging in from the admin side or from the fronrt-end via cbe_*? I presume that the cbe plugins use core functions to log you in and out, which should take care of the last access time. Maybe they don’t…?

Can you check if the last_access column is being updated at all in the txp_users table in the database? If not, any error messages in server logs?


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

Board footer

Powered by FluxBB