2010-11-15, 09:52 PM
Plugin Name: nCode Image Resizer
Plugin Description: This plugin enables you to automatically resize every user-posted image which is larger than given dimensions.
Plugin Author: Bomfile
Installation
[attachment=20531]
![[Image: 71780403.png]](https://camo.mybb.com/8db5007e127dbd87e96f3b0a690869ed2271c0d9/687474703a2f2f696d673137362e696d616765736861636b2e75732f696d673137362f313238312f37313738303430332e706e67)
![[Image: 69949250.png]](https://camo.mybb.com/079560ab7441db2ead3c80c51e8b324ee04e9d94/687474703a2f2f696d6732362e696d616765736861636b2e75732f696d6732362f343031362f36393934393235302e706e67)
DOWNLOAD:
http://mods.mybb.com/view/ncode-image-resizer
Plugin Description: This plugin enables you to automatically resize every user-posted image which is larger than given dimensions.
Plugin Author: Bomfile
Installation
[attachment=20531]
- Download the attached files.
ncode> home directory.
inc> home directory.
- inc/class_parser.php edit:
Find:
Change:<img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} />
return "<img src=\"{$url}\" border=\"0\" alt=\"{$alt}\"{$css_align} onload=\"NcodeImageResizer.createOn(this);\"/>";
Find:
Change:return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"{$alt}\"{$css_align} />";
return "<img src=\"{$url}\" width=\"{$dimensions[0]}\" height=\"{$dimensions[1]}\" border=\"0\" alt=\"{$alt}\"{$css_align} onload=\"NcodeImageResizer.createOn(this);\" />";
Find:
Change:$nestable_mycode['align']['replacement'] = "<div style=\"text-align: $1;\">$2</div>";
$nestable_mycode['align']['replacement'] = "<div align=\"$1\">$2</div>";
- Admin Cp>Configuration>Plugins>nCode Image Resizer>Activate.
- Admin Cp>Configuration>Settings>nCode Image Resizer Settings.
DOWNLOAD:
http://mods.mybb.com/view/ncode-image-resizer