PDA

View Full Version : Avatar pictures showing up with grey line below?


tobias_t
11-05-2007, 01:48 PM
Hi there,

I am about to enable avatars for our forum, specifically we want to have our staff have the company logo as an avatar picture.

However, it turns out that avatar pictures are always shown with a single-pixel wide grey line running below their lower image boundary across their whole width. It looks like a graphics bug and it would be great if somebody can help me to sort this out...

Thanks, Tobias

Valter
11-05-2007, 02:05 PM
Link or Screenshot?

tobias_t
11-05-2007, 02:24 PM
Here is a screenshot... I tried it with different pictures and the grey line is always there.

Lynne
11-05-2007, 02:30 PM
Do you have links underlined for that css class? It looks like a link underline to me. So, find the css class and then make it so links are not underlined or you can also modify the link for the avatar to not underline the link (I think).

tobias_t
11-05-2007, 02:41 PM
Do you have links underlined for that css class? It looks like a link underline to me. So, find the css class and then make it so links are not underlined or you can also modify the link for the avatar to not underline the link (I think).

Thanks, that sounds like a very probable explanation. How would I modifiy the avatar link?

Lynne
11-05-2007, 02:54 PM
On this forum, when I look at the source code I see this:
<td class="alt2"><a href="member.php?u=xxx"><img src="/custompics/forum/avatars/avataryyy_1.gif" width="80" height="80" alt="zzz" border="0" />
I think I would either modify the alt2 class, but then you would get rid of all link underlines for anything using the alt2 class. Or you could try adding a style to the link:
<td class="alt2"><a href="member.php?u=xxx" style="text-decoration: none;"><img src="/custompics/forum/avatars/avataryyy_1.gif" width="80" height="80" alt="zzz" border="0" />
I think that will work, but I'm a trial and error type coder. :)

tobias_t
11-05-2007, 03:12 PM
I tried both suggestions, but none of them worked. Any other ideas? :confused:

Lynne
11-05-2007, 03:18 PM
What does the source code look like on your site for the avatar? (the part that I quoted above)

tobias_t
11-05-2007, 03:23 PM
It currently looks like this in the postbit:

<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>

Lynne
11-05-2007, 03:27 PM
And you already tried to modify it to:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]" style="text-decoration: none;"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
And you modified it in the correct template (I'm not sure if you are using the postbit or postbit_legacy template on your site)?

tobias_t
11-05-2007, 03:49 PM
Yes, I tried all of this, it's puzzling me that it doesn't change anything.

MagicThemeParks
04-17-2010, 02:39 AM
I did a search for this issue and this is exactly happening on one of my sites as well. So, rather than opening a new thread, figured I'd just post to this existing one.

Any new suggestions on how I could fix this?