MyBB Community Forums

Full Version: Limit Image Size for Profile View ONLY
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
www.ncisclan.com

Trying to limit the image size for users when viewing their profile:
Normal:
http://ncisclan.com/member.php?action=profile&uid=1

Messed Up:
http://ncisclan.com/member.php?action=profile&uid=101

So I want to add a Image Limit so it cuts it off to prevent the stretching of the page.

Also, with the Post Bit signatures, I'm having a small issue.

[Image: KXj1q.png]

Thanks for the help, appreciate it.
-iHydra
AdminCP > Templates > Your theme's templates > Member Templates > member_profile_signature > find the following;
<td class="trow1">{$memprofile['signature']}</td>
and Change it into;
<td class="trow1 condense_sig">{$memprofile['signature']}</td>

Now open global.css in Advanced Mode and add the following class at the bottom of it;
.condense_sig img{
max-width: 500px;
}

It will shrink the Images in signature, like this;
[attachment=26498]
Worked! Thanks.

And, how do I fix the signature for Post Bit. It's not centered and there is a lot of space under it.

I already put;
<hr size="1" width="25%"  align="center" />
{$post['signature']}
Do you want to do the same on postbit as well ?? if yes then wrap;
{$post['signature']}
with this;
<div class="condense_sig">{$post['signature']}</div>
No, I already took care of the signature in Post Bit, but it's not centered.
OK, so you want to aligned it to center, right?

Wrap;
{$post['signature']}
with this;
<div align="center">{$post['signature']}</div>
I already have that.

Look:
[Image: VN3zN.png]

It's not centered, even the HR line. Something went wrong when changing the signature coding.
Looks like padding issue somewhere in postbit templates.
I fixed the padding issue, but I had to remove the img size limits for it to get fixed. How do I put it once again? That's not in postbit or postbit_classic, unless if it has to. Because I did put it there at first, following a tutorial on here but the padding got messed up.

Would this work?
<hr size="1" width="25%"  align="center" />
<div class="max_sig">{$post['signature']}</div>

.max_sig img{
max-width: 750px;
max-height: 250px;
}