Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Limit signature height via CSS Details »»
Limit signature height via CSS
Version: 1.00, by HolyKiller HolyKiller is offline
Developer Last Online: Feb 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 10-23-2011 Last Update: Never Installs: 60
Template Edits
 
No support by the author.

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 :]

Screenshots

File Type: png wosiglimit.png (542.2 KB, 0 views)
File Type: png withsigclimit.png (225.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
babyv0x, Toshinobu

Comments
  #12  
Old 04-16-2012, 05:42 PM
Emeralda's Avatar
Emeralda Emeralda is offline
 
Join Date: Oct 2011
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm guessing there's no way to make it so opening a spoiler would increase the box automatically, instead of cutting it and using the overflow?
Reply With Quote
  #13  
Old 04-26-2012, 11:37 AM
HolyKiller HolyKiller is offline
 
Join Date: Dec 2006
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Theoretically it shoudn't be a problem. It depends on your specific spoiler tag. Send me a source and i'll try to add a part which will override signature CSS :]
Reply With Quote
  #14  
Old 04-26-2012, 02:00 PM
kappeGF kappeGF is offline
 
Join Date: Jan 2010
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is any possibility to setting this mod for specify usergroup?
Reply With Quote
  #15  
Old 10-05-2012, 12:29 PM
BUDIMAN BUDIMAN is offline
 
Join Date: Jun 2010
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked like a charm
Reply With Quote
  #16  
Old 10-10-2012, 06:07 PM
Toshinobu Toshinobu is offline
 
Join Date: Oct 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on 4.2 Thank you!
Reply With Quote
  #17  
Old 10-18-2012, 05:51 AM
legiondadon legiondadon is offline
 
Join Date: Aug 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.2 doesnt work nothing seems to happen..i have eTiKeT 2011 Postbit_Legacy installed
Reply With Quote
  #18  
Old 02-12-2013, 05:30 PM
trophiesonpsn trophiesonpsn is offline
 
Join Date: Oct 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea what effect this might have on a spoiler bar opened to reveal content larger than the space allowed?
Reply With Quote
  #19  
Old 04-12-2013, 01:10 PM
jokergameth jokergameth is offline
 
Join Date: Jul 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great with my vb4.1.5
Thank you /bow
Reply With Quote
  #20  
Old 04-13-2013, 11:43 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A better alternative, with a scroll bar, would be:
Code:
.signaturecontainer {
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
}
It's always smart to avoid expressions in CSS.
Reply With Quote
Благодарность от:
sadiq6210
  #21  
Old 01-25-2014, 12:27 AM
Dstephan Dstephan is offline
 
Join Date: Aug 2005
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Superwaffle View Post
A better alternative, with a scroll bar, would be:
Code:
.signaturecontainer {
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
}
It's always smart to avoid expressions in CSS.
This works well - but it adds a scroll bar to see the rest of the sig - I'd rather the sig just cut off so it looks bad and they want to change it. Is there a way to eliminate the scroll?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07243 seconds
  • Memory Usage 2,332KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete