Im not sure I fully understand your question, but I'd like to bring a few things up in case they are related to what you are asking:

Headers and footers are called from within the Smarty 3.1 templates which display the pages.

note1: You cannot insert {php} or {include_php} in the templates - I believe this also affects the PHP global keyword.
SOURCE: https://www.ubbcentral.com/forums/u...e-ubb-threads-7-7-0-changelog#Post261732
Quote
[UPDATE] Removed the 2.x backwards compatibility from the Smarty library. This means faster pages all around. It also means that if you you've customized your templates to use {php} or {include_php} functions, you'll need to move those items in to your php scripts.
note2: For using JavaScript within your templates, your braces need to have spaces on either side of them, so as to not be confused by Smarty 3, as being Smarty script commands.

Anything relating to custom Smarty 3.1 code can be researched at https://www.smarty.net.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com