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

how to list recent and active threads in a template

I'm working to readjust my sidebar, I want to list active threads and new threads. I created a addon to display a box below the existing sidebar and it works fine. In the same template or a new one I want to list the active and new threads. Is there is thread variable where I can loop through to show the title,date ,avatar/userid? Something like below ?
 <xen:foreach loop="$threads" value="$thread">
Any advise? How to loop through threads in xenforo templates?