MyBB Community Forums

Full Version: How to set 1 size for Profile pic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i want to set only 1 size for profile picture.

i have set same size on.

Quote:Go to Admin CP > Configuration > Settings > Show Thread Options > Maximum Avatar Dimensions in Posts.
Go to Admin CP > Configuration > Settings > User Registration and Profile Options > Maximum Avatar Dimensions.
Go to Admin CP > Configuration > Settings > Member List > Maximum Display Avatar Dimensions.

But i can't find 2nd one.

Quote:Go to Admin CP > Configuration > Settings > User Registration and Profile Options > Maximum Avatar Dimensions.


[Image: Untitled.jpg]
In CSS you have following at line 1087:

.post .post_author div.author_avatar {
float: left;
margin-right: 1em;
min-width: 70px;
max-width: 90px;
}

if you remove max width, text will be displayed after avatar...

I don't understand what do you mean by 1 size and 2nd size...?
i want only 1 size are allow not small nor big.

like here MyBB you and me have equal avatar but you can see example picture 1 profile pic is small and another is big.
But it's not same at this forum. Here look at this for example: https://community.mybb.com/thread-22489.html

Both users have different size avatar.

However, you can find in global.css at line 1102 following code:

.post .post_author div.author_avatar img {
    border-radius: 1000px;
    width: auto;
    height: auto;
    background: #fff;
}

Just change width: auto; with width you want.
eg.
width: 100px;

same for height.

Also, if you want more flexibility, you can play with it by adding one or more of following:

    max-width: 100px;
    max-height: 100px;
    min-width: 100px;
    min-height: 100px;

That should do the trick. Also, you can use any size instead of 100px.
Thanks buddy is there any way to stop ad blockers? except this https://blockadblock.com
i want another it orange one.

anyways thanks for the help @staff close this thread.
Try searching about it... https://community.mybb.com/search.php?ac...order=desc

There are some useful threads and multiple ways to do that but none of them is 100% sure that noone will use AdBlock or similar program... Wink

Good luck