Okay I have managed to get the php include for 4.0 working with the following code:
Template:
Code:
{vb:raw globalHeader}
Plugin:
PHP Code:
ob_start();
include("../header.php");
$globalHeader = ob_get_contents();
ob_end_clean();
$preRegister['globalHeader'] = $globalHeader;
vB_Template::preRegister('header', $preRegister);
However what I really want to do is basically create my own custom template page, the problem with this current include is that the vb code inside ../header.php is just printed instead of being executed, what can I do to fix this?
Many Thanks