The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
Does anyone know if its possible to show the "thread title" in the header template, for some reason I cant get it to display. im using the Code:
$thread[title] Probably something simple im doing wrong. thanks |
#2
|
|||
|
|||
![]()
I think it's because the header template is processed before $thread[title] is set. I don't know if there's a "standard" trick to get around that. I guess if you really wanted to do it you could use a plugin to insert it somehow, using the showthread_complete hook.
navbar isn't done till the end so it could go near the navbar (but I guess it's already in the navbar ![]() |
#3
|
|||
|
|||
![]() Quote:
|
#4
|
|||
|
|||
![]()
But looking at the code in showthread.php, $header is set at the beginning (in global.php) and the showthread template isn't used until the end (and $navbar is set near the end). So although the $header appears after the <title></title> in the template, it is already set before the template even begins.
Something could be inserted between <body> and $header, but of course that would put it at the very top of the page. |
#5
|
|||
|
|||
![]() Quote:
I see, so its dosent look like it something that easy to do then --------------- Added [DATE]1259076988[/DATE] at [TIME]1259076988[/TIME] --------------- Quote:
<title></title> $header $navbar it seems to work above the header, below the header, in the navbar, but not in the header , although I can get the forum topics to show in the header just no the thread/post title.. |
#6
|
|||
|
|||
![]() Quote:
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). |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|