XF 2.0 Custom user fields in postbit

MarcusJonesy

Active member
I want members to be able to add their online username so it will show in the postbit information with also an image next to it either Xbox or PS. I already have setup the fields where members enter their usernames but need to insert this into the postbit.

Could anyone point me in the right direction of how to do it?
 
188390


Code:
<a href="http://live.xbox.com/en-US/Profile?gamertag={$valueUrl}" target="_blank"><img src="https://www.cozworld.com/images/profileicons/xboxlive.png" alt="My Xbox Live"/></a>


See it on Profiles page and some are showing in postbit!


I set mine to show the icon and a link to a online gaming console sig sight
 
Last edited:
Can you use Xen template conditionals in the Value Display HTML? It seems you cannot?

Anyone know how that might be achieved? We need to change the display for a particular value, appending a small icon like so:

<xf:if is="{$value} == 'XXX'"><img src="XXX" /</xf:if>
 
If you want a custom order, you'd generally have to edit the template directly to reference the custom field where you want. Similarly, if you need custom template code for logic, then that's more than the value display HTML option allows, so it would require direct template edits.
 
If you want a custom order, you'd generally have to edit the template directly to reference the custom field where you want. Similarly, if you need custom template code for logic, then that's more than the value display HTML option allows, so it would require direct template edits.
Template edits? Which we're told are an evil beast that must be slain?
 
Top Bottom