XF 1.4 Remove share buttons on private nodes

Brogan

XenForo moderator
Staff member
#5
You could use a conditional statement utilising the node ID to remove the share page template - you would have to build the array of node IDs and edit the template manually though.
 

Hardcore

Active member
#6
You could use a conditional statement utilising the node ID to remove the share page template - you would have to build the array of node IDs and edit the template manually though.
Easy enough.
Code:
<xen:if is="!in_array({$forum.node_id}, array(1,2,3,4,5))">

// do your thing

</xen:if>
Thanks.
 
Top