Memberlist edit to add last activity

Morgain

Well-known member
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.webp
You can see the green text shows todays date not the date this guy jlast did anything.

This is what I added:

Rich (BB 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" />
 
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.
 
Top Bottom