Widget - so is this in the CMS? Or is it a forum block on the sidebar?
What template is this located in?
I think you just need to add a plugin to the relevant hook, and get those variables registered. We can do this with a little more info about the template, code, etc.
I'd like for it to potentially be in either the header or navbar template. I've had no problem getting it work on the sidebar.