XenForo Hide [Code] content from visitors !

alodda

Loyal Member
Registered
can you try combine the two statements not tested ?
Code:
<xf:if is="$xf.visitor.isMemberOf([1])">
<xf:if is="!in_array($forum.node_id, [x,y,z])">
 

Marks-Man

Loyal Member
can you try combine the two statements not tested ?
Code:
<xf:if is="$xf.visitor.isMemberOf([1])">
<xf:if is="!in_array($forum.node_id, [x,y,z])">
I already tried that it didn't work :)
SO that's why I tried to try second command sepearately but it didn't work
 

alodda

Loyal Member
Registered
I already tried that it didn't work :)
SO that's why I tried to try second command sepearately but it didn't work

try this

Change
Code:
<xf:if is="!in_array($forum.node_id, [x,y,z])">
to
<xf:if is="!in_array($thread.node_id, [x,y,z])">
 

Marks-Man

Loyal Member
I already tried that it didn't work :)
SO that's why I tried to try second command sepearately but it didn't work
All Not working :ROFLMAO:
Try to hide links from specific node
<xf:if is="!in_array($thread.node_id, [1,2])">
result all node links are hidden (Not working properly).

<xf:if is="in_array($thread.node_id, [1,2])">
Result: All links showing

Still not working, I think it's a bug or sort of something because if I use node_id <1 it returns true
 

alodda

Loyal Member
Registered
if i code like this it works for me, to test

Code:
 <xf:if is="$xf.visitor.isMemberOf([1])">
<xf:if is="in_array($forum.node_id, [4,20,42,16])">
    <a>welcome</a>
    <else if>       
        </xf:if>
    </xf:if>
 
  • Tags
    hide [code] content from visitors tips hide [code] content from visitors xenforo hide [code] content from visitors xnforo.ir
  • Back
    Top Bottom