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

XF 1.2 Adding Edit Profile Link in the Member Profile Page


I am looking to add a 'Edit Profile' link in the 'Member Profile Page' as well as the 'Member Details' section displayed on the Homepage Sidebar (Screenshots attached). Or at-least in one of those places.

I know for the first one I will need to edit the member_view template, but unsure what code to put there so the 'Edit Profile link' is visible only to the logged in member.

Also unsure how to add a link to the Member Details section displayed on the homepage sidebar. Any help appreciated. Thank you!



XenForo moderator
Staff member
Use this:
<xen:if is="{$visitor.user_id} == {$user.user_id}">
    <a href="{xen:link account}">Edit Profile</a>
The other template is sidebar_visitor_panel.