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

Xenforo Hooks

Discussion in 'Styling and Customization Questions' started by MatthewEnderle, Aug 1, 2012.

  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,
     
  2. Sway

    Sway Active Member

    my respect for you just went from -10 +1
     
  3. Jake Bunce

    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:

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

Share This Page