Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Fanta - helmikuu 13, 2005, 08:46:26 AP

Otsikko: Scrollbar For Avatar [solved]
Kirjoitti: Fanta - helmikuu 13, 2005, 08:46:26 AP
I am using the theme Puzzle Light and when you view the avatars, this happens:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.habbohood.co.uk%2Fscrollbar.gif&hash=766a3038ba7b1a985fcc98cc36e161328f7d9400)

How can I fix this?
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: Adin - helmikuu 13, 2005, 08:59:43 AP
I think it's in the post.php, either that or the board index. I had the same problem and if i remember right it was because of a style that was applied to the avatar images.
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: Adin - helmikuu 13, 2005, 09:02:38 AP
Forget that. It's the display.template

find:

if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '


remove after:

<div style="overflow: auto; width: 100%;">

Try removing this tag, it should work i think.
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: Fanta - helmikuu 14, 2005, 05:38:00 AP
Sorry, where is display.template?
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: xenovanis - helmikuu 14, 2005, 05:41:44 AP
It should be in the theme's directory you're using. Or, if you're using an additional theme and it's not in there, try the default theme.
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: Fanta - helmikuu 14, 2005, 06:20:06 AP
Thanks.
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: Fanta - helmikuu 14, 2005, 06:24:31 AP
Okay, if I remove it I get a template parse error?
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: xenovanis - helmikuu 14, 2005, 06:31:13 AP
That's funny. I tried the same and it worked fine:


// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
', $message['member']['avatar']['image'], '</div><br />';


Maybe you accidently removed ' before , $message?
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: Midgard - helmikuu 14, 2005, 06:34:45 AP
Okay, Again

You open it: Display.template.php

Find it:
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';


Replace with:
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
', $message['member']['avatar']['image'], '<br />';
Otsikko: Re: Scrollbar For Avatar
Kirjoitti: Fanta - helmikuu 14, 2005, 07:00:18 AP
Thanks for all your help, guys! :)
Otsikko: Re: Scrollbar For Avatar [solved]
Kirjoitti: Adin - helmikuu 14, 2005, 07:08:28 AP
No problem, Fanta.

It's annoying if you have many users with bigger avatars, i know that ;)
Otsikko: Re: Scrollbar For Avatar [solved]
Kirjoitti: N3lson - tammikuu 14, 2006, 02:37:09 IP
This works fine but i have a new question.....
And if i want to remove the scrool bar of the signatures?
what should  i remove?