vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Avatar pictures showing up with grey line below? (https://vborg.vbsupport.ru/showthread.php?t=161980)

tobias_t 11-05-2007 01:48 PM

Avatar pictures showing up with grey line below?
 
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

1 Attachment(s)
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

Quote:

Originally Posted by Lynne (Post 1376307)
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:
HTML Code:

<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:
HTML Code:

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

Code:

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

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


All times are GMT. The time now is 05:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01092 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete