1. 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

Discussion in 'Styling and Customization Questions' started by Morgain, Aug 25, 2012.

  1. Morgain

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

    This is what I added:

    <!-- 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" />
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
    Morgain likes this.
  3. Morgain

    Morgain Well-Known Member

    Thanks lots Jake that worked well.

Share This Page