This is one of those questions that gets asked occasionally. Apparently $foruminfo[forumid] doesn't work everywhere, but $GLOBALS['forumid'] seems to do it. Also, you can't use any variables in a template that haven't been registered, so even if $foruminfo exists, it probably wouldn't work in your situation (I assume nerbert is testing using another template, which is why it works). $GLOBALS[] is a "superglobal" so it's available everywhere.
BTW, in_array() is allowed in a template conditional (according to the manual anyway).
|