Use $foruminfo[forumid] In_Array in BBCode
I am trying to use the following conditional in the BBCode
<vb:if condition="in_array($foruminfo[forumid], array(1,2)) AND $bbuserinfo[userid]">
If works fine if the $bbuserinfo[userid] is used alone. However, I can't get the forumid bit to work. I have disabled post caching.
For some reason, $foruminfo[forumid] is returning 0. Well, to put it another way, in_array($foruminfo[forumid], array(0,1,2)) is true no matter which forum I am on, and in_array($foruminfo[forumid], array(1,2) is false, no matter which forum I am on. Any ideas how I can get this to work for forum ids, 1 and 2, and for all other forum ids, go to the else conditional?
|