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

xen:link

Discussion in 'XenForo Development Discussions' started by king8084, Jan 3, 2015.

  1. king8084

    king8084 Active Member

    this is likely very simple, but i can't get it and it's starting to drive me insane...

    when using this:
    <a href="{xen:raw $follow.thread_id}">
    the url outputs as "http://url.com/forum/#####"
    where ##### is the expected value of the thread id, so i know i'm working with the right var here..

    when using
    <a href="{xen:link threads, $follow.thread_id}">
    the url outputs as "http://url.com/forum/"

    so somehow using "xen:link threads," is messing it up..

    playing with it a bit, i see that using:
    <a href="{xen:link threads, ''}">
    outputs "http://url.com/forum/threads/", but as soon as i put anything in the second param, it kills it and it only outputs "http://url.com/forum/"

    driving me nuts. any help? ideally, i want it to output "http://url.com/forum/threads/#####".
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    This ought to work:
    Code:
    {xen:link threads, $follow}
     
    king8084 likes this.
  3. king8084

    king8084 Active Member

    :) worked like a charm. thank yoU!!
     

Share This Page