The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Image resizer Details »» | |||||||||||||||||||||||||
This mod is not supported anymore by Spleasure/nCode, please look at these threads:
Image Resizer The Image Resizer. Powered with Lytebox / Highslide / Lightview / and many more! Probably many more. Have one to put here? Contact me using the PM feature. NCODE IMAGE RESIZER FOR VBULLETIN 3.6.0 version: 1.0.1 I. What does it do This plugin enables you to automatically resize every user-posted image which is larger than given dimensions. Users can choose the maximum dimensions and the resize method to use. The resize methods are: - No resizing - Enlargement in the same document - Enlargement in the same window (replacing the forum thread document) - Enlargement in a new window It also adds an information bar (which is not displayed when the image is too small) giving information about the original dimensions and filesize. Filesize is only supported on Internet Explorer, other browsers don't reveal this information through javascript. II. What does it not do - It does not do server side resizing of images. Everything is done clientside - It does not prevent long loading times. The images have to be downloaded completely by the client before the script can resize them. III. Installation / Upgrade 1. Upload "ncode_imageresizer.js" to the clientscript directory in your vBulletin installation. 2. Import "product-ncode_imageresizer.xml" in your vBulletin forum. Enter your AdminCP and go to Plugins & Products -> Manage Products. Click on [Add/Import Product] and refer to the XML file. The installation script will detect which database modifications have to be performed and will display the query that is going to perform these modifications. If something fails, execute that query yourself. 3. The file "vbulletin-language-nl.xml" can be used to import dutch versions of the used phrases. Import it in your language manager and overwrite the installed language "Nederlands". It will not remove any phrases, just add new ones. The installation adds a couple of settings, phrases, templates and plugins, all of which are easily recognizable. It also adds the fields `ncode_imageresizer_mode`, `ncode_imageresizer_maxwidth` and `ncode_imageresizer_maxheight` to your `user` table, in which the resizesettings are saved. These fields are removed when the plugin is removed. IV. Configuration Administrators can change the maximum dimensions and resize mode in the options window. These values will be the default for users without a setting of their own and anonymous users. The installation script creates a new option group called "nCode Image Resizer Options" in which you can enter these values. As said in section I, users can edit their preference in their User Control Panel at the Options page in the "Thread Display Options" section. The administrator can however limit the options the user can set. The administrator can choose between letting the user change all options, no options at all, only the resize mode, or all options except that the maximum dimensions can't exceed the default dimensions. V. Version history 1.0.1 (May 6th, 2007) - fixed javascript file version - fixed vBAdvanced compatibility problem 1.0 (April 24th 2007, 2007) - added code to make phrases javascript safe, multiline phrases and phrases with accents should work now. - added compatibility with vBAdvanced - improved installation procedure 1.0 release candidate 4 (February 21th, 2007) - improved speed for posts with many small images - work around for text display problem in Safari - Improved installer - Improved user control panel options: added information about default settings and option to explicitly use the default resize mode. - Added option to disable the system - Added option to reset all user specific settings 1.0 release candidate 3 (February 4th, 2007) - added warning on installation when javascript is not present. - removed redundant plugins - small bugfixes - signature resizing is optional. turn resizing of hotlinked images on or off in the control panel - improvements in javascript code - changed hook method so all bbcode class users get resize functionality automatically 1.0 release candidate 2 (October 3rd, 2006) - images weren't correctly resized when both height and width restrictions were in effect. - added robustness for IE flaws, not perfect yet - images in post previews get resized as well 1.0 release candidate 1 (Juli 16th, 2006) - bug preventing proper uninstallation fixed 1.0 beta 3 (June 23th, 2006) - Bugfixes - Now resizes signaturepictures too - Administrators can limit the user-settable options 1.0 beta 2 (June 20th, 2006) - Made maximum width and height userspecific and editable 1.0 beta 1 (June 8th, 2006) - First public release VI. Incompatibilities Incompatibilities have been reported with: "Transparency PNG pictures with Internet Explorer 6 (server-side solution)" (https://vborg.vbsupport.ru/showthread.php?t=93415) VI. Copyright please keep in mind that: THIS IS NOT FREE SOFTWARE You are allowed to install this in your forum, and you are allowed to make suggestions for improvements. It is not allowed to redistribute the files in any other way than as a zipfile with the XML and this readme in original state. (c) 2005 - 2007 nCode - www.ncode.nl - info@ncode.nl Support site: http://www.ncode.nl/vbulletinplugins/ Like it? Please donate You can donate by PayPal: USD or EUR Alternatively, you can donate using MoneyBookers to account jorrit[at]ncode.nl. Thanks to Xboxworld.nl, rage3d.com, insomnia.gr, myxbox.gr and Distance for testing this mod Previews: Show Your Support
|
Comments |
#482
|
||||
|
||||
Hi,
Great Pluggin! Works great for online display! However, I have modified my site so it sends out HTML email notification. When parsing the message from bbcode to HTML for emails I want to turn off the resizer because the javascript is not supported and can sometime cause problems. I am currently instantiating the parser and then trying to turn off the resizer like so: Code:
$postbit->bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $postbit->ncode_imageresizer_do = false; ... $pagetext_cache["$touser[languageid]"] = $postbit->bbcode_parser->parse($pagetext_orig, $foruminfo['forumid']); Thanks! |
#483
|
|||
|
|||
I have installed and still cant get it to work, and I did turn the CSS store on and no problems, now I want to fiqure out how to get this working.
RON |
#484
|
|||
|
|||
Fantastic add on. I have RC 2 installed on another site, not updated to RC4 yet. However, I have just installed RC4 onto a new site and my index.php page is showing an error on the status bar.
Line: 333 Char: 1 Error: 'NcodeImageResizer' is undefined Code: 0 URL: http://www.worldrallyforum.com/index.php I am using CMPS ver: 2.2.1 (vb3.6) and vBulletin 3.6.5. It doesn't show the error anywhere else on the forum. any help would be much appreciated. Thanks |
#485
|
|||
|
|||
I dont see any option in admin cp-even tho it is working good v3.6.5.it resized by it self and when click it gets original size
check on www.desividesimasti.net Thanks |
#486
|
||||
|
||||
I installed this today and recieve the same error...
I'm running the same as you (CMPS 2.2.1 / vB 3.6.1) Line:303 = NcodeImageResizer.MODE = 'enlarge'; Quote:
|
#487
|
||||
|
||||
Would you please add a way that the pluggin can be turned off, particularly the ncode_imageresizer_replace function, programatically?
I want to be able to parse a given piece of a post and not have the replace being made (because its being sent in an HTML email). Thanks! |
#488
|
|||
|
|||
i would love to be able to control the size of the resized images on a per forum basis - some of my forums use the regular postbit and some use the legacy postbit...
|
#489
|
|||
|
|||
just upload the ncode_imageresizer.js to the forum folder "webite/forum"
upload product-ncode_imageresizer.xml from admincp... if its that simple why doest it work for me? i can see the settings in the admincp and in the usercp but it doesnt resize any images |
#490
|
|||
|
|||
I noticed this hack kinda cause the board to freeze/pause for a few seconds. Maybe it's because it's trying to anaylze all da images. If i disabled the product, the site loads smoothly. Is there a way to optimize the code a bit better so it doesnt lag?
|
#491
|
|||
|
|||
when will you correct the mistake with the accentuated characters?
And can you load the .js file only in topic pages in next version? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|