Quest2be1
09-16-2011, 05:25 AM
I am trying to write a simple add-on for my website. However, I can't continue because I don't know what are the parameters to specify an option under a profile field given there are more than one options to choose from. The idea is that when a user chooses one of the 7 options under a user profile field depending on what he chooses results in a different image appearing.
I have tried this..
<vb:if condition="$post['field12'] & 1"></vb:if>
I have tried this..
<vb:if condition="$post['field12'] <option value="1" ></option></vb:if>
and this..
<vb:if condition="$post['field12 - 1']"></vb:if>
Basically the list goes on and on. I am trying to figure out what is the code that recognizes an "option" in a "user profile field." If you could help me out I would really really appreciate it. I am running v.4.1.5
I have tried this..
<vb:if condition="$post['field12'] & 1"></vb:if>
I have tried this..
<vb:if condition="$post['field12'] <option value="1" ></option></vb:if>
and this..
<vb:if condition="$post['field12 - 1']"></vb:if>
Basically the list goes on and on. I am trying to figure out what is the code that recognizes an "option" in a "user profile field." If you could help me out I would really really appreciate it. I am running v.4.1.5