The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
(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). Code:
<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>
Thanks, Roy |
|
#2
|
|||
|
|||
|
We fixed it. For the benefit of anyone with a similar problem in the future our modified code is below (in red):
Code:
<dl class="userinfo_extra">
<vb:if condition="$post['field6']">
<div><dt>Main</dt> <dd><a href="http://eu.wowarmory.com/character-sheet.xml?r=Doomhammer&cn={vb:raw post.field6}" target="_blank">{vb:raw post.field6}</a></dd></div>
</vb:if>
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|