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

XF 1.4 thread banned display

Discussion in 'Styling and Customization Questions' started by Tracy Perry, Jan 1, 2015.

  1. Tracy Perry

    Tracy Perry Well-Known Member

    Is there any way in a template to detect if a user is thread banned and then have certain item(s) either display or not display?
     
  2. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    You mean get the list of banned users in the thread_view? I don't think that would be possible as there's no reference to thread ban in XenForo_ControllerPublic_Thread::actionView().
     
  3. Tracy Perry

    Tracy Perry Well-Known Member

    Yep.. was afraid of that. Was hoping it would be something simple so you could set Post Ratings via template not to display it's "stuff". Looks like it will be something that Luke will have to extend on the add-on.
    Thanks
     
  4. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    btw, I might be wrong since I haven't checked if the banned list is saved in the xf_thread table :p
     
  5. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    Yeps, you have to add one more extra query to fetch the list. :)
     

Share This Page