It should display in all nodes automatically.
The code I gave was for it not to show in one particular node.
@bladinium, check you are entering the code correctly.
Node heirarchy is irrelevant when using the node ID, so it definitely works (tested and confirmed).
Let me get straight on what you want - no ads displayed in forum node #23 and all the associated sub-forums under node 23?
If so, I am almost positive that you are going to need an array (refer to this post again).
Something along the lines of an example that @Brogan gives in the resource:
When working with arrays, the ! is placed just before the argument.
For example, <xen:if is="in_array({$forum.node_id}, array(x, y, z))"> for true, <xen:if is="!in_array({$forum.node_id}, array(x, y, z))"> for false.
An array is only required if multiple IDs are going to be entered.
As it is, he only wants to stop them showing in one node (23) so the simple condition will suffice: <xen:if is="{$forum.node_id} != 23">
An array is only required if multiple IDs are going to be entered.
As it is, he only wants to stop them showing in one node (23) so the simple condition will suffice: <xen:if is="{$forum.node_id} != 23">
@Brogan, I am aware of that but I'm basing the array on his statement of "I would like the advertising does not appear in the forum: 23 and all sub forums: 23" ,which I understood to be inclusive of node 23 and all the nodes he has listed under that one (he gives a more detailed descriptor in post #3 in this topic). In that case (it being more than 1 node) would not an array be required (or multiple statements for each node in the format you provided)?
Suggestion... how about adding that nice little snippet into your resource on conditional statements. It's one that I wasn't aware of and probably would be useful to several folks.