PDA

View Full Version : Show Thread Enhancements - Control signatures height per pixel with CSS


Mazinger
12-01-2008, 10:00 PM
This mod will help you determine a fixed height for signatures in posts with CSS to prevent members from having a large annoying signature. (it will cut from the signature and hide the rest of it) - screenshot attached.

Long signatures and signatures with alot of images will not be an issuse anymore!


INSTALLATION


EDIT postbit OR postbit_legacy (which you use) and search for:

$post[signature]Replace it with

<div class="fixedsig">$post[signature]</div>Then go to the style option and add these lines in the CSS


.fixedsig {
max-height:250px;
height:expression((document.documentElement.client Height) > 250? "250px" : "100%");
overflow:hidden;
}
You can change the 250 to the height you want (per pixels)

And you're done!


SUPPORT


Please click Mark as Installed if you want to get support for this mod.

acast
12-02-2008, 06:44 PM
That seems perfect. Thanksss ;)

m33n4
12-02-2008, 07:09 PM
it contract all the sig not only the pictures please fix it :(

Mazinger
12-02-2008, 07:36 PM
Yes, it shall work that way, whatever in the signature won't appear.

father guido
12-03-2008, 01:43 AM
Installed - thank you

vBB-vietnam
12-03-2008, 01:58 AM
thank you. i think it work with IE . but not with Firefox
installed

mohammadxxx
12-03-2008, 05:14 AM
hi
thanks for your nice job .

my forum is persian lang and my eng lang not working .
so I can't fine the style option!!!

Mazinger
12-03-2008, 01:23 PM
thank you. i think it work with IE . but not with Firefox
installed
I'm on Firefox 3.0.4 and it's working with me. Are you sure you followed my instructions correctly?

hi
thanks for your nice job .

my forum is persian lang and my eng lang not working .
so I can't fine the style option!!!
It's the page you edit style CSS & colors from.

jayunsplanet
12-05-2008, 03:51 PM
I don't understand where "Then go to the style option and add these lines in the CSS" that is in reference to.

Do you put it in the "Additional CSS Definitions"?

Mazinger
12-06-2008, 06:10 AM
I don't understand where "Then go to the style option and add these lines in the CSS" that is in reference to.

Do you put it in the "Additional CSS Definitions"?
That's what I'm meant.