The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Avatar Problem
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?
|
#2
|
||||
|
||||
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. |
#3
|
||||
|
||||
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.
|
#4
|
||||
|
||||
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. |
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
Quote:
HTML Code:
<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"> |
#7
|
||||
|
||||
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.
|
#8
|
||||
|
||||
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"> |
#9
|
||||
|
||||
I love you....no homo.......... >_> <_< >_>
It's always got to be something so simple that you constantly overlook it. Thanks alot! |
#10
|
||||
|
||||
Good call, Seven Skins! :up:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|