If you're going to use a variable in the "header" template, you need to create a plugin at "global_start" with the contents of your variable, ie: $var = "hello world!";.
If you're using it on the "forumhome" template, then you can change the hook location to "forumhome_start".