UseBB Community

UseBB support, discussion and development

Last Login

Post Reply

Page: 1

Author Post
Member
Registered: May 2005
Posts: 386
Location: US WA. St.
Just wondering if last login time could easily be as whats in the screenshot when hovering a user, time updates as you navigate the forum. Thanks.

User posted image

Would help to add screenshot. :lol:
_______________
My board started January 03, 2012 and is powered by UseBB.
- wimc message board
« Last edit by William on Fri Mar 20, 2009 7:23 pm. »
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
It already is like this. :) Or what do you mean?
Member
Registered: May 2005
Posts: 386
Location: US WA. St.
If you press F5 while in profile last login time remains the same as when you logged in, time for viewing detailed who's online list updates when you press F5 along with hovering a user in who's online.
_______________
My board started January 03, 2012 and is powered by UseBB.
- wimc message board
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
that is the point of 'last login'

do you mean
'last active' so when a user clicks onto a new page it updates it
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
you could add this to the page_foot.php

//
//Update last click
//
$db->query("INSERT INTO ".TABLE_PREFIX."members (last_click) VALUES ('".time()."'");


kk now i reli must go b4 my manager relises :S
Member
Registered: May 2005
Posts: 386
Location: US WA. St.
Last login is just that, last time you logged in, you can be on 12 hours straight and it does not change till you log out and log back in.

I would like last visit, but this is just an inquiry, it is not a priority for change, because I can wait for UseBB 2.
_______________
My board started January 03, 2012 and is powered by UseBB.
- wimc message board
Member
Registered: Oct 2008
Posts: 43
Location: United Kingdom
im back home now ill see what i can do at school tomoro im nackred now


//
//Update last click
//
$db->query("UPDATE ".TABLE_PREFIX."members SET
lastactive = ".time().",
WHERE id = ".$session->sess_info['user_info']['id']);


woops i just relised what i posted :oops: :roll: :P
Developer
Registered: Apr 2004
Posts: 2230
Location: Belgium
The users table already has a field for the timestamp of the last pageview, so there's no need to add in extra code. For the next bugfix release I will add an extra template variable so the information can be used in the profile template.
Member
Registered: May 2005
Posts: 386
Location: US WA. St.
Thanks Dietrich, I should have said "its good enough now" instead of waiting for v2.
_______________
My board started January 03, 2012 and is powered by UseBB.
- wimc message board

Post Reply

Page: 1

UseBB Community is powered by UseBB 1 Forum Software