Quote:
Originally Posted by Pollo
I've got an odd issue... (and hope to goodness someone didn't post it before). Conditionals work.. sometimes.
In header template, this does NOT work:
[[($foruminfo[forumid]==44)]] Display this HTML code if forum id is 44 [[/($foruminfo[forumid]==44)]]
|
Not related to the hack, it is a technical restriction.
Your problem is: the header template is formed by vbulletin before "$foruminfo[forumid]" variable gets a value so when you use such a variable in your header, it will be always equal to 0, regardless of your location in board.
That conditional will only work in forumdisplay templates as $foruminfo[forumid] variable will be assigned a value when these templates are parsed. It should also work if you use "$forumid" variable in your header because apparently it is assigned a value before header template is parsed but I didn't test it.