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

Xenforo Hooks

#1
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,
Sway
this style is kinda tacky :/ need to change it soon..​
 

Jake Bunce

XenForo moderator
Staff member
#3
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:

http://xenforo.com/community/threads/how-to-create-a-bridge.28515/#post-331631