Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 12 Years, 3 Months, 3 Weeks ago Limit Image Size for Profile View ONLY
#1
Solved: 12 Years, 3 Months, 3 Weeks ago
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
#2
Solved: 12 Years, 3 Months, 3 Weeks ago
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;
   
#3
Solved: 12 Years, 3 Months, 3 Weeks ago
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']}
#4
Solved: 12 Years, 3 Months, 3 Weeks ago
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>
#5
Solved: 12 Years, 3 Months, 3 Weeks ago
No, I already took care of the signature in Post Bit, but it's not centered.
#6
Solved: 12 Years, 3 Months, 3 Weeks ago
OK, so you want to aligned it to center, right?

Wrap;
{$post['signature']}
with this;
<div align="center">{$post['signature']}</div>
#7
Solved: 12 Years, 3 Months, 3 Weeks ago
I already have that.

Look:
[Image: VN3zN.png]

It's not centered, even the HR line. Something went wrong when changing the signature coding.
#8
Solved: 12 Years, 3 Months, 3 Weeks ago
Looks like padding issue somewhere in postbit templates.
#9
Solved: 12 Years, 3 Months, 3 Weeks ago
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;
}


Forum Jump:


Users browsing this thread: 1 Guest(s)