XF 1.5 Turning code into url?

viper357

Well-known member
Hi, is there a way to turn this code from a template into a clickable url that I can use as a link in the navbar?

Code:
<a href="{xen:link search/member, '', 'user_id={$visitor.user_id}', 'content=thread'}">{xen:phrase your_threads}</a>

What I am trying to do is move some of the Useful Searches (Your Threads and Your Posts) into links onto the navbar.

This is the url I have but obviously the userid needs to be relevant to the current visitor.
Code:
http://www.marineaquariumsa.com/search/member?user_id=1&content=thread

Thanks.
 
The example code you gave already has the user ID as a variable, so I'm not clear on what the problem is specifically?
 
The example HTML you gave does that. Have you put that in the template you want? Is it not working? What's it generating?
 
Top Bottom