vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Control signatures height per pixel with CSS (https://vborg.vbsupport.ru/showthread.php?t=197826)

Mazinger 12-01-2008 10:00 PM

Control signatures height per pixel with CSS
 
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:

HTML Code:

$post[signature]
Replace it with

HTML Code:

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

HTML Code:

.fixedsig {
max-height:250px;
height:expression((document.documentElement.clientHeight) > 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

Quote:

Originally Posted by vBB-vietnam (Post 1677471)
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?

Quote:

Originally Posted by mohammadxxx (Post 1677569)
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

Quote:

Originally Posted by jayunsplanet (Post 1679117)
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.


All times are GMT. The time now is 10:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04665 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete