08-17-2010, 05:54 AM
-Resize images in your posts automatically when you tag [IMG] (in case the images are too big)
Demo: http://mybbvn.com/forum/showthread.php?tid=2&pid=7
Installation
- Upload ncoderesize.php to inc/plugins
- Upload ncoderesize.lang.php to inc/languages/english
- Upload ncode_imageresizer.js to forumroot
- Go to AdminCP > Plugins > Active nCode Image Resizer
- Edit template Ungrouped Templates > headerinclude
add at the end
- Edit file inc/class_parser.php
find
replace
Customize Settings
AdminCP > Configuration > Image Resizer (nCode)
There are 2 options, Max width/b] and [b]Max heigh
Demo: http://mybbvn.com/forum/showthread.php?tid=2&pid=7
Installation
- Upload ncoderesize.php to inc/plugins
- Upload ncoderesize.lang.php to inc/languages/english
- Upload ncode_imageresizer.js to forumroot
- Go to AdminCP > Plugins > Active nCode Image Resizer
- Edit template Ungrouped Templates > headerinclude
add at the end
PHP Code:[Highlight]
{$ncoderesize_script}
- Edit file inc/class_parser.php
find
PHP Code:[Highlight]
return "<img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} />";
PHP Code:[Highlight]
return "<img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} onload=\"NcodeImageResizer.createOn(this);\" />";
Customize Settings
AdminCP > Configuration > Image Resizer (nCode)
There are 2 options, Max width/b] and [b]Max heigh