|
|
Registered User Currently Offline
|
Posts: 3
Join Date: Mar 2006
|
|
The forum code inserts a comment before the doctype when constructing the HTML page like so: Code:
<!-- START: mainheader -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> (I have added the doctype in mainheader.htm) This comment really shouldn't be there. To get round this, I have tweaked the get_template function in skinning.php so that it only inserts the comment if it's not the main header that it's dealing with. Code:
if($template_name == "mainheader")
return "return <<<TMP\r{$t}\r\n<!-- END: $template_name -->\r\nTMP;\r\n";
Else
return "return <<<TMP\r\n<!-- START: $template_name -->\r\n{$t}\r\n<!-- END: $template_name -->\r\nTMP;\r\n";
This seems to work, but perhaps there is a better way to do it?
Ian
|