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

Add-on Last Online in postbit info

Discussion in 'Resource and Add-on Discussions' started by New Joe, Oct 18, 2014.

  1. New Joe

    New Joe Active Member

    I've looked around but can't find an add on for this.
    I used to use it on vB,I know you can just click on a members name and the pop up box will say the last activity of a member.

    But I just liked it when I could see that info in the postbit.
    Like in the screen shot;
    Screen Shot 2557-10-18 at 9.14.50 PM.png

    it shows date when Joined, Messages , how many likes...
    I'd just like to have an extra part saying somthing like: Last Seen: ****** or Last Online: ****
    Has that been done yet as an add on?
  2. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    No need for an add-on for that... just copy one of the post item (since I don't know the actually HTML structure for your site, I can't provide with one)
    change the title to Last Activity or whatever you want and for the other part use
    {xen:datetime $user.last_activity}
    adwade likes this.
  3. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    As a hint, edit the template: 'message_user_info'
    look for
            <xen:if is="@messageShowRegisterDate AND {$user.user_id}">
               <dl class="pairsJustified">
                 <dt>{xen:phrase joined}:</dt>
                 <dd>{xen:date $user.register_date}</dd>
    add this below:
               <dl class="pairsJustified">
                 <dt>{xen:phrase last_activity}:</dt>
                 <dd>{xen:datetime $user.last_activity}</dd>
    adwade, intradox and New Joe like this.
  4. New Joe

    New Joe Active Member

    That worked fine, thanks...

Share This Page