way2xtreme
03-12-2010, 09:13 PM
Hello all,
I am trying to add a few custom profile fields into the memberinfo (profile) templates. For example if I have a custom field 2 called hometown and I would like to add it to the ministat section. What is the variable name here?
I tried user, userinfo, prpare, none would work...
<vb:if condition="$user['field2']"> Hometown: {vb:raw user.field2} </vb:if>
<vb:if condition="$userinfo['field2']"> Hometown: {vb:raw userinfo.field2} </vb:if>
<vb:if condition="$prepare['field2']"> Hometown: {vb:raw prepare.field2} </vb:if>
In postbit legacy, the following would work:
<vb:if condition="$user['field2']"> Hometown: {vb:raw user.field2} </vb:if>
<vb:if condition="$userinfo['field2']"> Hometown: {vb:raw userinfo.field2} </vb:if>
<vb:if condition="$prepare['field2']"> Hometown: {vb:raw prepare.field2} </vb:if>
Many thanks :)
WC
I am trying to add a few custom profile fields into the memberinfo (profile) templates. For example if I have a custom field 2 called hometown and I would like to add it to the ministat section. What is the variable name here?
I tried user, userinfo, prpare, none would work...
<vb:if condition="$user['field2']"> Hometown: {vb:raw user.field2} </vb:if>
<vb:if condition="$userinfo['field2']"> Hometown: {vb:raw userinfo.field2} </vb:if>
<vb:if condition="$prepare['field2']"> Hometown: {vb:raw prepare.field2} </vb:if>
In postbit legacy, the following would work:
<vb:if condition="$user['field2']"> Hometown: {vb:raw user.field2} </vb:if>
<vb:if condition="$userinfo['field2']"> Hometown: {vb:raw userinfo.field2} </vb:if>
<vb:if condition="$prepare['field2']"> Hometown: {vb:raw prepare.field2} </vb:if>
Many thanks :)
WC