rtrm
06-02-2010, 07:54 AM
(reposted in vb4, after accidentally posting in vb3)
I have a formatting issue with postbit_legacy.
I've added a link based on a user profile file (Field6). This works :) However, the link always appears to the right of the user's avatar, whereas I'd prefer it under the avatar.
Below is a spinet from postbit_legacy, so you can see where I've placed my short peice of code (shown in red).
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
{vb:raw post.onlinestatus}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</div>
<span class="usertitle">
{vb:raw post.usertitle}
</span>
<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
<vb:if condition="$post['field6']">
<a href="http://eu.wowarmory.com/character-sheet.xml?r=Doomhammer&cn={vb:raw post.field6}">{vb:raw post.field6}</a>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
Any ideas?
Thanks,
Roy
I have a formatting issue with postbit_legacy.
I've added a link based on a user profile file (Field6). This works :) However, the link always appears to the right of the user's avatar, whereas I'd prefer it under the avatar.
Below is a spinet from postbit_legacy, so you can see where I've placed my short peice of code (shown in red).
<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
{vb:raw post.onlinestatus}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</div>
<span class="usertitle">
{vb:raw post.usertitle}
</span>
<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
<vb:if condition="$post['field6']">
<a href="http://eu.wowarmory.com/character-sheet.xml?r=Doomhammer&cn={vb:raw post.field6}">{vb:raw post.field6}</a>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
Any ideas?
Thanks,
Roy