Code:
<if condition="$post['field5'] OR $post['field6']">
<div class="postinfo">
<if condition="$post['field5']">
<a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[field5]" target="_blank">
<img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" />
</a>
</if>
<if condition="$post['field6']">
<a href="http://xxxx.hlstatsx.com/?mode=playerinfo&player=$post[field6]" target="_blank">
<img src="$stylevar[imgdir_misc]/hlstatsx.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_hlstatsx_stats]</phrase>" border="0" />
</a>
</if>
</div>
</if>