XF 1.4 Getting Username URL Bit

What template are you attempting to add this two? Do you have a user ID available in the data? Do you have the user name available in the data?
 
If you are adding it for the current visitor:
HTML:
<xen:if is="{$visitor.user_id}"><a href="{xen:link members, $visitor}">Your Profile</a></xen:if>
That shoudl work.
 
I'm assuming this is an add-on or custom add-on and you should be contacting the author for more support. You can manually create the link using just the $visitor.user_id variable, but without the route class building the link, you may get unexpected results.
 
That sort of worked? I did this:
<a href="{xen:link trade, '', 'user_id={$visitor.username}'}"> Trade Reps Received</a>
But it has an extra "user_id=" in the URL and the username isn't formatted correctly.
 
Top Bottom