View Full Version : Avatar Problem
farplane dragon
10-18-2008, 06:19 PM
I'm having a problem with one of my templates. If you look at the screenshot, there's some extra space above and below avatars. I've attached a screenshot and my postbit code. Does anyone have any ideas?
Lynne
10-18-2008, 07:17 PM
Take a look at the page source and see what it has listed as the avatar width and height. Is that correct? Was the avatar uploaded successfully?
Try comparing your avatar to the default avatar - edit postbit > View History > Compare - and see what the differences are.
farplane dragon
10-18-2008, 07:45 PM
From what I can tell, my avatar is width="80" height="79" with no problems loading it. I think I know where the problem is. Take a look at this picture. You will notice the 3rd person doesn't have a problem, but also, he has fewer items on the right side of his postbit. I think one of the post bit items is adding in the extra spaces and expanding the avatar box. But I'm not sure which one.
Lynne
10-18-2008, 07:58 PM
I'd guess your awards code. It's making the row 'longer'.
I notice everything in the other columns are in div tags, but the avatar is not. So, try putting the avatar in div tags like the content in the other columns.
farplane dragon
10-18-2008, 08:05 PM
You mean like,
<div>
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
</div>
That doesn't seem to do anything
Lynne
10-18-2008, 10:05 PM
You mean like,
<div>
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
</div>
That doesn't seem to do anything
No, you need to put the div tags inside the column like this:
<if condition="$show['avatar']"><td class="alt2"><div><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></div></td></if>
<td nowrap="nowrap">
Another thing to try is to move the awards stuff into the div tag above that instead of having it separate. Also, notice how it doesn't have div tags around part of that code - that could throw it off. I think you just need to play with it.
farplane dragon
10-18-2008, 11:14 PM
Adding the div tags to the avatar hasn't fixed anything. After playing for a while, I'm pretty much stuck. The only surefire thing that works is removing some of the items on the right, which isn't that big of a deal. The only one I can't figure out how to remove is the blog entries line.
Seven Skins
10-20-2008, 07:57 PM
Just remove class="alt2".
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">
;)
farplane dragon
10-20-2008, 10:59 PM
I love you....no homo.......... >_> <_< >_>
It's always got to be something so simple that you constantly overlook it. Thanks alot!
Lynne
10-20-2008, 11:28 PM
Good call, Seven Skins! :up:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.