Page 1 of 2

User last visit date/time

Posted: Thu Jan 26, 2017 11:17 pm
by Ivgoneridng
Is there a way, without visiting each individual profile and without viewing the database directly of displaying when users last visited the forum? For example, would it be possible to display it as a column in the member list?

Re: User last visit date/time

Posted: Thu Jan 26, 2017 11:38 pm
by david63
Ivgoneridng wrote:
Thu Jan 26, 2017 11:17 pm
would it be possible to display it as a column in the member list
If you use prosilver style then it already does

Re: User last visit date/time

Posted: Fri Jan 27, 2017 7:51 am
by Ivgoneridng
I'm using a modified version of prosilver (colour change and modied login page only) and the membership list shows join date not last login.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 7:56 am
by 3Di
Switch to prosilver and see if it goes.
If it does then your modified style has issues.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:09 am
by Ivgoneridng
All my sub-style does is change colours (colours.css) and modify the login page (login_body.html and login_forum.html). Everything else is inherited from pro silver


Because this topic has been moved from support requests to extension requests by a mod, I can't add my screen dumps showing that changing the colour makes no difference.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:13 am
by 3Di
3Di wrote:
Fri Jan 27, 2017 7:56 am
Switch to prosilver and see if it goes.
If it does then your modified style has issues.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:15 am
by Ivgoneridng
3Di wrote:
Fri Jan 27, 2017 8:13 am
3Di wrote:
Fri Jan 27, 2017 7:56 am
Switch to prosilver and see if it goes.
If it does then your modified style has issues.
Ivgoneridng wrote:
Fri Jan 27, 2017 8:09 am

Because this topic has been moved from support requests to extension requests by a mod, I can't add my screen dumps showing that changing the colour makes no difference.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:17 am
by david63
Posting screen dumps has nothing to do with switching styles

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:22 am
by Ivgoneridng
I know, but it shows that I have switched styles.

I switched styles and the list still shows joined date.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:30 am
by 3Di
I can confirm that in the 3.1.10's (the version which I am testing) prosilver it works.

http://prntscr.com/e0xm07

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:38 am
by Ivgoneridng
Having given myself global admin rights (was "just" board founder before) I can see last active, not last visit. Two different things.
From memberlist.php:
// If we sort by last active date we need to adjust the id cache due to user_lastvisit not being the last active date...

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:42 am
by 3Di
I am "simply" the founder at my test board and I can see both of them: last visit and last active.

last joined and last active, sorry.
See the grab I above posted.

The excerpt of code you quoted isn't related, that's another stuff.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:44 am
by Ivgoneridng
Ivgoneridng wrote:
Fri Jan 27, 2017 8:38 am
Having given myself global admin rights (was "just" board founder before) I can see last active, not last visit. Two different things.
From memberlist.php:
// If we sort by last active date we need to adjust the id cache due to user_lastvisit not being the last active date...
As an example, I last visited my forum this morning at 8:31, but I was last active at 8:42.

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:45 am
by Ivgoneridng
3Di wrote:
Fri Jan 27, 2017 8:42 am
I am "simply" the founder at my test board and I can see both of them: last visit and last active.

See the grab I above posted.

The excerpt of code you quoted isn't related, that's another stuff.
Your grab doesn't show last visit, and as founder with no admin rights I couldn't see even last active in the member list in prosilver

Re: User last visit date/time

Posted: Fri Jan 27, 2017 8:48 am
by 3Di
I got the point.

Yes, indeed this stuff needs to be an extension.
So you need both last active and last joined or simply last active instead of last joined? Or both?