Solved: 6 Years, 11 Months ago [How To?] how to auto-resize images in postbit
#11
Solved: 6 Years, 11 Months ago
(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?
Reply
#12
Solved: 6 Years, 11 Months ago
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....
My Plugins on MyBBoard.de
(english descriptions included)
Reply
#13
Solved: 6 Years, 11 Months ago
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
Reply
#14
Solved: 6 Years, 11 Months ago
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.
My Plugins on MyBBoard.de
(english descriptions included)
Reply
#15
Solved: 6 Years, 11 Months ago
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

   
Reply
#16
Solved: 6 Years, 11 Months ago
Looks like you used width instead of max-width. ?
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#17
Solved: 6 Years, 11 Months ago
Yes i did so
i fixed it
thank you Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)