• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Memberlist edit to add last activity

Morgain

Well-known member
#1
I added code from the profile or userbit because I want to see last activity showing on the memberlist.
But it now only shows me today's date!

This is what my memberlist item looks like:
memberlist item.png
You can see the green text shows todays date not the date this guy jlast did anything.

This is what I added:

Code:
<!-- ROW 2 COL 2  STATS -->
<td><div style="float: left; margin-left: 30px; margin-bottom: 3px;" class="userInfo"> {xen:phrase joined}: {xen:date $user.register_date} <i>{xen:phrase last_activity}:</i> <xen:datetime time="$user.effective_last_activity" />
 

Jake Bunce

XenForo moderator
Staff member
#2
Instead of $user.effective_last_activity use $user.last_activity. That should do it.

Note that this last activity only updates hourly. It's a not a live update in this case.