FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Admin Members List
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Admin Members List [message #24929] Thu, 19 May 2005 01:01 Go to next message
jonmoss is currently offline  jonmoss   United States
Messages: 93
Registered: September 2004
Location: Lansing, KS
Karma: 0
Member

As an admin, I would like to see a column added to the Members list for "last time logged in" or something like that.

I tried to find the right template this afternoon, but only had about fifteen minutes between other projects to go digging for it.

What template is hooked to the Members link above? I'd like to modify it to include the column (I believe the last logged in date/time stamp is in the database, probably in the users table).



Thanks and have a great day!

Jon Moss
Re: Admin Members List [message #24932 is a reply to message #24929] Thu, 19 May 2005 01:14 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
finduser.tmpl is the template you need and the last logged in field is available inside the users table as the last_visit field.

FUDforum Core Developer
Re: Admin Members List [message #24933 is a reply to message #24932] Thu, 19 May 2005 01:37 Go to previous messageGo to next message
jonmoss is currently offline  jonmoss   United States
Messages: 93
Registered: September 2004
Location: Lansing, KS
Karma: 0
Member

I noticed in the database that this field (the last_visit field) was not a date field but rather a bigint field. Are you using a function to convert the integer to a date?

I'll probably find out when I actually go look at the template.

Thanks for the quick reply.



Thanks and have a great day!

Jon Moss
Re: Admin Members List [message #24934 is a reply to message #24932] Thu, 19 May 2005 01:47 Go to previous messageGo to next message
jonmoss is currently offline  jonmoss   United States
Messages: 93
Registered: September 2004
Location: Lansing, KS
Karma: 0
Member

I can't seem to get to the template I need to get to:

Quote:

{TEMPLATE-DATA: find_user_data}
</table>


How do I find the find_user_data template?


Thanks and have a great day!

Jon Moss
Re: Admin Members List [message #24935 is a reply to message #24933] Thu, 19 May 2005 01:47 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Yes, the strftime() PHP function.

FUDforum Core Developer
Re: Admin Members List [message #25007 is a reply to message #24934] Sun, 22 May 2005 05:10 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
This would be quite an interesting mod. Here are some pointers:

jonmoss wrote on Thu, 19 May 2005 03:37

I noticed in the database that this field (the last_visit field) was not a date field but rather a bigint field. Are you using a function to convert the integer to a date?


You don't need to bother with the strftime() PHP function. Just copy the "finduser_join_date" section to say, "finduser_last_visit_date" in FUDData/thm/default/tmpl/date_formats.tmpl, and use it in FUDData/thm/default/tmpl/finduser.tmpl

jonmoss wrote on Thu, 19 May 2005 03:47

How do I find the find_user_data template?


find_user_data is constructed in FUDData/src/finduser.php.t - you need co change the query from table "users" to include the "last_visit" column.

Best regards.

Frank
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pubcookie authentication
Next Topic: Protector Scrit - use FUDForum as Central Login Manager
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 16:11:46 GMT 2024

Total time taken to generate the page: 0.02541 seconds