XF 1.2 Adding Edit Profile Link in the Member Profile Page

#1
Hello,

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!
 

Attachments

Brogan

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