PDA

View Full Version : Custom Field in Profile


phalanxents
08-02-2016, 08:09 PM
Please help with this.

I have a custom field, (field5) Which I would like to show on the member's profile. I am totally changing the profile layout so I need the line of code, that will show the contents of field 5 to all users that visit the users profile.

Field 5 is Customer Reference Number and I have it next to the username at the top of the memberinfo page.

<span class="member_username">{vb:raw prepared.musername}</span>
<span class="member_status">{vb:raw prepared.onlinestatus}</span>
<vb:if condition="$prepared['field5']"><span class="usertitle">( $prepared['field5']) </span></vb:if>

--------------- Added 1470176296 at 1470176296 ---------------

Sorted it.


For anyone who needs to know how, here's the code that worked for me:

<span id="userinfo">
<span class="member_username">{vb:raw prepared.musername}</span>
<span class="member_status">{vb:raw prepared.onlinestatus}</span>
<vb:if condition="$userinfo['field5']"><span class="usertitle">({vb:raw userinfo.field5}) </span></vb:if>