MyBB Community Forums

Full Version: Sig Stretching Profile Fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: sigprob.png]

The only problem I'm having is in the user profile itself. Everywhere else, my restrictions on signature size resize the image (i.e. - in threads and posts).

Is there anyway I can make this fit within the alignment of the forum on the user profile as well? As you can see, it really stretches it out.

Thanks!
1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Member Templates > member_profile_signature.

2. Find:

{$memprofile['signature']}

3. Replace with:

<div class="profile_signature_resize">{$memprofile['signature']}</div>

4. Go to Admin CP > Templates & Style > Themes > Your Theme > global.css > Advanced Mode.

5. Add this at the bottom:

.profile_signature_resize img {
width: 500px;
}

6. Change 500px to the maximum width an image can have in a profile.
Worked excellently! Thanks!
You're welcome. But I forgot to mention that even though most browsers will follow that code and proportionally resize the image to the correct height, some probably won't. I can guarantee that this will work in Chrome and Internet Explorer. As an alternative, you could cut-off everything that goes beyond the 500px limit, by using this in your CSS instead:

.profile_signature_resize img {
width: 500px;
overflow: auto;
}