How to Hide Signatures from X Forum IDs?

Veer

Well-known member
Hi guys, Is there a way to hide signatures from a few Forum IDs?

I found the following but that doesn't help:
Code:
<xen:if is="{$forum.node_id}==x">
 Code for forum x
</xen:if>

I want to completely disable signatures from a few forums, hope somebody knows a way.
Thanks.
 
Code:
<xen:if is="{$forum.node_id} != 5 OR {$forum.node_id} != 6">
Not sure if this would work?
No, it doesn't work.

P.S. It works when you only add this for a single node:
{$forum.node_id} != 5

but when you put "{$forum.node_id} != 5 OR {$forum.node_id} != 6" it doesn't.
 
Try using in_array() and checking the contents of the array in the conditional to exclude forum ids.

Oh yay! When did they add this? Array functions didn't work the last time I tested it.

This is the complete conditional code for people who are interested:

Code:
<xen:if is="!in_array({$forum.node_id}, array(5,6))">
	THIS CODE WILL SHOW IN ALL FORUMS EXCEPT 5 AND 6
</xen:if>

No, it doesn't work.

P.S. It works when you only add this for a single node:
{$forum.node_id} != 5

but when you put "{$forum.node_id} != 5 OR {$forum.node_id} != 6" it doesn't.

That expression is logically always true. That is the problem. Use my code above.
 
Top Bottom