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

Discussion in 'Styling and Customization Questions' started by planetzu, Aug 23, 2013.

  1. planetzu

    planetzu Member


    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!

    Attached Files:

  2. Brogan

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

    planetzu Member

    Thanks a lot!

Share This Page