Quote:
Originally Posted by CarCdr
I presume you have verified the values by outputting them to the page. For instance, you say that "$forum['icon']" works, so I presume you sent it to the page to verify its contents for each forum. Did you do the same for "$extrauseroptions" to verify that it contains nothing?
Post the code that sets "$extrauseroptions".
|
$forum['icon'] works by itself. That is
<if condition="$forum['icon']">code</if>
works without a hitch. It's output can be seen in the images it fetches.
I've run tests where I simply typed
$extrauseroptions['display_forumicon'] = true;
And it didn't work. I've echo'ed the variable at the end of the phpinclude_end template and it's came back as 1, which is normal for a boolean.
The only thing I can think of is that it's simply not being *seen* by the section of code that parses those templates and I need to make the variable global in scope somehow. Short of adding it's value to $GLOBALS I don't know how (and I've never had to worry about variable scope before with vbulletin so I'm not too sure even then).