Log in

View Full Version : postbit_legacy help


2fast4ya
11-03-2010, 05:35 PM
I've made social icons a part of my postbit_legacy so that users can list their favorite social networks or websites and have the icons appear in their posts.

I'm having some issues though. If a user is using an avatar, the icons show up in one location, and if the user is not using an avatar, it shows up in another. I CANT FIGURE IT OUT (ahem, excuse the outburst...)

Here is where I've placed the code:

In postbit_legacy - I found the code:

{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>

And directly after that, I've placed:

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7)">
<vb:if condition="$post['field6']">
<a href="{vb:raw post.field6}">
<img src="images/misc/facebook_icon.png" alt="My Facebook" style="border-style: none" target="_blank"/></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7)">
<vb:if condition="$post['field7']">
<a href="{vb:raw post.field7}">
<img src="images/misc/twitter_icon.png" alt="My Twitter" style="border-style: none" target="_blank"/></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7)">
<vb:if condition="$post['field8']">
<a href="{vb:raw post.field8}">
<img src="images/misc/myspace_icon.png" alt="My Myspace" style="border-style: none" target="_blank"/></a>
</vb:if>
</vb:if>

I've also included a screen shot of the error. Notice how the location of the icons change depending on if the user has an avatar or not.

Retal
11-04-2010, 04:14 PM
Move the icons inside the div.imlinks, not after.

2fast4ya
11-04-2010, 04:29 PM
You're a hero, thank you

Retal
11-04-2010, 05:20 PM
I wish. ;)