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
nCode Image Resizer.zip (Size: 7.54 KB / Downloads: 218)
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
nCode Image Resizer.zip (Size: 7.54 KB / Downloads: 218)
- 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