User info pane (image)

Stimo

Active member
Was wondering if it was possible to have an image display in the user info pane left of posts. Basically on vBulletin there was a mod to have your national flag display, so basically when you selected the word 'England' it would display the English flag in the info pain.. I basically want to do the same again but not national flags this time.

Anyone have a code for it?
 
Did you update the other code as well?

Rich (BB code):
<xen:if is="{$user.customFields.f1team}">
<img src="/images/flags/{xen:helper userFieldValue, {$userFieldsInfo.f1team}, $user, {$user.customFields.f1team}}.gif" width=88 height=19 border="0" alt="{xen:helper userFieldValue, {$userFieldsInfo.f1team}, $user, {$user.customFields.f1team}}">
</xen:if>
 
Did you update the other code as well?

Rich (BB code):
<xen:if is="{$user.customFields.f1team}">
<img src="/images/flags/{xen:helper userFieldValue, {$userFieldsInfo.f1team}, $user, {$user.customFields.f1team}}.gif" width=88 height=19 border="0" alt="{xen:helper userFieldValue, {$userFieldsInfo.f1team}, $user, {$user.customFields.f1team}}">
</xen:if>
Ah we're getting somewhere! But this image needs to replace the word 'McLaren' at the bottom of the info pane http://gyazo.com/39405a4614ed40ce30be3b3c1fd0d443
 
If you want the image displayed in the normal position then you can remove the template conditional and set some display html for the field itself:

Admin CP -> Users -> Custom User Fields -> [click the f1team field] -> General Options: Value Display HTML

Use this code:

Code:
<img src="/images/flags/{$value}.gif" width=88 height=19 border="0" alt="{$value}">
 
If you want the image displayed in the normal position then you can remove the template conditional and set some display html for the field itself:

Admin CP -> Users -> Custom User Fields -> [click the f1team field] -> General Options: Value Display HTML

Use this code:

Code:
<img src="/images/flags/{$value}.gif" width=88 height=19 border="0" alt="{$value}">
Woahhh that didn't work haha, i got this now... http://gyazo.com/350f78211c2fce745b5461a9f0047eae
 
Top Bottom