The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I created a custom profile field a drop down menu with 3 options, I was wondering how can I create a conditional so that if the 1st option is selected it display a certain code, and if it is the 2nd option then it displays another code, and if it is the 3rd then it displays the another different code. I have tried several combinations and still cant get it to work. I am going to do this on the FORUMHOME template so any help would be great.
Thanks |
|
#2
|
|||
|
|||
|
Code:
<if condition="$bbuserinfo['fieldX'] == Y">
<else />
<if conditon="$bbuserinfo['fieldX'] == Z">
</if>
</if>
|
|
#3
|
|||
|
|||
|
I get this
The following error occurred when attempting to evaluate this template: The conditional on line 283 appears to be missing its beginning tag (<if>). This may cause unexpected behavior. Thanks for your help |
|
#4
|
||||
|
||||
|
What exactly did you add because Opserty's code looks correct (two beginning ifs and two ending ifs).
edit: I looked in my postbit and I use something more along these line: Code:
<if condition="$vbulletin->userinfo[fieldX] == Y">
<else />
<if conditon="$vbulletin->userinfo[fieldW] == Z">
</if>
</if>
|
|
#5
|
|||
|
|||
|
Thanks for your help Im not sure what was causing it, but we just created a plugin, that is going to do what we need. And Now it works thanks again
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|