XF 1.2 Add Thread Forum To Thread

arms

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

upload_2013-8-29_1-15-38.webp

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

Code:
<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>
 
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.
 
Back
Top Bottom