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

XF 1.1 How To Not Show Content In More Than One Forum?

DRE

Well-known member
#1
I saw this in FAQS

How can I show content in more than one forum?
<xen:if is="in_array({$forumId}, array(x, y, z))">
This content will show in forums x, y, and z
</xen:if>

^^^How do I prevent that content from showing in more than one forum?

For instance, in thread_view template, I want to prevent the Share Page twitter, fb, etc icons from loading in the private forums. I tried doing it this way:


<xen:if is="!in_array({$forumId}, array(x, y, z))">
This content will show in forums x, y, and z
</xen:if>

Didn't work.