PDA

View Full Version : BBoptions in Conditional


TheInsaneManiac
10-07-2009, 02:59 AM
<if condition="$bbuserinfo['field92'] === 'No'">

Is my current layout. How can I get $vboptions['sn'] in it?

My field id is stored in the VBoptions. So I need it like this:

<if condition="$bbuserinfo['field $vboptions['sn']'] === 'Yes'">

Only that doesn't work.

Adrian Schneider
10-07-2009, 03:31 AM
<if condition="$vbulletin->userinfo['field' . $vbulletin->options['sn']] == 'Yes'">

TheInsaneManiac
10-07-2009, 03:58 AM
<if condition="$vbulletin->userinfo['field' . $vbulletin->options['sn']] == 'Yes'">
Should $vbulletin->options and $vbulletin->userinfo be used? I thought it was vboptions and vbuserinfo were for the templates? Cause thisedit will be done to a template.

The code also didn't work rather I tried it with $vbulletin->options or $vboptions.

TheInsaneManiac
10-10-2009, 10:47 PM
Still need help.