vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Limit signature height via CSS (https://vborg.vbsupport.ru/showthread.php?t=272700)

HolyKiller 10-23-2011 10:00 PM

Limit signature height via CSS
 
1 Attachment(s)
This tiny hack will strictly limit signature height. It will take ALL things what the user have in the signature (no matter what is it ... text, image, video, code ... ) and it will crop it based on choosed value.

Original hack was made by Mazinger, but it was a bit outdated and it didn't work for IE7, so there is a newone for vB 4.x :)


Installation:
Styles & Templates -> Style Manager -> Edit Templates -> edit additional.css

add following code:
Code:

.signaturecontainer {
max-height:200px;
_height: expression(this.scrollHeight > 200? "200px" : "auto" );
overflow:hidden;
}

Change the red number to anything you want :]

HolyKiller 10-24-2011 06:09 PM

reserved

wally07 10-28-2011 05:43 AM

Just what I was looking for! Thank you!!!

Scans007 11-01-2011 03:05 PM

Worked like a charm in vB 4.x - I tried like 6 plugins from all diff versions....this was so simple

Thanks so much!!

WorldCraft 11-06-2011 10:30 PM

Perfect! :)

rfranklin 12-19-2011 01:11 PM

Awesome! This will be very helpful. Thanks!

acast 01-11-2012 01:45 PM

Is any possibility of adding a scroll bar to the signature to see if we want the rest of the signature?

Like this old hack:
https://vborg.vbsupport.ru/showthrea...gnature+scroll

HolyKiller 01-18-2012 04:27 PM

2 acast: Yes, just use
Code:

overflow:auto;
and it will show scrollbars if the signature larger that specified limit :]

acast 01-18-2012 05:04 PM

Quote:

Originally Posted by HolyKiller (Post 2289457)
2 acast: Yes, just use
Code:

overflow:auto;
and it will show scrollbars if the signature larger that specified limit :]

Thanks for your help, man ;)

cvalk 04-16-2012 04:36 PM

Thanks for this mod. I opted to use a scrollbar if the signature exceeds the permissable size and to disable the horizontal scroll. Here is the code in case it is useful to anyone else:

Code:

overflow: auto;
overflow-x: hidden;



All times are GMT. The time now is 10:05 PM.

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.03458 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete