PDA

View Full Version : Username --> Profile Field on Postbit display


Kevin McGowan
01-04-2010, 04:53 PM
Hi there,

Would someone be able to tell me how I can swap the Username being displayed on the Postbit_Legacy to, say, Profile Field 7?

I've tried swapping several bits of the template around but the best I can get is {Field7}{Username}.

When you hover over the Avatar with my changes, it says {Field7}'s Avatar, just as it does for {Field7}'s Reputation however the username remains unchanged.

Any ideas?

LifesGreatestGift
01-05-2010, 11:56 PM
Easy. Are you using postbit or postbit_legacy? Link me to your forum.

Kevin McGowan
01-08-2010, 09:06 PM
Legacy; 4.0.x

Dygear
01-09-2010, 07:15 AM
Within memberaction_dropdown:

<vb:if condition="$memberinfo['field7']">{vb:raw memberinfo.field7}<vb:else /><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></vb:if>

I would think something like that, but you would really have to check it out for your self. I've not run this code, so I have no idea.

Kevin McGowan
01-09-2010, 01:03 PM
I couldn't get the above to work so it displays. The displayed username remained the same.

Lynne
01-09-2010, 02:41 PM
Replace this line:
<vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a>With this line:
<vb:if condition="$memberinfo['musername'] OR $memberinfo['field7']"><vb:if condition="$memberinfo['field7']">{vb:raw memberinfo.field5}<vb:else />{vb:raw memberinfo.musername}</vb:if><vb:else />{vb:raw memberinfo.username}</vb:if></strong></a>
Do similar with titles/alts in that template.