MyBB Community Forums

Full Version: Custom Dimensions MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering what the best way would be to make a MyCode that allows members to set custom dimensions for their images. So for instance...

[img=300x300]www.blah.com/image.jpg[/img]

This would display image.jpg as 300x300. Any ideas? If anyone could make this I'd be most grateful. And I'm not looking for any kind of lightbox or clicking the image to view full size. Just a simple resize of the image.

Edit: Alternatively, a code to set just the max height or max width would be interesting as well. They'd retain their aspect ratio this way. [imgh] for height, [imgw] for width. Cheers.
The default MyCode can do this already.
http://community.mybb.com/misc.php?action=help&hid=7


Oh... Blush I had no idea. A lot of other forums lack this. Sheesh, I should really RTFM in future. Toungue Thanks, and mods, please lock. Shy Still though, being able to define just height or width would be nice, unless I'm missing something here. And I'm pretty useless at HTML and regex. Guess it's time to brush up...