MyBB Codes

Full Version: nCode Image Resizer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
-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
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} />"
replace
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
thanks
i like ittttt
Great Work - THANX !
Why would this be good to have?
so ppl dont post giant pics on ur forum <_<
Btw can somebody please help me? This does not work on my forum, I get this

Quote:[Highlight]Warning [2] Invalid argument supplied for foreach() - Line: 363 - File: admin/inc/class_form.php PHP 5.1.6 (Linux)

/admin/inc/class_form.php_____________363___________errorHandler->error
/admin/modules/config/settings.php_____1153__________DefaultForm->generate_select_box
/admin/index.php ____________________483___________require
This image resizer is simply awesome. It is of great use. I would like to congratulate you for scripting such a beautiful code. I tried it, and it works great. I would like to ask everyone to try this out. It is really useful. You can easily resize your image into any size you wish for.
Thanks, this is really good.
thnx so much bro Wink
hha...thanks for this plugin
Pages: 1 2
Reference URL's