Quote:
Originally Posted by Zachery
Just put it in the headinclude template, why are we being so complicated? 
|
I've tried that as well. I placed:
<vb:if condition="in_array($GLOBALS[forumid], array(9,11))">
<link rel="stylesheet" type="text/css" href="/clientscript/vbulletin_css/sponsor/sponsor.css" />
</vb:if>
At the bottom of the headinclude template and still nothing.
When removing the conditional, the file is included. So there is something up with the conditional.
Also, when just trying $foruminfo[forumid], it doesn't work. wtf
--------------- Added [DATE]1274041318[/DATE] at [TIME]1274041318[/TIME] ---------------
It appears that regardless of the reference, the forumid variable is not rendered whether using
$foruminfo[forumid]
$GLOBALS[forumid]
or just $forumid
I've tried everything in the headerinclude and headerinclude_bottom templates. I've also tried registering $forumid @ forumdisplay_start
Code:
$forum= array('forumid' => $vbulletin->GPC['forumid']);
vB_Template::preRegister('header',array('forum' => $forum));
My next step is to try forumhome and forumdisplay templates. If it works there, then I'll make the assumption that there is no access to this variable in the headers and that there is no definition of this variable with a global scope. Even if that was the case I'm not sure why the plugin above didn't register the variable.
It was asked earlier why this is being made complicated. I'd like to ask the same thing at this point.