How to link to any logged in users profile page

RobinHood

Well-known member
#1
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.
 

RobinHood

Well-known member
#4
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

Code:
            <xen:if is="{$visitor.user_id}">
                <a href="{xen:link members, $visitor}">profile page</a>
            <xen:else />
                profile page
            </xen:if>
 
Top