P PhineasD Active member May 16, 2024 #1 I'm using with the following conditional but not working: PHP: !$forum.node_id == 65 !in_array($forum.node_id, [65]) $forum.node_id != 65
I'm using with the following conditional but not working: PHP: !$forum.node_id == 65 !in_array($forum.node_id, [65]) $forum.node_id != 65
Solution P P PhineasD May 16, 2024 Sorry... I solve it with: PHP: !in_array($xf.reply.containerKey, ['node-65']) P XF 2.2 Post in thread 'Display Condition for forum's widget' Jan 23, 2023 You can use an array to include or exclude specific nodes. This is for nodes you want the widget to display in: in_array($xf.reply.containerKey, ['node-1','node-2']) . To exclude, use this: !in_array($xf.reply.containerKey, ['node-1','node-2']) .
Sorry... I solve it with: PHP: !in_array($xf.reply.containerKey, ['node-65']) P XF 2.2 Post in thread 'Display Condition for forum's widget' Jan 23, 2023 You can use an array to include or exclude specific nodes. This is for nodes you want the widget to display in: in_array($xf.reply.containerKey, ['node-1','node-2']) . To exclude, use this: !in_array($xf.reply.containerKey, ['node-1','node-2']) .
P PhineasD Active member May 16, 2024 #2 Sorry... I solve it with: PHP: !in_array($xf.reply.containerKey, ['node-65']) P XF 2.2 Post in thread 'Display Condition for forum's widget' Jan 23, 2023 You can use an array to include or exclude specific nodes. This is for nodes you want the widget to display in: in_array($xf.reply.containerKey, ['node-1','node-2']) . To exclude, use this: !in_array($xf.reply.containerKey, ['node-1','node-2']) . Upvote 0 Downvote Solution
Sorry... I solve it with: PHP: !in_array($xf.reply.containerKey, ['node-65']) P XF 2.2 Post in thread 'Display Condition for forum's widget' Jan 23, 2023 You can use an array to include or exclude specific nodes. This is for nodes you want the widget to display in: in_array($xf.reply.containerKey, ['node-1','node-2']) . To exclude, use this: !in_array($xf.reply.containerKey, ['node-1','node-2']) .