1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Remove share buttons on private nodes

Discussion in 'XenForo Questions and Support' started by Mr Lucky, Feb 9, 2015.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    Is it possible to automatically not have share buttons on private nodes?

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    No, I made a suggestion for it though.
     
  3. Mr Lucky

    Mr Lucky Well-Known Member

    Great minds...
     
  4. Hardcore

    Hardcore Active Member

    Is there a specific template that can be altered to achieve this? And if so, any suggestions?

    Thanks,
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    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.
     
  6. Hardcore

    Hardcore Active Member

    Easy enough.
    Code:
    <xen:if is="!in_array({$forum.node_id}, array(1,2,3,4,5))">
    
    // do your thing
    
    </xen:if>
    Thanks.
     

Share This Page