1. 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?

Discussion in 'XenForo Questions and Support' started by viper357, Dec 3, 2015.

  1. viper357

    viper357 Active 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?

    <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.
  2. viper357

    viper357 Active Member

    Anyone? :) All I need is a way to find the userid, thanks.
  3. Mike

    Mike XenForo Developer Staff Member

    The example code you gave already has the user ID as a variable, so I'm not clear on what the problem is specifically?
  4. viper357

    viper357 Active Member

  5. Mike

    Mike XenForo Developer Staff Member

    The example HTML you gave does that. Have you put that in the template you want? Is it not working? What's it generating?

Share This Page