Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Image resizer Details »
Image resizer
Mod Version: 1.0.1, by Spleasure (Member) Spleasure is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.1 Rating: (125 votes - 4.83 average) Installs: 1294
Released: 08 Jun 2006 Last Update: 06 May 2007 Downloads: 15900
Not Supported DB Changes Uses Plugins Template Edits Additional Files Translations  

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)"
(http://www.vbulletin.org/forum/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:

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	screenshot1.gif
Views:	9780
Size:	71.8 KB
ID:	49704   Click image for larger version

Name:	screenshot2.gif
Views:	161738
Size:	118.4 KB
ID:	49705   Click image for larger version

Name:	screenshot3.gif
Views:	5326
Size:	22.7 KB
ID:	49706   Click image for larger version

Name:	screenshot4.gif
Views:	5095
Size:	45.8 KB
ID:	49884  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases Image Resizer Jase2 vBulletin 3.7 Add-ons 384 23 Nov 2014 01:05

  #316  
Old 18 Feb 2007, 18:40
Spleasure's Avatar
Spleasure Spleasure is offline
 
Join Date: Jun 2002
Real name: Jorrit Schippers
Originally Posted by Smoothie View Post
Large scroll bars when the page loads? Or when you click to resize the image to the resized state?
Both? I don't have a clear idea of what the problem is, so if you could explain this by giving a screenshot and perhaps the link to the thread I can investigate this.
Reply With Quote
  #317  
Old 18 Feb 2007, 20:50
Smoothie Smoothie is offline
 
Join Date: Oct 2001
ok, here's the link. Until page finishes loading, horizontal scroll bar, Safari 2.0.4.

Clicking on image to see original size, then clicking to see resized image leaves the scroll bar, but it does not happen 100% of the time.
http://www.sim-outhouse.com/sohforum...ad.php?t=33010
Reply With Quote
  #318  
Old 18 Feb 2007, 20:54
Spleasure's Avatar
Spleasure Spleasure is offline
 
Join Date: Jun 2002
Real name: Jorrit Schippers
Originally Posted by Smoothie View Post
ok, here's the link. Until page finishes loading, horizontal scroll bar, Safari 2.0.4.

Clicking on image to see original size, then clicking to see resized image leaves the scroll bar, but it does not happen 100% of the time.
http://www.sim-outhouse.com/sohforum...ad.php?t=33010
The horizontal scrollbar is logical: while the image is loading, it's not resized yet and it occupies the total width. Not mucht I can do about that. I don't know why the scrollbar doesn't disappear, but I think it's a browser issue.
Reply With Quote
  #319  
Old 18 Feb 2007, 23:06
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
FWIW, I registered on that forum, checked the link, and refreshed the page about 10 times experimenting. The horizontal scroll bar was there while loading, but goes away when the page is done loading, just as the javascript has kicked in and shrunken the large image. The horizontal scroll bar appeared again when I clicked the yellow toolbar to expand the image, and disappeared when I toggled it back to small. In short, it worked exactly as it seems it should. I tried my damndest to recreate the behavior Smoothie is talking about, but could not.

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft installed but I don't think that would have any effect on something like this.
Reply With Quote
  #320  
Old 18 Feb 2007, 23:36
Smoothie Smoothie is offline
 
Join Date: Oct 2001
I'm wondering if maybe it was a user error. I may have clicked 2 images to show full size and only clicked 1 to return back to resized state.....but I could have sworn it was on a page that only had 1 image. Dunno, but it seems to be working ok now.
Reply With Quote
  #321  
Old 19 Feb 2007, 02:54
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
I'm having an issue by which this doesn't seem to work with the defaults in the admincp set - if I don't set a width and height in my User Edit Options, it does not resize the image (but if I do, image resizes fine). Also, even with the resize signature option set to no in the admincp, it still is resizing signatures.

Anyone have any ideas? Thanks
__________________
[buffy-boards]
Reply With Quote
  #322  
Old 19 Feb 2007, 17:30
Spleasure's Avatar
Spleasure Spleasure is offline
 
Join Date: Jun 2002
Real name: Jorrit Schippers
Originally Posted by Sadie Frost View Post
I'm having an issue by which this doesn't seem to work with the defaults in the admincp set - if I don't set a width and height in my User Edit Options, it does not resize the image (but if I do, image resizes fine). Also, even with the resize signature option set to no in the admincp, it still is resizing signatures.

Anyone have any ideas? Thanks
What is the resize mode user option in the user control panel set to? It overrides the default.

Originally Posted by Tralala View Post
FWIW, I registered on that forum, checked the link, and refreshed the page about 10 times experimenting. The horizontal scroll bar was there while loading, but goes away when the page is done loading, just as the javascript has kicked in and shrunken the large image. The horizontal scroll bar appeared again when I clicked the yellow toolbar to expand the image, and disappeared when I toggled it back to small. In short, it worked exactly as it seems it should. I tried my damndest to recreate the behavior Smoothie is talking about, but could not.

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft installed but I don't think that would have any effect on something like this.
Thanks for your effort
Reply With Quote
  #323  
Old 19 Feb 2007, 18:49
andrewkhunn andrewkhunn is offline
 
Join Date: Feb 2007
Here's how we managed to get it working with vbadvanced. Open up modules\news.php. On or around line 214, you should see this block of code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace this chunk of code with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Basically, after it's all been parsed, you just run the same preg_replace that this module runs on regular posts. It's pretty straightforward.
Reply With Quote
  #324  
Old 19 Feb 2007, 20:31
Spleasure's Avatar
Spleasure Spleasure is offline
 
Join Date: Jun 2002
Real name: Jorrit Schippers
Which version are you using? It should work by default for everything that uses the bbcode system from version 1.0 rc 3.
Reply With Quote
  #325  
Old 19 Feb 2007, 21:35
andrewkhunn andrewkhunn is offline
 
Join Date: Feb 2007
Originally Posted by Spleasure View Post
Which version are you using? It should work by default for everything that uses the bbcode system from version 1.0 rc 3.
vBulletin 3.6.4, vBadvanced 2.2.1.

For the Image Resizer, it says version 1.0 in the plugin/product manager, but I assume it's RC 3 as it was downloaded & installed from here only two days ago.
Reply With Quote
  #326  
Old 19 Feb 2007, 23:37
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Originally Posted by Tralala View Post
FWIW, I registered on that forum, checked the link, and refreshed the page about 10 times experimenting. The horizontal scroll bar was there while loading, but goes away when the page is done loading, just as the javascript has kicked in and shrunken the large image. The horizontal scroll bar appeared again when I clicked the yellow toolbar to expand the image, and disappeared when I toggled it back to small. In short, it worked exactly as it seems it should. I tried my damndest to recreate the behavior Smoothie is talking about, but could not.

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft installed but I don't think that would have any effect on something like this.
BTW, you didn't have to register on that site to see the resized images.
Reply With Quote
  #327  
Old 20 Feb 2007, 05:20
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
There is a strange problem i am facing. When someone uses png images the page is freezing with Ie 6.0
Here is a demo
http://www.ayyas.com/duyurular-sikay...est-amaclidir/
__________________
Mert G÷kšeimam / Crawlability Inc.

DepKaš | vBSEO 3.3.0 - vBulletin Search Engine Optimisation
Reply With Quote
  #328  
Old 20 Feb 2007, 09:44
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
I received this error that pages (see my attachmet) Also I'll test same image in my forum.

Cheers
Attached Images
File Type: gif test.gif (18.1 KB, 19 views)
__________________

Reply With Quote
  #329  
Old 20 Feb 2007, 10:01
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
I tested png images without any problem.I think some rules blocked that pages maybe mod_security.
__________________

Reply With Quote
  #330  
Old 20 Feb 2007, 10:38
Spleasure's Avatar
Spleasure Spleasure is offline
 
Join Date: Jun 2002
Real name: Jorrit Schippers
Originally Posted by Bulent Tekcan View Post
I received this error that pages (see my attachmet) Also I'll test same image in my forum.

Cheers
Do you perhaps have a script running to enable transparancy for PNG in IE 6?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:09.

Layout Options | Width: Wide Color: