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

XF 1.2 Last Activity

Discussion in 'Styling and Customization Questions' started by Amaury, Sep 18, 2013.

  1. Amaury

    Amaury Well-Known Member

    On your profile, there's X was last seen: Date at Time, or X was last seen: Date if it's been a week or more, and then there's a Last Activity section in the profile sidebar that just has the time.

    I'd be interested in doing this, if possible:
    Rephrase X was last seen to Last Activity and remove Last Activity from the profile sidebar

    I already know how to rephrase stuff. It's just a matter of removing the profile sidebar's Last Activity.

    Thanks in advance!
    Last edited: Sep 18, 2013
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Remove it from the template, member_view.
    Amaury likes this.
  3. Amaury

    Amaury Well-Known Member

    Thanks, Jeremy.

    I commented out the code instead just to be on the safe side:
    <!-- <dl><dt>{xen:phrase last_activity}:</dt>
                            <dd><xen:datetime time="$user.effective_last_activity" /></dd></dl> -->
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Use xen:comment instead.
    It won't even be rendered then.
    Amaury likes this.
  5. Amaury

    Amaury Well-Known Member

    Seems to be showing just fine under my name, but will do.

    Like this?

    <xen:comment><dl><dt>{xen:phrase last_activity}:</dt>
                            <dd><xen:datetime time="$user.effective_last_activity" /></dd></dl></xen:comment>
  6. Brogan

    Brogan XenForo Moderator Staff Member

    View the page source and it won't be visible, unlike using html commenting.
    Amaury likes this.
  7. Jeremy

    Jeremy XenForo Moderator Staff Member

  8. Amaury

    Amaury Well-Known Member

    Got it.

    When I used <!-- --> (I'm used to commenting out on vBulletin), I saw it in the page source; when I went with your <xen:comment></xen:comment>, it didn't just as you said. :)

    When you said "it won't even be rendered," I misunderstood. Thought you meant the <!-- --> would hide it under my name, too, which wasn't what I wanted.

    Thanks, Brogan!

    @Jeremy A thanks to you, too.

    End result: http://i.imgur.com/3he861V.png
    Last edited: Sep 18, 2013

Share This Page