MyBB Community Forums

Full Version: Post bit avatar size + online status
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I am not good with styling so I wanna ask you for help. I need to make all avatars size in post bit and post bit classic same (aspect ratio has to be stay same). 

Second thing:
I need to add online/offline status in to the top left corner - something like xenforo - for example this one (via google http://ourdjtalk.com/data/attachments/26...e6a935.jpg )

In xenforo all images in post bit have same size - I need something like that in mybb

Thank you very much!
Go to Themes & Templates -> click on themes -> Your theme -> Global.css and the find this
.post .post_author div.author_avatar img {
padding: 5px;
border: 1px solid #ddd;
background: #fff;
###width: 100px; - By default you dont have these 2 lines.
###height: 100px;
}

Add your width and height. You're done.

For better use I suggest to make for avatar another class. This right now changes in classes post; post_author and author_avatar img files. Go to your postbit templates and search for avatar lines. Add new class - after that go to your global css and make bottom of your code new line:
 .youravatar { 
width: 100px;
height: 100px;
That will distort any none square avatars.
No, this is a bad approach - avatars will be cropped