Quote from: Joseph Fung on December 24, 2001, 05:56:29 AM$board should work.
You would think

however it doesn't. But I did finally figure it out. This code will work. However you have to set it up first.
I had to assign $board to $diffboard and then declare it in the global statement at the top of the template_header function. I didn't assign $board cuz I don't know where else it is used.
if (($diffboard != "")){
$tempfile = $diffboard."_"."template.html";
if (is_file( $tempfile)) {
$yytemplate = file ($tempfile);
}
else {
$yytemplate = file ('template.html');
}
}
else {
$yytemplate = file ('template.html');
}
I also added the if statement to check if the *_template file exists and if it doesn't then use the default. So now it works [/sigh of relief][/sigh]
Thanks for pointing me in the right direction. Now I just have to set up the templates. Life is good.
