MyBB Community Forums

Full Version: Image Resize Plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could someone please make a plugin for mybb 1.8 that resizes images automatically so that we don't get this issue?:
[Image: d9f443ad147cd938f45217fea6a8f95f.png]

Basically the image size is forcing text to flow off the template. There used to be a plugin for mybb 1.6 that resized images called "fit on page" but it has not updated for the 1.8 forum version.

Thanks!
I don't believe there is a plugin for this, but it's actually pretty easy to do this with CSS directly. Add this to the top of global.php:

#posts_container img {
  max-width: 100%; 
}
^ It's in-built in 1.8 actually, you just have to use MyBB 1.8 compatible theme.. Example:
[Image: center-wide.jpg]
@destroyer
I'm using the 1.8.1 version of the revolution theme and it's been causing the threads to appear wrong with large (width) images , why is it doing it and could just add the code above to fix the issue
(2014-11-15, 10:18 AM)ShaneR82 Wrote: [ -> ]why is it doing it

No idea, you should rather ask in the Revolution theme thread, not here..