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

Adding a link to Profile Page for User only

Discussion in 'XenForo Questions and Support' started by toodlez, Nov 4, 2011.

  1. toodlez

    toodlez 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)
  2. Floris

    Floris Guest

    I have a plugin for this. I will export it and release it.
  3. toodlez

    toodlez Active Member

    Really, it needs a plugin just to add a link? There's no xen if etc. code for it?

    Anyways, thanks
  4. Floris

    Floris Guest

    You can do a source code modification if you want,
    you could add a template modification for this if you desire,
    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.

  5. toodlez

    toodlez Active Member

    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
  6. James

    James Well-Known Member

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

Share This Page