MyBB Community Forums

Full Version: Where does {$avatar} come from?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just a quick question as to what template controls the "avatar" on the member page?

http://www.cudaminers.net/forum/eduncan911-user.html

I have set a large avatar (up to 180x180 to upload, 150x150 in thread view settings, etc). I know, I am using a custom Theme with maybe some type of Float.

But, the Member template (member_profile) only has this in it:

<div id="profileavatar">{$avatar}</div><br />

Where is it getting this {$avatar} variable and how do I modify it?

Thanks!
Thanks!

Humm, I need it different for different templates. That isn't going to work b hardcoding the img tags.

The fact that it hardcodes the height and width is what screws up the CSS you try to apply.
Try using the !important css tag.

Example
This would make the max width 100px no mater what.
But the height can be anywhere between 1px and 150px.
.avatar {
width: 100px !important;
max-height: 150px;
}
just wrap it in a div called profileimage and apply the class to the image in global css:

HTML
<div class="profileimage">{$avatar}</div>

CSS
.profileimage img {
width: 8em;
max-width: 8em;
height: auto;
}