MyBB Community Forums

Full Version: Change the avatar size displayed in post bit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have installed Nayar's Facebook Connect Plugin & it fetches avatars for new members directly from facebook. However, the size of avatars displayed in postbit is too large. The ACP setting are set at 70x70, but it doesn't seem to impact the size of Facebook avatars.

How to correct this problem?
You could add this to your global CSS;

.post_avatar img {
	width: 70px;
	height: 70px;
}
(2012-08-14, 05:59 AM)YoshiOlly Wrote: [ -> ]You could add this to your global CSS;

.post_avatar img {
	width: 70px;
	height: 70px;
}

But that would scale even the smaller size avatars to 70x70 size. I only want bigger avatars to be reduced in size.
use max-width and max-height instead
How to do the same for avatar in user profile i.e. which template to edit?
(2012-08-18, 04:27 AM)brianmccoy Wrote: [ -> ]How to do the same for avatar in user profile i.e. which template to edit?

any answer to my query?
I want my avatar size to be as big as it is in my profile as when I make a post. When I make a post, the avatar is very small. I've tried both of the suggestions above about modifying the global.css file and it seems to have no effect. Also, my avatar is wider than it is tall and in a post it makes it square.

Any help appreciated.
Use % values to scale up or down.

<div style="width:45%;">
<img class="avatar" src="{$mybb->user['avatar']}" alt="{$mybb->user['username']}" ....

Like that way ...
Hi effone,

I tried the above code and It did straighten our the dimensions on my image. Now it's proportional instead of square. But I have to ask... is this going to happen to everyone else? If they have a square avatar, will it look like it's the shape of mine? And do I need to set the "username" to my name on the board so it will only apply to me?

Sorry to be dumb about this stuff and I DO thank you for the help.

The picture in the post is still small. I can't find how to make it bigger. I have avatar size set to a max of 200x200 just so I can see if it makes a difference and it doesn't in a post. Anymore ideas about that?

Thanks a lot!
That was just an example dear.
Set same "height: ##%" alongwith width to keep it proportionate.
Pages: 1 2