FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159475&th=118499#msg_159475
Try as I might, the herd cannot control its desire to post massive images no matter how many requests.
Anyway, it's a wish of mine.
Thanks.]]>dfgngirl2009-06-05T03:11:27-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159482&th=118499#msg_159482
forum.css.tmpl template and recompile your theme:
img {
max-width: 450px;
}
You may also want to change the "Max Attachment Size" of your forums to prevent users from uploading large images.
]]>naudefj2009-06-05T13:39:41-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159485&th=118499#msg_159485
img {
max-width: 450px;
}
...at the bottom of forum.css.tmpl and I rebuilt the theme. This code seems to have no effect. Pictures linked that are 1200 wide are still 1200 wide whilst displaying.
What I was looking for was a way to make it so no image that a user want to embed can exceed a pre-set img width = in my forum's case 800 pixels.]]>dfgngirl2009-06-05T14:35:19-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159486&th=118499#msg_159486
naudefj2009-06-05T15:03:41-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159487&th=118499#msg_159487
I'll try refreshing things...]]>dfgngirl2009-06-05T15:13:54-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159489&th=118499#msg_159489
Are you assuming this should work, or know for sure?
Thanks again!]]>dfgngirl2009-06-05T15:25:08-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159490&th=118499#msg_159490
]]>naudefj2009-06-05T15:29:47-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159500&th=118499#msg_159500
dfgngirl2009-06-05T21:23:26-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159501&th=118499#msg_159501
1. Install 2.8.1
2. Post an image
3. Add CSS code to bottom forum.css.tmpl (just before the {PAGE: END})
4. Rebuild the theme
5. Reload page and note that the image is smaller
]]>naudefj2009-06-06T07:21:05-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159503&th=118499#msg_159503
everything exactly as you say and still the images are as wide as ever.
Edit: note up to now, I copied a template and used that copy "new" as my test on this. Well it got me thinking I should try this code with the default template. And now it works! Why not with the copy? I don't know.
Again, a big thanks to you Frank! I been wanting to limit the size of images for YEARS!]]>dfgngirl2009-06-06T15:07:16-00:00Re: Ability to set max IMG display width
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=160209&th=118499#msg_160209
THANKS AGAIN!!!!!!!!! You are awesome!!!!