PDA

View Full Version : {$vbulletin->userinfo['field5']}


Yours Truly
04-28-2008, 10:15 AM
How would i go about making it so:


if ({$vbulletin->userinfo['field5'] = option 1'})
{
option 1
}
else if ({$vbulletin->userinfo['field5'] = option 2'})
{
option 2
}


and so on.

What would be the correct way of writing this? :)

Dismounted
04-28-2008, 11:04 AM
Templates or Plugins?

Yours Truly
04-28-2008, 11:29 AM
Plugins :)

But both would be helpful.

Dismounted
04-28-2008, 12:17 PM
Template:
<if condition="$bbuserinfo[field5] == 'option 1'">Option 1</if>
<if condition="$bbuserinfo[field5] == 'option 2'">Option 2</if>

Plugin:
if ($vbulletin->userinfo['field5'] == 'option 1')
{
Option 1
}
else if ($vbulletin->userinfo['field5'] == 'option 2')
{
Option 2
}

Yours Truly
04-28-2008, 01:44 PM
Cheers mate :)