MyBB Community Forums

Full Version: how to auto-resize images in postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2015-02-15, 11:04 AM)Jockl Wrote: [ -> ]I guess you would have to integrate the scaleimages class in your postbit template and try to adapt "max-width"-value in the CSS class "scaleimages".

hi, 
thank u for the help
can u guide what to update in postbitcss ?
mean what is the code that should be typed please?
In the default MyBB theme you can find following line in the postbit and postbit_classic template
<div class="post_body scaleimages" id="pid_{$post['pid']}">
and in the postbit_classic template additionaly the line
<div class="post_author scaleimages">
You would have to adapt your themes accordingly unless they do not show the scaleimages CSS class. After integrating this in your themes you would have to include following CSS class in your global.css of your themes
.scaleimages img {
	max-width: 100%;
}
and modify the value of max-width to your requirements....
hi,
i did what you advised
it worked on google chrome but not working on IE and firefox
how to fix that ??
for example - this post

http://shaanse.com/Forum/showthread.php?tid=3487

shows normaly on chrome but on other browsers it shows pics out of the page Sad
Cannot see any problems at IE, FF and Chrome using the above link. Each browser scales the images correctly. I tried different themes as well.
after doing that
now i see the new issue 

the smiley in postbit is so big 
i did some thing wrong i guess but can not figure what. Cool

[attachment=33827]
Looks like you used width instead of max-width. ?
Yes i did so
i fixed it
thank you Smile
Pages: 1 2