Limit Size of Signatures
4 posters
The forum of the forums :: Support forum :: Administration Panel, packages, credits and other paid features problems :: Problems Archives
Page 1 of 1
Limit Size of Signatures
I'm wondering if there's a way to limit the size of pictures that are allowed in member signatures. I've found this, but I use phpBB2, so I'm not sure if the site will work for me.
Also, is there a way to automatically resize signature images down to the maximum size allowed?
And since I know absolutely nothing about javascript or HTML, please tell me where to put the code, if there is one?
Thanks in advance!
Also, is there a way to automatically resize signature images down to the maximum size allowed?
And since I know absolutely nothing about javascript or HTML, please tell me where to put the code, if there is one?
Thanks in advance!
Re: Limit Size of Signatures
- Code:
signature_div img {
max-width: SIZEpx; max-height: SIZEpx;
}
Change "SIZE" and "SIZE" with the size in pixels . add it to
CSS style sheet .
Mystic_gohan2- Forumember
- Posts : 700
Reputation : 30
Language : English
Re: Limit Size of Signatures
Thank you so much for your quick reply!
I've put this into the style sheet, but signatures are still larger than the max I've set. Does this only work for signature images put in the future, or should it work for all signatures that already exist?
I've put this into the style sheet, but signatures are still larger than the max I've set. Does this only work for signature images put in the future, or should it work for all signatures that already exist?
Re: Limit Size of Signatures
It should work for all signatures
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: Limit Size of Signatures
Hm. The signatures haven't shrunk, and although they're not considered huge, they're still larger than the specified pixels.
The specified width of the signatures are within bounds (less than 500px), but the height is 100px over what it should be per the code.
The specified width of the signatures are within bounds (less than 500px), but the height is 100px over what it should be per the code.
Re: Limit Size of Signatures
The reason this isn't working for you is because the CSS given above is incorrect. Since you stated 500x100, the correct CSS is:
- Code:
.signature_div img {max-width:500px;max-height:100px;}
- Code:
.signature_div {max-width:90%;max-height:150px;overflow:auto;}
Guest- Guest
Re: Limit Size of Signatures
dion, this works perfectly, and I love the scroll bar!
Nera, thanks so much for your help!
Both of you absolutely rock!
Nera, thanks so much for your help!
Both of you absolutely rock!
Re: Limit Size of Signatures
Since this thread appears to be solved, I will lock this thread and mark it as solved now. Important: You can also help the moderators to know if your topic/problem is solved by EDITING your first post and marking the topic as solved. Thank you. ~ Joph25 |
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» How to limit Signatures size??
» Limit size of signatures
» size limit of pictures in signatures
» Is there a size limit for avatars & signatures?
» How to limit the size of images in signatures
» Limit size of signatures
» size limit of pictures in signatures
» Is there a size limit for avatars & signatures?
» How to limit the size of images in signatures
The forum of the forums :: Support forum :: Administration Panel, packages, credits and other paid features problems :: Problems Archives
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum