PHP Code:
function displayHeader()
{
eval('$myheader = "' . fetch_template('myheader') . '";');
echo $myheader;
}
displayHeader();
I have a custom template named 'myheader'. When I try to call it with the above function, I get a blank page. However, if I replace "fetch_template('myheader')" with "fetch_template('header')" vBulletin's standard header template is displayed.
How would I go about calling my custom template from this function?