Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Set Maximum Image Size
Ron
New
How do I set the maximum image size in a new discussion? I am using jQuery WYSIWYG as my editor. I don't want large images to break my theme. Can images be set automatically re size.
0
Comments
http://pastebin.com/2GhWATSq
add this to the js/global.js, before the });
http://pastebin.com/aGwHUUc0
What browser did you use?
Maybe you can share a link?
function imageResize() { $('img').load(function() { $('.Message p img').each(function() { var width = $(this).width(); var url = $(this).attr('src'); if (width >655) { $(this).attr('width','655'); $(this).after('<br/><a href="'+url+'" target="_blank">Teljes méret</b>'); } }); }); } imageResize(); //When you make a comment, the page not going to refresh, only the message list, so you need to run the function again. $('ul.MessageList').ajaxComplete(function() { imageResize(); });