• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

ACP edit user - add registration date, last activity, & profile link

Mutt

Well-known member
#1
I don't know if this is in the ACP & i'm missing it or what but when I edit a user's profile I can never find the registration date, the last time they were online, or a link to their profile page. This template edit adds them to the "Profile Info" tab just under

NOTE: you need to be in debug mode to edit admin templates

in Admin Template / user_edit

after
Code:
            <fieldset>
                <xen:spinboxunit label="{xen:phrase messages}:" name="message_count" value="{$user.message_count}" min="0" />
                <xen:spinboxunit label="{xen:phrase likes_received}:" name="like_count" value="{$user.like_count}" min="0" />
                <xen:spinboxunit label="{xen:phrase trophy_points}:" name="trophy_points" value="{$user.trophy_points}" min="0" />
            </fieldset>
add
Code:
            <fieldset>
            <xen:controlunit label="{xen:phrase registered}:">{xen:date $user.register_date}</xen:controlunit>
            <xen:controlunit label="{xen:phrase last_activity}:">{xen:date $user.last_activity}</xen:controlunit>
            <xen:controlunit label="{xen:phrase profile_page}:"><a href="{xen:link members, $user}">Link to {xen:phrase profile_page}</a></xen:controlunit>
            </fieldset>
Screenshot_1.jpg
 

Mutt

Well-known member
#2
i wanted to make the Last Activity link to the recent activity tab on their profile but I didn't know how to link to that page w/ that tab open
 

Alien

Well-known member
#4
This sort of thing is extremely helpful in day to day operations/cleanup, thanks for this.

Hope something similar makes it into the core.
 

Mutt

Well-known member
#5
here's an update to also include a PC user link
Code:
            <fieldset>
            <xen:controlunit label="{xen:phrase registered}:">{xen:date $user.register_date}</xen:controlunit>
            <xen:controlunit label="{xen:phrase last_activity}:">{xen:date $user.last_activity}</xen:controlunit>
            <xen:controlunit label="{xen:phrase profile_page}:"><a href="{xen:link members, $user}">Link to {xen:phrase profile_page}</a></xen:controlunit>
            <xen:controlunit label="{xen:phrase conversations}:"><a href="{xen:link conversations/add, '', 'to={$user.username}'}">{xen:phrase start_conversation}</a></xen:controlunit>
            </fieldset>
Screenshot_3.jpg