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)
-   -   Mini Mods - Limit the height of the signature (https://vborg.vbsupport.ru/showthread.php?t=198985)

dothanhtrung 12-15-2008 10:00 PM

Limit the height of the signature
 
find postpit or postbit legacy
Code:

<!-- sig -->
.......
<!-- /sig -->

and replaced by all

Code:

<!-- sig -->
                        <hr size="1" style="color:#678B06" />
                        <div valign="bottom" style="width:100%; height:400px; overflow: auto">
                                $post[signature]
                        </div>

                <!-- / sig -->

400px is the maximum height permitted for you. you can edit if you want

this mod can use for all version vbb

Huy Ho?ng 12-16-2008 09:28 AM

Good job :D

Tarfandestan 12-16-2008 11:19 AM

Excellent!

Jezlad 12-16-2008 01:12 PM

Awesome, thanks for this. I had a few members asking for it last month.

a9eel 03-19-2009 05:24 PM

hi how are you some problem with me

any one have abig sig when he Write Subject the buttons of quote and post reply
will be Inside his sig is there away i can Separate the buttone frome his sig ?????

skariko 01-15-2010 08:47 AM

Anyone know how to make this on VBulletin 4.0?

BLykMik 01-28-2010 04:56 PM

This is nice.

Question (for anyone that knows).

1.) Is there a way to make it so no scroll bars show up if they overflow? I would like to just tell the users that, say 150 pixels is the max height for sigs and if they go over, it will just crop cleanly. It will be up to them to fit within the parameters when they set up their sigs.

2.) Is there any way to make the postbit sig area table (or whatever it is) start RIGHT after the end of the post. Currently, it looks like the sig table (or space) is always below the poster information (on the right) table. So if you have a lot of info there, a short post leaves a TON of blank space. (Any mod you can point me to for changing that part of the layout?)

Thanks!

BirdOPrey5 08-17-2010 01:39 PM

Quote:

Originally Posted by skariko (Post 1956338)
Anyone know how to make this on VBulletin 4.0?


In postbit/postbit_legacy template:

Replace the code:
Code:

{vb:raw post.signature}
With:
Code:

<hr size="1" style="color:#678B06" />
                        <div valign="bottom" style="width:100%; max-height:400px; overflow: auto">
                        {vb:raw post.signature}       
                        </div>

If you want to hard limit the size and prevent scrollbars completely, change: overflow: auto to overflow: hidden.


Edit - changed height: to max-height: so height is not fixed if signature is smaller.

Harley D 10-30-2010 01:43 PM

Works GREAT on VB 4.08
This should be listed under VB 4.0 mods, had one hell of a time finding it.

THANK YOU!!!!!!!!!!

Quote:

Originally Posted by BirdOPrey5 (Post 2085268)
In postbit/postbit_legacy template:

Replace the code:
Code:

{vb:raw post.signature}
With:
Code:

<hr size="1" style="color:#678B06" />
                        <div valign="bottom" style="width:100%; height:400px; overflow: auto">
                        {vb:raw post.signature}       
                        </div>

If you want to hard limit the size and prevent scrollbars completely, change: overflow: auto to overflow: hidden.


8thos 11-16-2010 02:40 AM

Thanks man some of these peeps large ass sigs were getting on my nerves.

cmmguy 01-14-2011 10:01 PM

This sets a FIXED height not a max height, making all posts with sigs to that height. I tried the max-height parameter instead and it worked except it caused oversize items to overflow the sig into the post below.

Nook_Neformat 05-24-2012 10:52 AM

Quote:

Originally Posted by cmmguy (Post 2149164)
This sets a FIXED height not a max height, making all posts with sigs to that height. I tried the max-height parameter instead and it worked except it caused oversize items to overflow the sig into the post below.

Yes, i wish someone would tell how to make max height, not fixed


All times are GMT. The time now is 03:28 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.01221 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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