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

XF 1.2 Add Thread Forum To Thread

Discussion in 'XenForo Questions and Support' started by arms, Aug 29, 2013.

  1. arms

    arms Active Member

    I'm trying to add the threads forum to thread_list_item on certain nodes so it shows like on new posts:


    but not having any luck. anyone any ideas how to get this to work?

    <div class="secondRow">
                    <div class="posterDate muted">
                        <xen:username user="$thread" title="{xen:phrase thread_starter}" /><span class="startDate">,
                        <a{xen:if {$visitor.user_id}, ' href="{xen:link threads, $thread}"'} class="faint"><xen:datetime time="$thread.post_date" title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}" /></a></span><xen:if is="{$showForumLink}"><span class="containerName">,
                        <a href="{xen:link forums, $thread.forum}" class="forumLink">{$thread.forum.title}</a></span></xen:if><xen:if is="in_array({$forum.node_id}, array(2, 34, 38))"><span class="containerName">,
                        <a href="{xen:link forums, $thread.forum}" class="forumLink">{$thread.forum.title}</a></span></xen:if>
  2. arms

    arms Active Member

  3. Mike

    Mike XenForo Developer Staff Member

    The forum data likely isn't fetched in the situations where you're asking for it to be displayed. You would need to modify the code.
    arms likes this.

Share This Page