MyBB Community Forums

Full Version: Fix Avatar Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there, If u click the following link u will see what my problem is

The Avatar Section has a white background, there is no background on the actual image (this can be seen if u click the persons name), So i need to get rid of this white background that only appears on posts.

The size of the Avatar is also too high. I have set the maximum avatar dimensions to 20x60 but it has made no change. The avatars come from a custom code that pulls them from a website link. Could this cause it to override the max dimensions?

Any help to fix these 2 issues would be greatly appreciated.

Thanks, Danny
Your thread is not visible to guests
Edit: delayed response

you have to allow guests to view threads
or provide a test user account so that someone can view referred issues & suggest possible solutions
Apologies u should now be able to view

Also I dont know if this will help but i have just noticed that the first 2 people to sign up on the websites avatars are being put through the max avatar dimensions. This can be seen on my profile here.

Although the white background is still there
for the white background, open global.css of the theme through admin panel (edit in advanced mode) & look around line 1131
.post .post_author div.author_avatar img {
    background: none repeat scroll 0 0 #fff;
you can remove background: none repeat scroll 0 0 #fff;

looks like avatar dimensions are not saved. ensure that settings.php file is writable
Edit: and also check the dimensions set for Maximum Avatar Dimensions in Posts at show thread options
I couldnt find the code u said above for the white background, i should also say we have set it to the classic post mode is there anything i can do with the code below? As it was the closest thing i could find in relation to it,

.post .post_author div.author_avatar img {
padding: 5px;
border: 1px solid #ddd;
background: #fff;

Hi there, The Background has been fixed thanks alot.

Any other ideas for the sizes? It is writable and in the show thread options the size is only 20x60 which should be tiny and as can be seen by the following link its huge,

Any help would be greatly appreciated
^ can you check postbit_avatar template code of the theme - should be similar to below
<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>
basically {$useravatar['width_height']} should be present in the code
Hey. Thanks alot for ur help. I managed to figure it out. It was to do with the thing above. I changed the width_height to be exactly what i wanted and it worked for the postbit. Now i just need to figure out how to fix the memberlist

Sorted it, Thanks alot for all your help. Just opened my eyes and really helped me understand mybb Big Grin
avatar at member profile => member_profile_avatar template
avatar at members list => memberlist_user_avatar template