Xenforo Hooks

Hello, I am trying to do some styling and I need some basic info. If i wanted to display the amount of unread comments in a tread, where would I find the hook for that?

Also if Sway sees this,
this style is kinda tacky :/ need to change it soon..​

Jake Bunce

XenForo moderator
Staff member
The choice of hook depends on where on the page you want to display the information. Basically you decide where you want the information displayed, find that spot in the templates, and look for nearby hooks. Then your hook function needs to fetch the information and append it to the contents of the hook. Here is a basic code example of a template hook: