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

XF 1.4 Use page criteria to display notice within locked threads?

Discussion in 'Styling and Customization Questions' started by Joe Link, Apr 5, 2015.

  1. Joe Link

    Joe Link Well-Known Member

    I'd like to display a notice (actually a popup using @Chris D's add-on) when a user views a thread which is locked, within specific nodes. I believe I could do this with the page criteria tab, but after playing around for an hour I can't seem to figure it out :confused:
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    There's no criteria that matches a closed thread. It would require custom development or an add-on (various add ons exist for adding new criteria but I'm not sure if any of them add that specifically)
     
    Joe Link likes this.
  3. Joe Link

    Joe Link Well-Known Member

    Thanks for the quick reply Chris.

    Can you comment on the difficulty of writing such an add-on?
     
  4. Chris D

    Chris D XenForo Developer Staff Member

    Not very. The thread record would need to be available to the page container which isn't too difficult to do. Then the criteria checks would have the thread record available so you can read its closed state and act accordingly.
     
  5. Joe Link

    Joe Link Well-Known Member

    Thanks :)
     

Share This Page