Limit graphics in sig file to one

Brogan

XenForo moderator
Staff member
#2
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
#3
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
#4
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
#5
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?
 
#12
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