Quote:
Originally Posted by RK KINGKONG
I have found it way better to use the following code the the one supplied. It made it look better and its in a better position. Also notice that when you hoover over the flag it will actually say the full name of the country.
Find:
Code:
{vb:raw template_hook.postbit_userinfo_right}
Add ABOVE:
Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldx']">
<a class="postuseravatar">
<dt>Country:</dt>
<img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.fieldx}.GIF" alt="{vb:raw post.fieldx}" border="" />
</vb:if>
<!-- Wy Flags End -->
And of course X being your field id for the user profile field.
|
The following is the code that I use (I have put it on here in a post - But I should put it in my OP):
Code:
<!-- Wy Country Flags Start -->
<vb:if condition="$post['fieldX']"> <dt>Country:</dt>
<img src="http://www.YOUR FORUMADDRESS.COM/images/buttons/{vb:raw post.fieldX}.GIF" alt="{vb:raw post.username}'s Country Flag is: {vb:raw post.fieldX}" border="0" />
</vb:if>
<!-- Wy Flags End -->
Gives me - what you see in the "Attachment".
It is a case of - adjusting the code to suit your needs.