Limit graphics in sig file to one

Temery

Active member
How can I limit a signature file to just one graphic? Ideally I'd like to also set a max size.
 

Brogan

XenForo moderator
Staff member
You can't limit the number of images, but you can limit the overall size of the signature and the image sizes.

Try adding this to EXTRA.css:
Code:
.message .signature .bbCodeImage {
max-height: 100px;
max-width: 200px;
overflow-x: auto !important;
overflow-y: auto !important;
}
You can change that code to suit, adjusting the sizes and the overflow type (hidden for example).
 

wickedstangs

Well-known member
You can't limit the number of images, but you can limit the overall size of the signature and the image sizes.

Try adding this to EXTRA.css:
Code:
.message .signature .bbCodeImage {
max-height: 100px;
max-width: 200px;
overflow-x: auto !important;
overflow-y: auto !important;
}
You can change that code to suit, adjusting the sizes and the overflow type (hidden for example).
wow, that is awesome how can I do that to uploaded pictures?
 

Brogan

XenForo moderator
Staff member
You can do something like this:
Code:
.bbCodeImage {
max-height: 400px !important;
max-width: 600px !important;
}
Just use the .bbCodeImage class.
 

tommydamic68

Well-known member
You can't limit the number of images, but you can limit the overall size of the signature and the image sizes.

Try adding this to EXTRA.css:
Code:
.message .signature .bbCodeImage {
max-height: 100px;
max-width: 200px;
overflow-x: auto !important;
overflow-y: auto !important;
}
You can change that code to suit, adjusting the sizes and the overflow type (hidden for example).
I added this code as described, however the image remains full size in signature. Any suggetions?
 

Brogan

XenForo moderator
Staff member
The permissions don't exist in that version.

It would require an add-on in that case.
 
You can't limit the number of images, but you can limit the overall size of the signature and the image sizes.

Try adding this to EXTRA.css:
Code:
.message .signature .bbCodeImage {
max-height: 100px;
max-width: 200px;
overflow-x: auto !important;
overflow-y: auto !important;
}
You can change that code to suit, adjusting the sizes and the overflow type (hidden for example).
Hi @Brogan or @Chris D

I tried this code in XF 2 but tghat did not work.

Can you tell me how to make it work in XF2? Say size max = 600 wide and 100 heigh.

Thx!
 
Last edited:
Top