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

XF 1.3 Thread variable is NULL

I try to dump the Thread variable in a part of my Template but I get everytime "NULL" ? I tried to Dump the Forum and Visitor variables and these works fine.

{xen:helper dump, $thread}
What is the problem?


XenForo moderator
Staff member
By "in a thread page", do you mean the thread_view template?

If so, you may be able to use a template conditional statement, depending what it is you are trying to do.

<xen:if is="{$contentTemplate} == 'xyz'">
In short, I don't want to show a specific content in Threads.

Something like:

<xen:if is="!{$is_thread}">
custom content


XenForo moderator
Staff member
It's still not clear what it is you are trying to do.

Can you screenshot exactly what content you are trying to prevent being displayed on which page?
I added a Ad Code in my "ad_below_top_breadcrumb" template... It works fine in all pages (node/forums/thread) of my XF. But I want that this Code will not displayed in ALL Threads Pages of my XF.