Quote:
Originally Posted by Kr33p3r
Also, I've been trying to get a user profile field to show up next to the usernames in the bracket or a ladder, but since this isn't a "post" or a post bit, I am at a loss.
PHP Code:
<vb:if condition="$post['field10']">
<img src="{vb:stylevar imgdir_misc}/gamericons/sc2.png" alt="SC2: {vb:raw post.field10}" />
</vb:if>
<vb:if condition="$post['field11']">
<img src="{vb:stylevar imgdir_misc}/gamericons/{vb:raw post.field11}.png" alt="SC2 Tournament Race: {vb:raw post.field11}" />
</vb:if>
|
For showing profile fields in tournament brackets
1. First upload and allow overwrite of tournaments.php
2. Find in template 'tmnt_bracket'
HTML Code:
<a href="<vb:if condition="$team">competitions.php?do=viewteam&id<vb:else />member.php?u</vb:if>={vb:raw userid}">{vb:raw username}</a>
3. After add
HTML Code:
<vb:if condition="$userinfo['field10']">
<img src="{vb:stylevar imgdir_misc}/gamericons/sc2.png" alt="SC2: {vb:raw userinfo.field10}" />
</vb:if>
<vb:if condition="$userinfo['field11']">
<img src="{vb:stylevar imgdir_misc}/gamericons/{vb:raw userinfo.field11}.png" alt="SC2 Tournament Race: {vb:raw userinfo.field11}" />
</vb:if>