Adding a link to Profile Page for User only

thunderup

Active member
Okay, I wanted to add an "Edit" link to the user profile pages..

What is the code needed to add an "Edit" link on the member_view template where the "Ignore" "Follow" "Ignore" links are?

Obviously, I only want this link to display on YOUR page (the person logged in, when viewing their own profile page)
 
You can do a source code modification if you want,
or
you could add a template modification for this if you desire,
or
you could upload a file and import the .xml and it's a plugin.

The first two require you to re-apply the customization every time you upgrade XenForo.

You're free to use it, and customize it for your site.

It has an if conditional that checks if the profile user id matches the visitor user id, and displays a block under the avatar. There's currently no hook for the header on the right. Where you pointed it out.

But since I already had this on XenFans, and it's almost what you want, I thought it was worth sharing at least.

http://xenforo.com/community/threads/product-xenfans-com-edit-profile.22646/
 
Okay well, do you know the code I need to put in if I do this by hand with a template mod in the section I was referring to?

Thanks Floris
Code:
<xen:if is="{$visitor.user_id} == {$user.user_id}">
// stuff to show only to the user whose profile page it is
</xen:if>
 
Top Bottom