You can use the output of the php in the template. From example, in the index.php file which controls forumhome there are php variables defined for
this is then used in the forumhome template to display the output of this variable. As you do all your other stuff in the php file (as seen in post #2) before the templates part ie between
Code:
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
and
Code:
$navbits = array();
then all the output can be used in the template.