My head hurts.
Here's my layout. Without conditionals, I have sidebar code for everyone. Then I want to only show it on the index, so I added this:
<if condition="THIS_SCRIPT == 'index'">
Then I want it to show or not show, based on the CPF, so I added this:
<if condition="$vbulletin->userinfo[field18] <> 'No'">
That works right now, for everyone - they can all show or hide the sidebar (huzzah!).
So my code looks like:
Code:
<if condition="THIS_SCRIPT == 'index'">
<if condition="$vbulletin->userinfo[field18] <> 'No'">
Hooray, this is my sidebar!
What I need to do now is ignore the on/off conditional for everyone BUT me (for starters). That way, regardless of what a not-me person sets the CPF to, it displays anyway. What I tried was this:
Code:
<if condition="THIS_SCRIPT == 'index'">
<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6))">
<if condition="$vbulletin->userinfo[field18] <> 'No'">
</if>
Thinking that the new and improved on/off conditional would only actually register for for my usergroup. So if the usergroup didn't match 5 or 6, the code would display anyway. If the usergroup DID match 5 or 6, and the conditional was set to Yes, it would display the code.
Unfortunately that didn't work.

With that setup, the sidebar always shows. Basically what I need is for it to show to everyone, unless they are in group 5/6, and if they are in group 5/6, only if the on/off conditional is set to Yes.