The header and footer are included through different subroutines, which is why your variables disappear. Try setting things in the $GLOBAL hash instead, as that should be automatically present for both.
FYI, the new product has proper style options for both forums and categories, like Classic.