vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Cut down signature when going over specific height (https://vborg.vbsupport.ru/showthread.php?t=248702)

Skyrider 08-15-2010 08:45 PM

Cut down signature when going over specific height
 
vB3 had a signature plugin that when going over a specific height that you can set in the AdminCP the signature will be cut off when going over the limit. It won't resize the signature nor alter it as whole but rather it won't show the complete signature and just doesn't display the part that goes over the height. Any way possible someone can create this for vB4?

Like this:
https://vborg.vbsupport.ru/showthread.php?t=198985

BirdOPrey5 08-16-2010 07:12 PM

I'd bet that mod still works so long as you put the code around:

Code:

{vb:raw post.signature}
Instead of:
Code:

$post[signature]

So basically 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>

That should work, but I haven't tested it.

Skyrider 08-17-2010 11:44 AM

That seems to work, thanks! But is there anyway the scroller can be removed? I prefer it to be cut down completely rather showing a scrollbar to show the rest.

BirdOPrey5 08-17-2010 12:34 PM

change "overflow: auto" to "overflow: hidden"

Skyrider 08-17-2010 04:42 PM

Why thank you, you should submit this as a signature mod for vb4.

BirdOPrey5 08-17-2010 04:50 PM

I posted the instructions in the original mod for anyone interested- I wouldn't feel right submitting it as my own, hopefully the original author may one day do it.

Skyrider 08-18-2010 05:38 PM

1 Attachment(s)
There's just 1 problem with this alteration. Setting the pixels will increase the height of the whole signature, even if you are only using a small signature.. here's an example:

- Without the plugin
https://vborg.vbsupport.ru/attachmen...1&d=1282160307

- With the plugin
https://vborg.vbsupport.ru/attachmen...1&d=1282160307

You see height changes. Do ignore the backgrounds, I used 2 different styles as an example.

BirdOPrey5 08-18-2010 06:12 PM

Hmmm... Try using max-height:500px instead of height:500px.

So...
Code:

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


Skyrider 08-18-2010 06:45 PM

:) I love you, thanks! That works very nicely.

EDIT:
Actually, it only seems to work half.

http://forum.esforces.com/threads/78...kills?p=986201

Check my posts and then #13. See the difference? It sometimes works, but not always.. It's very weird.

BirdOPrey5 08-18-2010 07:19 PM

Everyone of the signatures look good/right to me... What browser you using? I use Chrome but have them all installed.

--------------- Added [DATE]1282167017[/DATE] at [TIME]1282167017[/TIME] ---------------

I justed re-checked with Firefox and IE8, both look good for me also- maybe it was just a cache issue? :confused:


All times are GMT. The time now is 09:44 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.01562 seconds
  • Memory Usage 1,736KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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