![]() |
Control signatures height per pixel with CSS
1 Attachment(s)
This mod will help you determine a fixed height for signatures in posts with CSS to prevent members from having a large annoying signature. (it will cut from the signature and hide the rest of it) - screenshot attached.
Long signatures and signatures with alot of images will not be an issuse anymore! INSTALLATION EDIT postbit OR postbit_legacy (which you use) and search for: HTML Code:
$post[signature] HTML Code:
<div class="fixedsig">$post[signature]</div> HTML Code:
.fixedsig { And you're done! SUPPORT Please click Mark as Installed if you want to get support for this mod. |
Great idea. I going to check this out.
|
Awesome.
|
If you have installed it, then click Mark as Installed please. :)
|
Just finished installing it, works perfectly and very easy to install. Thanks.
|
Thanks!!! It works! ;)
I needed a code to modify the width of the signature. So with your permission I have adapted to modify the code in height and width. Here it is. Example with 800x300px. HTML Code:
.fixedsig { |
Well, I could add a width control too, but I decided to leave it to image resize mods; they would give better results for width control.
|
I have the ncode image resizer installed but don't work in signatures images. I think the best way to have a well-organized forum :D.
I have users who have reached 1,200px width pictures in signatures :eek: And vBulletin can only limit the size of attached images, not the bbcodes. Anyway, thanks again :up: |
Great one Ill try this later!
|
Hi I am new to vbulletin.. where do I go to make this edit.. thanks
|
i don't think I did it right... not working
|
Are you sure you applied my instructions correctly?
|
If I don't want to hide it, how can I add the scrollbar to the last part?
|
Quote:
|
I'm using 6 skins on my forum. One is default skin, the other four are from eXtreme pixels, and the last one is free skin Pro Bangla ( from vbulletin.org -> HERE ).
This signature restriction works perfectly on the fist five skins (default and eXtremepixels skins) BUT, it doesn't work with ProBangla skin. I am rly confused. In CSS i have (like in other's five skins) Code:
/* ***** Signature Cut ***** */ Code:
<div class="fixedsig">$post[signature]</div> Thanks a LOT Holy |
PM me with your forum admin access and I'll have a look myself.
|
Quote:
Check your PM |
Quote:
Thanks ;) |
Look at this:
http://www.vbulletin.com/docs/html/m...css_additional |
Thank you Mazinger!
It´s posible to limit also the width? Greetings |
I would recommend using an image resizer mod for this.
|
ImageResizer don?t works very well on my forum (3.8.1) :S. Instead of this I use Resize IMG tag with Highslide but only for images.
Thanks anyway, and thanks also for this hack ;) |
Quote:
Love this hack :p |
Love your comment too. ;)
|
1 Attachment(s)
I'm getting different problems with IE and Firefox. In the former, the signatures that are within the limit are stretched to fit it. This is not a problem in Firefox, although youtube videos embedded in signatures (by specialised bbcode) bleed over into the post below (or whatever's there). I suppose the embedding html overrides the mod somehow, but as a complete CSS noob, I haven't a clue how to fix it, and the IE stretching thing I can't figure out at all. (Screenshots attatched)
|
I think my mod have no control over flash objects in Firefox, may be there's something that can be done to solve it - I don't it now, sorry!
|
Well, necessity is the mother of invention :p , and I managed to find some solutions on my own - I set the wmode parameter in the embedding code to opaque and used "this.scrollHeight" in the css instead of "(document.documentElement.clientHeight)".
|
Quote:
Quote:
****IMPORTANT: Place this code at very top of CSS. |
Thank you. Works very well. :up:
|
I used the "scroll" instead of "hidden" but how do I make it so if the signature is the right size, you can't see the scroll bars?
|
it is max-height is valid css for ie, ff or any else browser ? I dont max-height is global css variables, some browser cant read it.
|
Is it possible to change the limitation from px to % or something that change with the users screen resolution? As it is it will look quite different depending on your screen resolution.
SGL. |
This is awesome .. thaks a lot Mazinger !
|
Work perfectly...tq
|
You're welcome all.
|
All times are GMT. The time now is 08:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|