Customizing SMF > Now Available
Limiting signature size
TokyoBanana:
Mod Available Signature Settings Mod
Original Post
I would be really happy if this feature was included sometime soon in one of the next updates to SMF. Meanwhile, does anyone know a mod for this? I found a similar one but that's for disabling images.
Just a clarification: I don't want to limit the size of images posted in the threads, except for signatures.
Thanks a lot! :)
Anguz:
You could do something as simple as adding this to your CSS file:
--- Code: ---.signature
{
width: 468;
height: 60;
overflow: hidden;
}
--- End code ---
That'll set the signature space to that and whatever exceeding it will be hidden.
The width and height you can change to what you want, but then remember that every sig, even if they don't need that much, will be that much. So don't make it too big either. I used those measures in the past and have found them pretty good, but it's your preference.
Anguz:
Hmm... looks like besides the class, there's inline styling for the signature. You may need to edit it in Display.template.php.
--- Code: ---<div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">
--- End code ---
I think that now that there's a class for the signature, you can safely take style property out of that div and just add the padding-bottom: 3px; to my previous post.
Remember that when you edit themes, you make a copy of the file in the default one, don't modify the originals. Here's good info on that topic:
http://www.simplemachines.org/community/index.php?topic=16843.0
TokyoBanana:
All right!
Thanks a lot! ;)
Yo spiffy, don't forget to have a look. XD
Elijah Bliss:
I still can't get the CSS signature resize to work.
Navigation
[0] Message Index
[#] Next page
Go to full version