Thanks! A new challenge, though...
I'm now trying to fetch $myheader through a parse_templates plugin, so I no longer have to include that line in my function:
PHP Code:
// Code in vB's plugin system
eval('$myheader = "' . fetch_template('myheader') . '";');
// myheader template code in vB
$stylevar[htmldoctype]
<html id="moooo" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $pagetitle</title>
</head>
<body>
$header
// Function in my code, separate from vB
function displayHeader()
{
global $myheader, $header;
echo $myheader;
}
In my function, $myheader can't see the $header variable and $header isn't displayed. What am I missing?