So when you say you're moving it to the sidebar, do you mean you're creating a forum block? Then you'd need a php type forum block that renders a template.
Well, OK, you could just code the html into your php wihout a template, and it might be a little easier to code. The convention is to use templates for html, but you don't have to follow that.