Sorry I missed your followup. It appears that the problem is that long string of text at the bottom of your header:

I'd take all the extra stuff out and just get it running with the default header and then add back in what you need to get it working. Try just putting this for your default header:

Code
<? //UBBTREMARK
// File Version 6.5b6

echo <<<UBBTPRINT
<!-- START OF header.tmpl TEMPLATE -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{$ubbt_lang['READ_DIRECTION']}">
<head>
$headerinsert
$refresh
<meta http-equiv="Content-Type" content="text/html; charset={$ubbt_lang['CHARSET']}" />
<link rel="stylesheet" href="$stylesheet" type="text/css" />
<link rel="shortcut icon" href="{$config['images']}/favicon.ico" />
$javascript
<title>{$config['title']}: $inputTitle</title>
</head>
<body>
<!-- END OF header.tmpl TEMPLATE -->
UBBTPRINT;
?> // UBBTREMARK