Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 4 Months, 1 Week ago Fix Avatar Error
#1
Solved: 4 Years, 4 Months, 1 Week ago
Hi there, If u click the following link u will see what my problem is

http://www.vpfl.club/forum/showthread.php?tid=5

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
#2
Solved: 4 Years, 4 Months, 1 Week ago
Your thread is not visible to guests
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#3
Solved: 4 Years, 4 Months, 1 Week ago
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
#4
Solved: 4 Years, 4 Months, 1 Week ago
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.

http://www.vpfl.club/forum/member.php?ac...file&uid=2

Although the white background is still there
#5
Solved: 4 Years, 4 Months, 1 Week ago
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
#6
Solved: 4 Years, 4 Months, 1 Week ago
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, http://www.vpfl.club/forum/showthread.php?tid=5.

Any help would be greatly appreciated
#7
Solved: 4 Years, 4 Months, 1 Week ago
^ 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
#8
Solved: 4 Years, 4 Months, 1 Week ago
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
#9
Solved: 4 Years, 4 Months, 1 Week ago
avatar at member profile => member_profile_avatar template
avatar at members list => memberlist_user_avatar template
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)