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

How to link to any logged in users profile page

Discussion in 'XenForo Questions and Support' started by RobinHood, Aug 15, 2012.

  1. RobinHood

    RobinHood Well-Known Member

    For a page in the help section, how can I link directly to the profile page of the user who is viewing the page?

    I don't think there's an "/account/profile" link or something similar as the 'Your Profile Page' link has the username in it.
  2. ragtek

    ragtek Guest

    href="{xen:link members, $visitor}"
    Jake Bunce and RobinHood like this.
  3. RobinHood

    RobinHood Well-Known Member

    Perfecto, thanks :)
  4. RobinHood

    RobinHood Well-Known Member

    Just for other people reference, if you're using this on the help pages you need to using a xen if and else conditional otherwise guests are greeted with

    This was posted by a guest who does not have a profile to view.

    I ended up using

                <xen:if is="{$visitor.user_id}">
                    <a href="{xen:link members, $visitor}">profile page</a>
                <xen:else />
                    profile page
    Jake Bunce likes this.

Share This Page