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

XF 1.3 Thread Lock Button

Discussion in 'Styling and Customization Questions' started by Connor Smith, Jul 28, 2014.

  1. Connor Smith

    Connor Smith Active Member

    My staff on my forum have been asking if we can add a "Lock Thread" button to the top/bottom of the thread they are viewing. I was wondering how I would go about adding this.

    Thanks.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    There is already one at the top.

    upload_2014-7-28_15-29-16.png
     
    Amaury likes this.
  3. Connor Smith

    Connor Smith Active Member

    I know that, I was asking if there was a way to add a button, that locks the thread. Currenty it says 'open'
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Uncheck it and it locks it.
     
  5. Connor Smith

    Connor Smith Active Member

    Yes, I am aware of that.
    I was asking something completely different.
     
  6. Tracy Perry

    Tracy Perry Well-Known Member

    You could simply edit the template that gives the private controls (I'd have to look to find which one it is - but think it's the post template) and repurpose the code of the template that gives the drop down and allows the open checkbox to it (think it's thread_list_item_edit) and massage it to be a separate control.
     
  7. Connor Smith

    Connor Smith Active Member

    I'm not to good with XenForo coding. I'll just leave it if thats that case.
     

Share This Page