Quote:
Originally Posted by monstermunch
I just checked my showthread template and it goes in this order
<title></title>
$header
$navbar
|
Right, but what "$header" does is take what is in the variable "$header" and insert it in the template at that point. So it doesn't matter where it is in the template, what matters is where $header is set in the .php file compared to where the template is eval'd. In showthread.php, $header is set (by evaluating the header template) at the top before $thread is set, so $thread[title] doesn't show up. The forum info must work because it's set before the header template is eval'd.
However - in checking out why the forum stuff works, I noticed that there's another thread variable that *is* set early, it's called "$threadinfo". So, if you use $threadinfo[title] it should work in the header. (But word wrapping and censoring has not been done at that point, so it may be different than what appears in later in the page, if you use either of those features).