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

XF 1.5 Turning code into url?

viper357

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

Mike

XenForo developer
Staff member
#3
The example code you gave already has the user ID as a variable, so I'm not clear on what the problem is specifically?
 

Mike

XenForo developer
Staff member
#5
The example HTML you gave does that. Have you put that in the template you want? Is it not working? What's it generating?