We often see users apply huge images in signatures that appear in postbit making the postbit look more like an advert zone. That not only destroys the decency of the board but much annoying too.
This tweak will handle this issue restricting the size of the signature image in postbit as desired / defined by admin.
Go to template:
ACP > Templates & Styles > Templates > {theme_name} Templates > Postbit Templates > postbit_signature
Find this:
Change it to:
Save the template.
Now open your theme's showthread.css in advanced edit mode:
ACP > Templates & Styles > Themes > {theme_name} > showthread.css > Edit Stylesheet : Advanced Mode
and add the following at the end:
Change the height pixel value as required and save.
Now the signatures of the users in postbit will be maintained not exceeding the size limit you have specified.
Note: Declaring height or width only will change the subsequent width or height maintaining aspect ratio. You can declare both the values; ( eg. max-width: 100px; ) in that case whichever value will exceed the tweak will take effect.
This tweak will handle this issue restricting the size of the signature image in postbit as desired / defined by admin.
Go to template:
ACP > Templates & Styles > Templates > {theme_name} Templates > Postbit Templates > postbit_signature
Find this:
{$post['signature']}
Change it to:
<div class="postbit_sig">{$post['signature']}</div>
Save the template.
Now open your theme's showthread.css in advanced edit mode:
ACP > Templates & Styles > Themes > {theme_name} > showthread.css > Edit Stylesheet : Advanced Mode
and add the following at the end:
.postbit_sig div img, .postbit_sig div a img {
max-height: 70px;
}
Change the height pixel value as required and save.
Now the signatures of the users in postbit will be maintained not exceeding the size limit you have specified.
Note: Declaring height or width only will change the subsequent width or height maintaining aspect ratio. You can declare both the values; ( eg. max-width: 100px; ) in that case whichever value will exceed the tweak will take effect.