The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
I'd bet that mod still works so long as you put the code around:
Code:
{vb:raw post.signature} Code:
$post[signature] So basically replace the code: Code:
{vb:raw post.signature} Code:
<hr size="1" style="color:#678B06" /> <div valign="bottom" style="width:100%; height:400px; overflow: auto"> {vb:raw post.signature} </div> |
#3
|
|||
|
|||
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.
|
#4
|
||||
|
||||
change "overflow: auto" to "overflow: hidden"
|
#5
|
|||
|
|||
Why thank you, you should submit this as a signature mod for vb4.
|
#6
|
||||
|
||||
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.
|
#7
|
|||
|
|||
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 - With the plugin You see height changes. Do ignore the backgrounds, I used 2 different styles as an example. |
#8
|
||||
|
||||
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> |
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|