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

Adding Variables To Template

#1
Hi everyone,

I'm still a bit new to all this so please excuse my dumb questions. Recently I wanted to add the sidebar stats to the footer of my template. But I found out that those stat variables aren't available to the footer template. How would I go about giving my footer template access to those variables? I was thinking of adding a hook in there and then adding a listener for that hook? What would I do within that listener to grab those variables?

Thank a million!

Edit: If you could write the code to grab these variables that would be awesome! I was thinking of doing an sql query but I know Xenforo already has a method of grabbing them demonstrated in the bar.
 
Last edited: