PDA

View Full Version : Show Thread Enhancements - Image resizer


Pages : [1] 2 3 4

Spleasure
08 Jun 2006, 20:33
This mod is not supported anymore by Spleasure/nCode, please look at these threads:
https://www.vbulletin.org/forum/external/2010/11/2.gif Image Resizer
https://www.vbulletin.org/forum/external/2010/11/2.gif The Image Resizer. Powered with Lytebox / Highslide / Lightview / and many more!
https://www.vbulletin.org/forum/external/2010/11/2.gif 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 (http://www.ncode.nl) - info@ncode.nl

Support site:
http://www.ncode.nl/vbulletinplugins/

Like it? Please donate
You can donate by PayPal: USD (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jorrit%40ncode%2enl&item_name=nCode%20vBulletin%20Plugins&item_number=ncode_vbulletin&no_shipping=1&cn=Comments&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8) or EUR (https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=jorrit%40ncode%2enl&item_name=nCode%20vBulletin%20Plugins&item_number=ncode_vbulletin&no_shipping=1&cn=Comments&tax=0&currency_code=EUR&lc=UK&bn=PP%2dDonationsBF&charset=UTF%2d8)
Alternatively, you can donate using MoneyBookers (http://www.moneybookers.com) to account jorrit[at]ncode.nl.

Thanks to Xboxworld.nl, rage3d.com, insomnia.gr, myxbox.gr and Distance for testing this mod

Previews:

Yorixz
08 Jun 2006, 20:56
Great addon, thanks a lot for releasing it here!

Tralala
08 Jun 2006, 21:07
Wow. This looks completely sweet. A perfect solution for image resizing blues. I especially like how there's a user preference!

I'd like to see another option, if that's possible, and that is, to turn images off completely, when using certain skins. That would be useful when someone's using a mobile skin, for example.

Spleasure
08 Jun 2006, 21:11
Is that because you don't want them to download the images or you want them to have such wide images?

I was also thinking about making the maximum height and width settable for users, what do you think about that.

Tralala
08 Jun 2006, 21:18
Is that because you don't want them to download the images or you want them to have such wide images?

It's because they're on a mobile device, typically using a mobile skin... and loading images slows them down immeasurably. So they end up just avoiding threads that may have inline images in them. Cell data speeds aren't typically broadband, so every kb saved, counts!

The mobile skin typically has avatars turned off, but inline images are still included. And yes, the user can turn images off in the VB UserCP, but that setting will apply to ALL skins.

I just thought that since your advanced hack was dealing with images and user preferences, that it might provide (finally) an intelligent way to deal with this.

I was also thinking about making the maximum height and width settable for users, what do you think about that.

That'd be kinda cool. :)

Allan
08 Jun 2006, 21:26
Yep, great hack, very nice ;)

Click Install ^^

Your hack work with IE and Firefox ?

utw-Mephisto
08 Jun 2006, 21:32
Your hack work with IE and Firefox ?

Important one

/me wants to know too

Pathor
08 Jun 2006, 21:39
Very very nice and useful. :)

The image-weight doesnīt appear in firefox 1.5.0.4.
Is this fixable?

imported_predatorkill
08 Jun 2006, 21:43
Already installed few days ago,the best and most "user likeable" product among all the other image resizer products!

Good work Jorrit!

Spleasure
08 Jun 2006, 21:55
It's supposed to work with Opera, IE and FireFox. If it doesn't, that doesn't mean I don't support it, but it means that there is a bug.
This script is mostly clientside, so for mobile users it's pointless. Putting that in a separate plugin might me more appropriate.
Pathor: what exactly do you mean?

Tralala
08 Jun 2006, 22:00
This script is mostly clientside, so for mobile users it's pointless. Putting that in a separate plugin might me more appropriate.

Ah, I gotcha. Thanks for the explanation and for sharing this hack.

Already installed few days ago,the best and most "user likeable" product among all the other image resizer products!

Agreed!

Spleasure
08 Jun 2006, 22:34
Very very nice and useful. :)

The image-weight doesnīt appear in firefox 1.5.0.4.
Is this fixable?

I now know what you mean by this. I'm sorry, only IE supports reading this. See it as an extra for IE users, not as something left out for Firefox users.

To all: Thanks for the great comments by the way

I also have a 3.5.4 compatible version lying around here, should I put it on here too?

El-Gazaly
08 Jun 2006, 22:57
Thanks For It
Installed

Pathor
08 Jun 2006, 23:20
See it as an extra for IE users[...]

Unfortunately... ;) :D

BTW: Installed on my local testboard. :)

Mr Chad
08 Jun 2006, 23:34
you should put the notice and the image in a 1 cell 1 row table with a boarder.

It would look a lil more clean for transparent images.

Deska
09 Jun 2006, 05:46
Is this work for image attachment also?

Spleasure
09 Jun 2006, 08:18
Is this work for image attachment also?
No, but you usually can use thumbnails for those images

Snake
10 Jun 2006, 15:30
Thank you, been waiting for this!

Royal
14 Jun 2006, 08:53
This is not working in 3.5.4 right?

Since i get this error:


Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'nCode Image Resizer: Initialization I', 'cache_templates', 'if($vbulletin->userinfo[\'ncode_imageresizer_mode\'] == \'\') {\r\n $vbulletin->userinfo[\'ncode_imageresizer_mode\'] = $vbulletin->options[\'ncode_imageresizer_defaultmode\'];\r\n}\r\n\r\nif($vbulletin->userinfo[\'ncode_imageresizer_mode\'] != \'none\') {\r\n define(\'NCODE_IMAGERESIZER_INIT\', 1);\r\n $globaltemplates[] = \'ncode_imageresizer_headinclude\';\r\n}', 'ncode_imageresizer');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Wednesday, June 14th 2006 @ 09:39:36 AM
Script : http://forum....com/admincp/plugin.php
Referrer : http://forum....com/admincp/plugin.php?do=productadd
IP Address : ..
Username : roy
Classname : vb_database


Been looking for a hack like this, allways loved it at xbw ;-) Would appreciate it when you post a version for 3.5.4 !

Spleasure
14 Jun 2006, 08:55
This is not working in 3.5.4 right?

Since i get this error:



Been looking for a hack like this, allways loved it at xbw ;-) Would appreciate it when you post a version for 3.5.4 !
It's indeed not working in 3.6.0. Contact me at the XBW forum with you email address to get the latest 3.5.4 version. I have a zipfile lying

Royal
14 Jun 2006, 09:13
It's indeed not working in 3.6.0. Contact me at the XBW forum with you email address to get the latest 3.5.4 version. I have a zipfile lying

Done, thanks!

Ohiosweetheart
14 Jun 2006, 18:30
I'm assuming (hoping) that this is for use on those HUGE images that members like to hot-link in their posts?

Ommand
16 Jun 2006, 07:01
Any chance you could upload the 3.54 version? I'm sure there would be many people very interested in it..

Spleasure
16 Jun 2006, 07:36
I'm assuming (hoping) that this is for use on those HUGE images that members like to hot-link in their posts?
Indeed
Any chance you could upload the 3.54 version? I'm sure there would be many people very interested in it..
I've uploaded it, it's downloadablein the files section.

Ommand
16 Jun 2006, 16:15
I've uploaded it, it's downloadablein the files section.
Thank you, very much appreciated :)

Spleasure
20 Jun 2006, 18:25
I've uploaded beta 2 to vBulletin.org. The changelog is short, but I think you'll like it:

1.0 beta 2 (June 20th, 2006)
- Made maximum width and height userspecific and editable

Resizing of signature images is something I consider for next versions, but I think 3.6 provides sufficient tools for managing that.

Pathor
20 Jun 2006, 23:50
I canīt save my own settings in the usercp (Images In Posts).
Maximum width and height works perfect.

vB 3.6 beta 2

PHP 5.0.5
MySQL 5.0.15

Spleasure
21 Jun 2006, 08:22
Will be fixed in the next version, change in the "nCode Image Resizer: Process UserCP submission" plugin:

$userdata->set('ncode_imageresizer_mode', $vbulletin->GPC['ncode_imageresizer_mode']);
to
$userdata->set('ncode_imageresizer_mode', $vbulletin->GPC['userfield']['ncode_imageresizer_mode']);

Pathor
21 Jun 2006, 13:10
Perfect! Thanks! :)

Should be standard in vB. ;)

El-Gazaly
22 Jun 2006, 00:31
hello sir
this hack is fantastic
i am installed it before and i used it in my forums
but the signaure doesn't resized
i suggest you to add in the hack to resize sign
and put in control panel of this hack to choose resize sign or no
and use resize height and width
bye

Ommand
22 Jun 2006, 04:23
Hrmm, is there any way to make this work with vBAdvanced CMPS? The image resizing works great everywhere... except for on the portal.

Am I missing something, or is that simply not supported with your addon?

ggiersdorf
22 Jun 2006, 13:54
IM a bit confussed with this module I understand what it is supposed to do. But when I install it on my 3.6 Beta3 and setup the max width and height in the admincp 640x480 it seems to work for guests.

When I go into my user cp and set the setting its hit or miss. I posted a new message attached an image thats 1024x768 or larger and it puts the image in original size on the screen.

I want a way to fix it for ALL users mandatory that any image over 640 wide gets resized to 640 so it will not break my fixed width on the site.

Is there a way to universally make it all the same no user specific settings?

example: http://www.gentendo.com/forum/showthread.php?p=880#post880 thats works for you as a guest but for me It is always HUGE!

Spleasure
22 Jun 2006, 14:07
Hrmm, is there any way to make this work with vBAdvanced CMPS? The image resizing works great everywhere... except for on the portal.

Am I missing something, or is that simply not supported with your addon?

I haven't tested it with that product.

When I go into my user cp and set the setting its hit or miss. I posted a new message attached an image thats 1024x768 or larger and it puts the image in original size on the screen.
What do you mean by hit or miss?

ggiersdorf
22 Jun 2006, 18:12
I mean I set the setting in my USER CP to 640 and 0 but when I look at the post the image is not resized like it should. If I am a guest it works fine.

CAN I FORCE ALL USERS to 640 x 0 regardless of there choices?
Guest and Users?

Spleasure
22 Jun 2006, 18:18
I'm working on that. Soon.

ggiersdorf
22 Jun 2006, 18:30
Thanks, I just wish I could get it to work correct all the time. its driving me nuts :) but I like your idea so I dont want to remove the mod.

aLReeMi
23 Jun 2006, 19:42
thanks

Spleasure
23 Jun 2006, 19:59
Beta 3 is now available for download:
1.0 beta 3 (June 23th, 2006)
- Bugfixes
- Now resizes signaturepictures too
- Administrators can limit the user-settable options

twitch
23 Jun 2006, 20:30
Awesome! Thanks for the update

Pathor
28 Jun 2006, 11:15
The uninstall doesnīt work.

Database error in vBulletin 3.6.0 Beta 3:

Invalid SQL:
ALTER TABLE `vb3_user` DROP `ncode_imageresizer_maxwidth`, `ncode_imageresizer_maxheight`;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ncode_imageresizer_maxheight`' at line 1
Error Number : 1064
Date : Wednesday, June 28th 2006 @ 12:11:41 PM
Script : http://localhost/vb3/admincp/plugin.php?do=productkill
Referrer : http://localhost/vb3/admincp/plugin.php?do=productdelete&productid=ncode_imageresizer&s=
IP Address : 127.0.0.1
Username : Pathor
Classname : vB_Database

EDIT: MySQL 5.0.15

Spleasure
28 Jun 2006, 23:45
I see the error. If the product has been cleared properly from vBulletin, you could remove the fields in the user table by hand. I will release a fix for this soon.

Pathor
29 Jun 2006, 01:27
No, itīs OK. ;) Itīs only a local testboard.

sam anders
09 Jul 2006, 09:36
installed and love this mod works great for me but i have a few members who have major issues,

they keep receiving a pop up box "runtime error" i have failed to create this a works fine on all the pcs i have used, the users are using internet explorer any ideas at all?

Spleasure
09 Jul 2006, 10:42
Javascript errors in Internet Explorer are extremely difficult to debug because the line numbers which IE reports are incorrect. Are they using any antivirus software? What IE version are they using?

Spleasure
16 Jul 2006, 13:33
a small update has been released:

1.0 release candidate 1 (Juli 16th, 2006)
- bug preventing proper uninstallation fixed

NeutralizeR
18 Jul 2006, 21:22
Hi,

I've just installed your hack, it's working great. (my vb version is 3.6 RC2)

Is it possible to resize images without waiting for all of the images in the page to be loaded?

A php file edit maybe?
http://www.vbulletin.org/forum/showthread.php?t=103915&page=9

Example page:
http://www.msxlabs.org/forum/dogadan-manzaralar/4914-dogadan-yansiyanlar.html

Erbium
19 Jul 2006, 16:08
In my IE isn't working but it works fine in firefox! What can be?

Barteken
24 Jul 2006, 16:47
how to implent the dutch translation? I tried to add it in languages but i just get a whole new language file... What is it that i'm doing wrong?

Grtz

Terminatoronly
24 Jul 2006, 18:31
thanks alot installed and i want to tell you that it works with firefox and ie and opera i have tried them all :D

Parker Clack
24 Jul 2006, 21:48
This works great with vB 3.5.4 and with all browsers. The issue I do have with it though is when I set a height in the Admin CP the page will load and then close a few seconds after it is loaded. This is the same for IE, Opera, Netscape and Firefox.

Parker

Spleasure
02 Aug 2006, 21:01
how to implent the dutch translation? I tried to add it in languages but i just get a whole new language file... What is it that i'm doing wrong?

Grtz
This depends a little on the dutch version you've already installed. Please edit the XML file so the metadata of the languages match.

h_kakashi
03 Aug 2006, 21:05
Fantastic idea but...

It caused problems with RC3 and Gold for me. In IE it kept maxing out my Computers CPU. Was ok in Firefox. At first I thought it was my computer but had the same problem on laptop. Process IEXPLORE 95-100%. As soon as I would exit the thread it would be fine again. Some other users also reported the problem.

This only happened in threads where the some resizing occured. Most of the other threads were fine. AS a result I've had to uninstall it and everything is fine now.

Thougt i'd let you know :)

aggiefan
03 Aug 2006, 22:51
excellent mod... we are using it and is working great for us.

Farjad
03 Aug 2006, 23:00
thanks, hope this works.

* Farjad clicks install

KuJoe
04 Aug 2006, 10:59
I thought I remember reading that one of the new features in 3.6.0 was the same thing this mod does. Did I read it wrong? If so, installed.

J82980BA3E43
05 Aug 2006, 09:56
I've just installed your hack, it's working great. (my vb version is 3.6.0)

it is possible dat you can make that you can click also on the image to view the full image and not only on the bar!!

WiGgLr
09 Aug 2006, 12:10
Great MOD, I will install this tonight when I get home from work

Spleasure
09 Aug 2006, 12:29
KuJoe: I think you mix this up with the feature to resize attached images and uploaded signature images. This mod is about hotlinked images.

J82980BA3E43: I've don it this way so people can still use images as links (like .... (....))

Lover1
10 Aug 2006, 10:37
Nice hack, thank you. BUT why isnīt that integrated in the "original" vB ? I read something about image resizing in the changelog?

Spleasure
10 Aug 2006, 11:12
Nice hack, thank you. BUT why isnīt that integrated in the "original" vB ? I read something about image resizing in the changelog?
Lover1: I think you mix this up with the feature to resize attached images and uploaded signature images. This mod is about hotlinked images.

cunder
10 Aug 2006, 13:22
work this hack with Internet explorer browser and also with Mozilla Firefox?
works the Image resizer if I do a post replay if not, can that be made to these hack.

Tanks

Eagle Creek
13 Aug 2006, 00:16
So many downloads? What do I need to take?

I'm using a 3.6 board, Dutch.

aggiefan
13 Aug 2006, 17:59
this is working great for us... thanks.

but i have one suggestion (and i dont know if it is possible) but would it be possible to create a temporary folder where it caches thumbnails? The one issue I see is that it doesnt really help the page load faster (and we have a few dialup people and when we post lots of pictures on a thread it takes forever to load on dialup). A autogenerated thumbnail would help this.

Again I dont know if this is possible but I would love to see it added.

Ghanem
13 Aug 2006, 22:07
Thank you very much
Working just fine with my Arabic 3.6 Gold forum

cunder
14 Aug 2006, 09:48
work this hack with Internet explorer browser and also with Mozilla Firefox?
works the Image resizer if I do a post replay if not, can that be made to these hack.

Tanks

Hello
the Image resizer does not work if you do a post replay
can that be made so that he also Image resizer if you do a post replay.

CreedFeed
14 Aug 2006, 16:18
I just installed this and it didn't resize images that have already been posted on the forum. Is there a way to make it resize all images already posted on the forum?

Also, after installed, I posted a test image and it resized properly. I then went to admin settings and changed the maximum width of images and the image I had just posted reverted to it's normal size... i.e. the resize didn't stay after changing the maxwidth...

Edit >> I just rebuilt post cache and I guess that fixed it. So anytime I change the maxwidth of images I'll have to rebuild post cache?

Edit again >> Ok I'm kinda confused as to how this works. I've went into the options and set the maxwidth of images to 450 and set the mode to open in new window. I left height at 0 and set users to control all options. When i view threads as an administrator the images are not resized and remain as their normal size. When i view the forums as a Guest, the images are resized. ????

On some threads however the images are resized... others are not. This page, for example:

http://www.quakeone.com/forums/showthread.php?t=927

When I view this as an administrator, the first two pictures shown are resized. The second two are smaller than the resize width so they are normal. The next image is not resized, and it's way past my maxwidth set (450pixels).

Final Edit >> Ok everything works fine in Firefox, but the images are not being resized in IE7.0 - some images are resized in IE7 and some aren't. Doesn't make any sense...

theRanter
15 Aug 2006, 03:23
I've just installed it and then reinstalled it and I can't see that it's doing anything. I don't get any error messages, but I don't get resized images either.

EDIT: I found the problem. Seems I was the only one that couldn't see the error messages.

upsetter
15 Aug 2006, 11:20
cool, thanks, needed something like thos for my forum... :) usefull...

bubba01
15 Aug 2006, 11:53
great hack click install.

Mathiau
15 Aug 2006, 16:54
nice hack, i hate pics that are MASSIVEEEEEEEEE

gwhooooey
15 Aug 2006, 22:02
Any way of making the "This image has been resized. Click this bar" etc and "Click this bar to view the small image" text bolded? I tried editing the phrase and adding <b></b> tags, but.. no luck.

I actually think it looks fine as it is, but the responses i've been getting since adding it are that it doesn't stand out enough/isn't too noticable... so thought i'd ask seeing I can't seem to make it bolded myself.

ehjay
16 Aug 2006, 06:31
Works great, but I'm not seeing the "Image was too large" warning messages -- the phrases are there, the templates are there, the hack itself works great -- the text just isn't appearing in the warning box above images.

profxeni
17 Aug 2006, 10:45
ultraswoopyyyyyy :)

thanks.. installed;)

steven s
17 Aug 2006, 13:01
Does this work to reduce inline images too?

Edit: it does. Great mod!
Thanks!

cyberphr
17 Aug 2006, 14:08
Won't work on my forum.

Nothing happens.

xNoSkillz
17 Aug 2006, 16:25
installed. works great on my forums. tested it out with firefox and internet explorer.

ehjay
18 Aug 2006, 04:36
In further examination of my original issue, the text is only not shown when browsing with Safari, perhaps a CSS-related display glitch?

Spleasure
18 Aug 2006, 09:18
Unfortunately I can't test on Safari because I don't own a macintosh. I heard that a Windows equivalent is available but it seems to be a very imperfect browser at the moment.

Spleasure
18 Aug 2006, 09:22
Just testing with this now on the forums, and I like it BUT...

The way this works seems slightly illogical.

I would have thought the width and height restrictions and resizing would be based on the largest of width and height.

For example, if I have a limit of 600 (w) and 450 (h) and tried to attach a 1024 x 768 image, I'd expect it to be 600 wide and (whatever) height. However, this seems to use height as the deciding factor, so my 600 width limit is ignore, and the image ends up 450 high by (whatever) width.

It would certainly seem to make more sense to restrict it based primarily on whichever was greater, width or height, not preset to height or width.

Any chance of an update to have it work this way?

It will satisfy both restrictions, so the image will be in proportion and less or equal than 600 pixels wide and less or equal than 450 pixels in height. If this isn't the case something is broken.

Spleasure
18 Aug 2006, 09:23
this is working great for us... thanks.

but i have one suggestion (and i dont know if it is possible) but would it be possible to create a temporary folder where it caches thumbnails? The one issue I see is that it doesnt really help the page load faster (and we have a few dialup people and when we post lots of pictures on a thread it takes forever to load on dialup). A autogenerated thumbnail would help this.

Again I dont know if this is possible but I would love to see it added.

It doesn't do anything serverside and for the time being I would like to keep it that way.

Spleasure
18 Aug 2006, 09:32
Also, after installed, I posted a test image and it resized properly. I then went to admin settings and changed the maximum width of images and the image I had just posted reverted to it's normal size... i.e. the resize didn't stay after changing the maxwidth...

Edit >> I just rebuilt post cache and I guess that fixed it. So anytime I change the maxwidth of images I'll have to rebuild post cache?

Edit again >> Ok I'm kinda confused as to how this works. I've went into the options and set the maxwidth of images to 450 and set the mode to open in new window. I left height at 0 and set users to control all options. When i view threads as an administrator the images are not resized and remain as their normal size. When i view the forums as a Guest, the images are resized. ????

On some threads however the images are resized... others are not. This page, for example:

http://www.quakeone.com/forums/showthread.php?t=927

When I view this as an administrator, the first two pictures shown are resized. The second two are smaller than the resize width so they are normal. The next image is not resized, and it's way past my maxwidth set (450pixels).

Final Edit >> Ok everything works fine in Firefox, but the images are not being resized in IE7.0 - some images are resized in IE7 and some aren't. Doesn't make any sense...

Are you sure that your administrator account doesn't have its own values?
IE7 testing has to be done yet, but I see that your page contains javascript errors which are not related to my image resizer. Maybe they mess up IE7

Rogerl
18 Aug 2006, 22:02
Edit again >> Ok I'm kinda confused as to how this works. I've went into the options and set the maxwidth of images to 450 and set the mode to open in new window. I left height at 0 and set users to control all options. When i view threads as an administrator the images are not resized and remain as their normal size. When i view the forums as a Guest, the images are resized. ????

On some threads however the images are resized... others are not. This page, for example:

http://www.quakeone.com/forums/showthread.php?t=927

When I view this as an administrator, the first two pictures shown are resized. The second two are smaller than the resize width so they are normal. The next image is not resized, and it's way past my maxwidth set (450pixels).

Final Edit >> Ok everything works fine in Firefox, but the images are not being resized in IE7.0 - some images are resized in IE7 and some aren't. Doesn't make any sense...


I'm finding the same on my forums.

Everything works fine in Firefox but IE (Version 6 for me) is a bit hit and miss, sometimes it resizes images, sometimes it doesn't.

I'd guess its probably something to do with the speed of loading the Javascript and whether or not its loaded when the image is loaded. BUT the script is correctly loaded in the html document header so should be there !

Get Shorty
19 Aug 2006, 17:22
I'm using this with no problems on two different forums, both running 3.6.0.

Great mod!

Spleasure
19 Aug 2006, 18:37
mini2: you're right, stupid mistake. I am currently not able to work on this mod, but two weeks from now I will look at this problem.

wrang
21 Aug 2006, 08:24
What is this about when i get this text

<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
in the replay
52397

And how can i change this text over the picture from English to Swedish
52398

Barteken
22 Aug 2006, 00:49
i'm having an issue with IE. for some reason the images are only resized after the thread is posted but when refreshing the image is back to it's full size (like the plugin is only loaded when posting or editing the thread.
also when a user is just viewing the thread the image isn't resized. No problems with firefox though...

rhino56
22 Aug 2006, 09:48
installed it and it didnt work, i see the settings and user options but they have no effect in ie or ff
example
http://www.cryo-laboratory.com/forums/showthread.php?t=2251

edit: in IE i get this if its any help

https://www.vbulletin.org/forum/external/2006/09/13.jpg

Settler
23 Aug 2006, 19:54
its possible to resize the images in vbadvanced?

Eagle Creek
24 Aug 2006, 00:33
AT THIS MOMENT can I install this hack safely at my 3.6.0 board? Is it working?

Eagle Creek
24 Aug 2006, 00:51
I've installed and it's working great!

EXCEPT!

When I try to translate the English text to Dutch, the resizer doesn't work anymore. I only edit the phrase.

steven s
24 Aug 2006, 01:24
AT THIS MOMENT can I install this hack safely at my 3.6.0 board? Is it working?Works great!

cerebro
24 Aug 2006, 18:22
I just install but like to change some value.

For default, for register user, configure open Image in New Windows.

How can i change that?

klausmx
24 Aug 2006, 20:21
where can i set the size that the image is resized??

installed

dutchbb
24 Aug 2006, 21:23
Very nice mod!! Should be added in vB 3.7 !


And thanks for the dutch language xml :)

EXCEPT!

When I try to translate the English text to Dutch, the resizer doesn't work anymore. I only edit the phrase.
Use the XML file in the zip and overwrite your dutch language, it works fine :)

noel_leon
25 Aug 2006, 10:44
Anyone have a clue how to make this work with vBadvanced?
The code is found when viewing the source but the image is not resized. I've been looking but cant really say I know what I am looking for.
Any help would be appreciated.

Settler
26 Aug 2006, 12:00
don't work in internet explorer 6.0
in Firefox and Opera it's all OK... where is the problem?

dutchbb
27 Aug 2006, 02:31
Yeah in IE it's not working unless you hit F5 in showthread...

alkatraz
30 Aug 2006, 06:38
can anyone confirm that this works in all major browsers and with vb3.6.0 final ?
thx!

Michaeel
30 Aug 2006, 09:50
nice mod, thanks!

dutchbb
30 Aug 2006, 10:31
can anyone confirm that this works in all major browsers and with vb3.6.0 final ?
thx!
Read my post above yours!

Spleasure
30 Aug 2006, 12:54
installed it and it didnt work, i see the settings and user options but they have no effect in ie or ff
example
http://www.cryo-laboratory.com/forums/showthread.php?t=2251

edit: in IE i get this if its any help

https://www.vbulletin.org/forum/external/2006/09/13.jpg

In Firefox I get a Javascript error about vbImageResize not being defined. It's in your body onload section, but it has nothing to do with this image resizer. See if you can get rid of that, it might stop the javascript engine from continuing.

Spleasure
30 Aug 2006, 12:59
Yeah in IE it's not working unless you hit F5 in showthread...

When I look at your forum (for example this thread (http://forum.dutchbodybuilding.com/f42/khalid-klein-jaartje-trug-71873/)) the images resize directly, even in IE.

henners
30 Aug 2006, 14:25
Just installed...was dubious after some of the comments, but it seems to be working fine on IE/Firefox :)

Nice one!

alkatraz
30 Aug 2006, 17:22
Read my post above yours!

lol I know, let me be more specific

What versions of IE is this working on? If it's working on IE7 that doesn't help my audience much. 6.0+, 5.5+ ?

thank you, can't wait to install it!

nix
30 Aug 2006, 22:28
works in IE 6 and FF for me. Its also working fine on 3.6

Spleasure
31 Aug 2006, 19:46
lol I know, let me be more specific

What versions of IE is this working on? If it's working on IE7 that doesn't help my audience much. 6.0+, 5.5+ ?

thank you, can't wait to install it!

It is supposed to work on 6.0, I am not able to reproduce the errors mentioned in this thread. I don't care about 5.5 or before.

ftuforum
31 Aug 2006, 21:40
it's not working for IE7^^ I hope there is a way to fix this

Eagle Creek
01 Sep 2006, 00:01
Use the XML file in the zip and overwrite your dutch language, it works fine

I want to do it manually because there is a new Dutch Language pack.

nix
01 Sep 2006, 00:06
it's not working for IE7^^ I hope there is a way to fix this
Works on IE7 for me.

Jeordie015
01 Sep 2006, 00:22
Great hack!

One question though, is there a way to change the background and font color for the bar that appears above the images?

ftuforum
01 Sep 2006, 02:13
Works on IE7 for me.

really? good for you^^
I don't know what I did wrong since all we have to do is upload the .js and import the .xml. You know what I can do to solve this problem??

lucky64
02 Sep 2006, 18:39
Works perfectly, I love it, Installed.

dutchbb
02 Sep 2006, 18:46
When I look at your forum (for example this thread (http://forum.dutchbodybuilding.com/f42/khalid-klein-jaartje-trug-71873/)) the images resize directly, even in IE.
Sometimes it works (link directly to thread like in your post) sometimes it doesn't (link from forumdisplay).

Try it out, it depents from where you access the thread...

I'm running IE 6.0.2900 btw.

I want to do it manually because there is a new Dutch Language pack.
You can use that new pack and than overwrite it with this one, it just adds the phrases for this hack nothing more.

Jon.
02 Sep 2006, 19:39
installed it and it didnt work, i see the settings and user options but they have no effect in ie or ff
example
http://www.cryo-laboratory.com/forums/showthread.php?t=2251

edit: in IE i get this if its any help

http://cryo-laboratory.com/upload/userfiles/rhino56/imageresizer.jpg

Same problem here. Just not resizing whatever i stick in the settings.

Linkage: http://www.thecarforum.net/forum/showthread.php?p=5164

Spleasure
05 Sep 2006, 15:00
Same problem here. Just not resizing whatever i stick in the settings.

Linkage: http://www.thecarforum.net/forum/showthread.php?p=5164

For some reason the javascript file isn't included properly. Do you have any other plugins installed?

dutchbb
05 Sep 2006, 15:36
Hello Spleasure,

Question: is it possible to move the javascript completely to the extern file?

I mean this:


<script type="text/javascript"> <!--
NcodeImageResizer.MODE = 'enlarge';
NcodeImageResizer.MAXWIDTH = 640;
NcodeImageResizer.MAXHEIGHT = 0;

vbphrase['ncode_imageresizer_warning_small'] =

etc...

That way there is less code in front of the content in the html source.

dutchbb
05 Sep 2006, 15:41
Oh, I understand now why that is, because it contains variables in admincp. Maybe an extern config file or database field to save the settings?

snake-boy
05 Sep 2006, 17:34
Works ok in ie6 for me, but ONLY on the default vbulletin skin. Switching to an alternate style, suddenly images are always displayed at thier original size, regardless of settings I set in admincp or usercp.

Switching back to default, immediatly everything works fine again.

If I can't resolve this, I'm afraid I'll have to uninstall since at least 50% of my users do not use the default skin. :(

Suggestions?

-snake

flexus
07 Sep 2006, 20:37
this addon is great, just uploadet the js file and added the product and everything works great.

firas
09 Sep 2006, 05:56
thanks

i just downloaded it and i will try it soon :)

DPSR
09 Sep 2006, 09:16
Thanks buddy, installed :D

ocitalia
09 Sep 2006, 14:50
how can i translate the addons? i would like to translate in italian but if i try then it doesn't work...

rmxs
09 Sep 2006, 18:02
Hello i have question!

Its not POssible the image LOAD on small size

NOW THE IMAGE LOAD IN NORMAL SIZE and then the hack resize it!

Spleasure
14 Sep 2006, 12:05
Hello i have question!

Its not POssible the image LOAD on small size

NOW THE IMAGE LOAD IN NORMAL SIZE and then the hack resize it!
The point of this hack is that it's clientside. What you want can't be done in this hack.

Oh, I understand now why that is, because it contains variables in admincp. Maybe an extern config file or database field to save the settings?
An external config file has difficulties like write permissions and I don't see how a database field is a solution to the problem? Javascript can't communicate with the database directly.

teedizz
15 Sep 2006, 19:19
will this resize images when a user uses a host like imageshack or what not & then uses the [*IMG][*/IMG] tags to post thier pictures? or does this just work with attached pictures with attachments in tha forum?

skatien
20 Sep 2006, 11:14
Great Mod! :D

I noticed that when replying to a thread that the image doesn't resize in the "Topic Review". It would be great if this could be add in the next release.

Thanks

nix
20 Sep 2006, 20:35
Great Mod! :D

I noticed that when replying to a thread that the image doesn't resize in the "Topic Review". It would be great if this could be add in the next release.

Thanks

I just noticed this too. was coming over here to post the exact same thing.

jw00dy
20 Sep 2006, 23:57
Great Hack

*installed*

oldengine
22 Sep 2006, 04:05
I noticed that when replying to a thread that the image doesn't resize in the "Topic Review". It would be great if this could be add in the next release.

It would be ABSOLUTELY GREAT if there was a hack to PREVENT the quoting of images!

NeutralizeR
27 Sep 2006, 00:55
This is the fastest way to resize giant images (vBulletin 3.6) if you don't mind the "click to view the full version of the image" feature:
http://www.vbulletin.org/forum/showpost.php?p=1084205&postcount=144

Disabled this hack as i have many threads with tons of giant images posted, it's taking a very long time to wait them to be loaded completely and resized.

agiacosa
27 Sep 2006, 11:47
Hi,

I'm getting this database error. Any idea why?

Database error in vBulletin 3.6.1:

Invalid SQL:
UPDATE user SET
### Bitfield: user.options ###
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 4, options, options + 4),
options = IF(options & 16, options, options + 16),
options = IF(options & 32, options - 32, options),
options = IF(options & 256, options - 256, options),
options = IF(options & 512, options - 512, options),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options - 128, options),
languageid = 0,
autosubscribe = 0,
threadedmode = 0,
timezoneoffset = '0',
showvbcode = 0,
pmpopup = 1,
maxposts = -1,
daysprune = 0,
startofweek = 1,
lppstatus = 1,
ncode_imageresizer_mode = 'enlarge',
ncode_imageresizer_maxwidth = NULL,
ncode_imageresizer_maxheight = NULL
WHERE userid = 96;

MySQL Error : Unknown column 'ncode_imageresizer_maxwidth' in 'field list'
Error Number : 1054
Date : Tuesday, September 26th 2006 @ 11:21:48 PM
Script : http://www.aquaticplantcentral.com/profile.php
Referrer : http://www.aquaticplantcentral.com/profile.php?do=editoptions
IP Address :
Username :
Classname : vB_Database

Tralala
29 Sep 2006, 12:55
It would be ABSOLUTELY GREAT if there was a hack to PREVENT the quoting of images!

http://www.vbulletin.org/forum/showthread.php?t=107022

user02934123123
30 Sep 2006, 10:16
I very much like the feature this hack provides.

Any chance of getting it to display the reduction also in post preview mode? Currently, resizing doesn't happen until the post actually gets posted fully to the system: previews show it full sized, with all the problematic distortion of page-layout that may encounter, which causes some of my members not to post their image, since it is so large and they don't realize that it will be re-sized.

Cheers.

EasyTarget
30 Sep 2006, 17:16
great hack, installed.

EasyTarget
01 Oct 2006, 11:27
/me signs petition to add resize support in the other thread locations

principino1984
02 Oct 2006, 13:14
great hack, finally i found a hack that works on my forum!!! thanks man!!!

Marco

transitbus
02 Oct 2006, 18:43
How did I miss this mod? This is exactly what I was looking for! Doesn't require editing the php files, easy to install and has configurable options. Perfect!

Spleasure
03 Oct 2006, 11:54
Sorry for keeping you waiting for so long, I'm very busy.

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

Thanks for the support and possitive comments.

sensimilla
03 Oct 2006, 15:31
Installed and it doesnt work with any language but default english..
Hope its possible to create a plugin working with any language installed

EasyTarget
03 Oct 2006, 19:11
thanks for the update spleasure.

what about support for the post reply screens where you enter a message. If you reply to a post/thread with a large image then the full image is shown/template messed up when you are making the post + post preview (for existing image).

voteforbird
03 Oct 2006, 20:46
Is it possible for me to get this to work with vBJournal? http://www.volconvo.com/forums/blog.php?do=showblog&j=7

Hellģ
04 Oct 2006, 01:14
thanks for the update spleasure.

what about support for the post reply screens where you enter a message. If you reply to a post/thread with a large image then the full image is shown/template messed up when you are making the post + post preview (for existing image).Yeah I was going to suggest that, we need the image reduction too in the Topic Review area below the full/advanced reply if possible.

And thanks for the update.

Edit:
Installed and it doesnt work with any language but default english..
Hope its possible to create a plugin working with any language installed
It works on my board with both english and spanish forum languages.

Greek76
05 Oct 2006, 00:11
I installed it but dont see exactly what it does. Will it resize previous images that were installed before installing this hack? Also I dont see a users option anywhere. Is the option only when you are posting? What I mean is lol I uploaded the product what next? lol

HDT
05 Oct 2006, 02:34
Installed on 3.6 gold.thanks

Chet T16
05 Oct 2006, 10:50
Is it possible for me to get this to work with vBJournal?

I'm looking for the same. It works fine throughout the forums so would be great to have it working in the journals too

Immortal_Shades
06 Oct 2006, 14:12
I am not getting the new options drop down for this!

Snake
06 Oct 2006, 22:58
Awesome. I've been waiting for something like this. Thank you very much! :D

Minha
07 Oct 2006, 20:18
Thanks and Fantastic Job!!!! ;)

I donīt know if I can send you my Language Translation for Spanish Users :)

Zidane007nl
07 Oct 2006, 23:44
Installation on vB 3.6.1 successful!
Great hack!

egelforum
11 Oct 2006, 05:42
I can't get it to work on my 3.6.2 board :(

Spika
14 Oct 2006, 09:26
Great job!
Works fine in 3.6.2 with Firefox and IExplorer

Spleasure
14 Oct 2006, 15:56
I installed it but dont see exactly what it does. Will it resize previous images that were installed before installing this hack? Also I dont see a users option anywhere. Is the option only when you are posting? What I mean is lol I uploaded the product what next? lol
It will resize all images. The user options are in the Options part of the User CP.
Yeah I was going to suggest that, we need the image reduction too in the Topic Review area below the full/advanced reply if possible.
I'll add that in a next version.

Capper5016
14 Oct 2006, 21:53
Is there a way to ignore things such as signature pics?

johnnyusa
16 Oct 2006, 20:52
Well, i've tried to install, the whole installation process was OK, but the plugin doesn't work.

It gives me some error in Internet Explorer: " Error: NcodeImageResizer " is undefined.

Vbulletin v3.6.2

Please help.

egelforum
16 Oct 2006, 22:31
In my case, with vB 3.6.2 i got the options in the CP and in the profile, but it doesn't resize anything at all. Not even with the default vB style. But i get no errors of any kind.
It's important to remark that i can't get to work any of the img resizers available on this board.

Any clues? Is there any known conflicting hack?

TurkSipa
17 Oct 2006, 21:33
I have int. explorer error in all pages. Uninstall.

EasyTarget
18 Oct 2006, 09:03
Just wanted to say again that I really like this modification. It has solved a long standing problem/hole in the vbulletin software imo. Thanks again.

Greek76
18 Oct 2006, 09:52
In my case, with vB 3.6.2 i got the options in the CP and in the profile, but it doesn't resize anything at all. Not even with the default vB style. But i get no errors of any kind.
It's important to remark that i can't get to work any of the img resizers available on this board.

Any clues? Is there any known conflicting hack?

I have the same exact problem, it does not resize any images.

Viper007Bond
21 Oct 2006, 09:44
This plugin breaks the XHTML validity of my forum. Any chance of fixing that? The problem is that "onload" is no longer allowed. Perhaps adding a unique CSS class to all images we want to affect and then running a JS function on page load that finds all images with that CSS class would work (tempted to just hack it myself). :)

cerebro
21 Oct 2006, 10:18
To install/update in 3.6.2 go to pluing section....uninstall the pluing and re install. Works fine whit the new options.

Servaas
21 Oct 2006, 17:08
Is it possible to just specify one area of the forum? I'm looking for a mod that resizes signature images, but keeps images in posts intact.

cuphongle
21 Oct 2006, 18:51
great one, installed and is working perfectly on 3.62

Viper007Bond
22 Oct 2006, 03:52
This plugin breaks the XHTML validity of my forum. Any chance of fixing that? The problem is that "onload" is no longer allowed. Perhaps adding a unique CSS class to all images we want to affect and then running a JS function on page load that finds all images with that CSS class would work (tempted to just hack it myself). :)
Hmm, problem with that is that the images aren't resized until the whole forum has fully loaded rather than just the image. Dang. :(

erhanerhan_5
24 Oct 2006, 01:58
To install/update in 3.6.2 go to pluing section....uninstall the pluing and re install. Works fine whit the new options.
i dont understand this message :S

please simple write again

im using 3.6.2 and dont working this hack:(

abramelin
26 Oct 2006, 20:46
is this mod works correctly on vb 3.6.2?

Phooey
29 Oct 2006, 16:19
Works great, this is exactly what I was looking for. Thanks!

tobybird
01 Nov 2006, 22:04
Perfect. This is exactly what I was looking for! Clicked Install.

Cocko
02 Nov 2006, 18:22
is there a german translation out ?

beano33
15 Nov 2006, 22:05
I'm using the How do I give paying members the option to disable ads? (http://www.vbulletin.com/forum/showthread.php?t=101597) modification. Apparantly the User options in this hack uses $customfields too because only paying members can see the resize fields with "Allow All Options" selected. I'd like to change it so all members have the resizing options. Removing the disable ads feature isn't an option. It doesn't matter to me if it's coded directly into the modifyoptions template as it's not a setting I plan on changing. Any help is appreciated. Thanks!

dfe
16 Nov 2006, 11:37
How do I turn this on by default for all users?

Spleasure
17 Nov 2006, 08:34
I'm using the How do I give paying members the option to disable ads? (http://www.vbulletin.com/forum/showthread.php?t=101597) modification. Apparantly the User options in this hack uses $customfields too because only paying members can see the resize fields with "Allow All Options" selected. I'd like to change it so all members have the resizing options. Removing the disable ads feature isn't an option. It doesn't matter to me if it's coded directly into the modifyoptions template as it's not a setting I plan on changing. Any help is appreciated. Thanks!
I must say that the hack you reference to is doing some ugly things: you should find a more sophisticated way of showing/hiding the custom user field. Perhaps moving it to another options category is the easiest work around

Invalid ID
19 Nov 2006, 01:34
All the attachments are coming to me for moderation, which is a headache, is there a way that whenever someone posts a big photo, it's resized as 620 x 800 ?

Thanks

Invalid ID
20 Nov 2006, 02:28
I input my allowed size to be 640 x 800 and chose "Default dimensions as maximum" yet members are able to post 1000 x 600 size photos.

Why the resizer not checking?

Viper007Bond
20 Nov 2006, 02:58
Members are able to post images of any size. This just resizes them to smaller via Javascript when displayed.

Invalid ID
20 Nov 2006, 03:13
But it didn't do so. The photos were posted and showing as large as was posted.

mauro1947
20 Nov 2006, 21:45
Hi!
Somebody has probed with vB 3.6.3??
Thanks!

Rabbitoh Warren
22 Nov 2006, 08:50
Installed and appears to be working great – thanks for the mod. The only slight problem is that the text does not appear in Safari (it does in Camino). See attachment.

Dennis B
24 Nov 2006, 02:00
Is anybody having conflicts between this hack and lightbox...?
Thanks

KSE
25 Nov 2006, 07:31
installed on v3.6.4 working ok so far. Thanks!

http://www.socaljdm.com/forums/showthread.php?p=285#p285

Maksa
25 Nov 2006, 10:48
will it work with VB 3.6.4 ?

ApexSpeed
25 Nov 2006, 15:45
Just installed on vB 3.6.4 and the oversized photos are still showing up, even after limiting them to 500 px wide through the Control Panel. Is there something else that needs to be done to this plug-in to make it function correctly?

I used a simple hack on the class_bbcode.php page previously, and now that there is an update from 3.6.0 to 3.6.4, that simple code hack no longer works. This seems to be the next best option, if it works on the updated vB version.


Anyone else having this problem? (http://www.apexspeed.com/forums/showthread.php?t=20138)

AWJunkies
26 Nov 2006, 23:06
mine works fine on 3.6.3 havent updated to 3.6.4 yet but dont see an issue with it. Havent tested IE though just FF.

KSE
28 Nov 2006, 18:16
installed on v3.6.4 working ok so far. Thanks!

http://www.socaljdm.com/forums/showthread.php?p=285#p285


^^^^^^^^^^^^^^^^^^^^^^

Mecho
03 Dec 2006, 12:22
i used this mod since i used vb 3.6.0 . but now in 3.6.4 i got a lot of Database error coz of this mod ... i got this error many many times per day :

Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE user SET
### Bitfield: user.options ###
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 4, options, options + 4),
options = IF(options & 16, options, options + 16),
options = IF(options & 32, options - 32, options),
options = IF(options & 256, options, options + 256),
options = IF(options & 512, options - 512, options),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options - 4096, options),
options = IF(options & 131072, options - 131072, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options - 128, options),
languageid = 1,
autosubscribe = 1,
threadedmode = 0,
timezoneoffset = '5.5',
showvbcode = 2,
pmpopup = 1,
maxposts = -1,
daysprune = 0,
startofweek = 1,
ncode_imageresizer_mode = 'enlarge',
ncode_imageresizer_maxwidth = NULL,
ncode_imageresizer_maxheight = NULL,
pageroption = 0,
pagerbuddyoption = 0,
pagersoundoption = 0
WHERE userid = 3021;

MySQL Error : Unknown column 'ncode_imageresizer_maxwidth' in 'field
list'
Error Number : 1054
Date : Sunday, December 3rd 2006 @ 01:16:21 PM
Script :
http://www.mechodownload.com/forum/profile.php?do=updateoptions
Referrer :
http://www.mechodownload.com/forum/profile.php?do=editoptions
IP Address : XXXXXXXXXX
Username : XXXXXXXXXXx
Classname : vb_database

I Would appreciate if u help me to fix it . thanks

KURTZ
03 Dec 2006, 14:09
great hack!!!

just INSTALLED on 3.6.4

Capper5016
03 Dec 2006, 18:41
It works fine....but only resizes in the same window, won't open in a new window, which means if the images are too large, that it breaks the template.

Spleasure
05 Dec 2006, 19:16
i used this mod since i used vb 3.6.0 . but now in 3.6.4 i got a lot of Database error coz of this mod ... i got this error many many times per day :



I Would appreciate if u help me to fix it . thanks

For some reason the fields have disappeared from the database. Please execute the following queries to re-add these fields:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL
ALTER TABLE `user` ADD `ncode_imageresizer_maxwidth` SMALLINT UNSIGNED DEFAULT NULL NULL , ADD `ncode_imageresizer_maxheight` SMALLINT UNSIGNED DEFAULT NULL NULL

Spleasure
05 Dec 2006, 19:17
It works fine....but only resizes in the same window, won't open in a new window, which means if the images are too large, that it breaks the template.

Do you have an example board? And preferably a test account (normal user)? If you have, please PM on this forum

Mecho
05 Dec 2006, 23:34
Thanks for reply . where shall i add those code that u said ?!

i tried to add them in Admincp>Maintenance>execute SQL queries

but this message shows up :

You are not authorized to execute SQL queries

Would u plz help me :) Thanks

da420
05 Dec 2006, 23:55
Thanks for reply . where shall i add those code that u said ?!

i tried to add them in Admincp>Maintenance>execute SQL queries

but this message shows up :



Would u plz help me :) Thanks

This permission is set in your config.php file in your includes directory.

Set your user ID to run SQL queries in the appropriate field and you should be able to run MySQL queries.

Mecho
06 Dec 2006, 00:24
This permission is set in your config.php file in your includes directory.

Set your user ID to run SQL queries in the appropriate field and you should be able to run MySQL queries.

Thanks for info :)

Mecho
06 Dec 2006, 00:27
For some reason the fields have disappeared from the database. Please execute the following queries to re-add these fields:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL
ALTER TABLE `user` ADD `ncode_imageresizer_maxwidth` SMALLINT UNSIGNED DEFAULT NULL NULL , ADD `ncode_imageresizer_maxheight` SMALLINT UNSIGNED DEFAULT NULL NULL

i think i should add them one by one , isn't it ?

if i'm right i got this error for first one :
An error occurred while attempting to execute your query. The following information was returned.
error number: 1060
error desc: Duplicate column name 'ncode_imageresizer_mode'

and this message for second one :
Affected Rows: 3,239 (0.3227s)

CADguru
13 Dec 2006, 12:31
Installed like a dream on 3.6.4 and looking good :)

TrIn@dOr
13 Dec 2006, 13:59
Nice thanks.

AMG021
13 Dec 2006, 22:34
any way to make this work with vBadvanced?

derbe
15 Dec 2006, 12:24
SQL Error on vb 3.6.4

Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE user SET
### Bitfield: user.options ###
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 4, options, options + 4),
options = IF(options & 16, options, options + 16),
options = IF(options & 32, options - 32, options),
options = IF(options & 256, options - 256, options),
options = IF(options & 512, options, options + 512),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options, options + 4096),
options = IF(options & 131072, options - 131072, options),
options = IF(options & 32768, options - 32768, options),
options = IF(options & 64, options - 64, options),
options = IF(options & 128, options - 128, options),
languageid = 2,
autosubscribe = 1,
threadedmode = 0,
timezoneoffset = '1',
showvbcode = 1,
pmpopup = 1,
maxposts = 40,
daysprune = -1,
startofweek = 2,
ncode_imageresizer_mode = 'enlarge',
ncode_imageresizer_maxwidth = NULL,
ncode_imageresizer_maxheight = NULL
WHERE userid = 800;

MySQL Error : Unknown column 'ncode_imageresizer_maxwidth' in 'field list'
Error Number : 1054


What can I do?

Greetz Derbe

elricstorm
19 Dec 2006, 16:00
I installed this and clicked installed, and set the options to "none" for the users so they can't change the default size limits. I placed the max width to 480 and height to 0.

When I post a new post, it does not resize at all.

When I edit the same post and hit save, it resizes and I see the little bar that says click for full image.

However, when I refresh or visit the same post again, it goes back to the original size????

I'm using IE 7.0. Is there something wrong here?

Edit: Using vb 3.6.0 and using vbadvanced but I'm not concerned about the vbadvanced or it working on home pages, etc. I just want it to work within the forums.

tschai
19 Dec 2006, 16:35
Definitily one of the most usefull add-ons...for me
Works flawless also...Mooi werk!

*installs*

ashley53680
20 Dec 2006, 02:05
I installed it and am not getting errors... but it's not working either. lol 3.6.4

Snake
21 Dec 2006, 22:00
Thanks for this hack but how do I change the font in that bar to "smallfont"? Any idea?

Distance
24 Dec 2006, 07:00
This is a great mod but i must say...

When a user clicks to make the image size large.. it makes the screen width larger.. which is ok else how would the image grow?

But then.. when they click for it to go smaller the image width is still large?

I think this needs editing/fixing


;)

da420
24 Dec 2006, 23:06
^ works fine for me

mescalin
26 Dec 2006, 10:16
doesnt work:(

Snake
30 Dec 2006, 13:28
Thanks for this hack but how do I change the font in that bar to "smallfont"? Any idea?
Anyone?

Spleasure
02 Jan 2007, 14:32
But it didn't do so. The photos were posted and showing as large as was posted.

Do you have a test link?

Installed and appears to be working great – thanks for the mod. The only slight problem is that the text does not appear in Safari (it does in Camino). See attachment.

It's difficult for me to debug on safari as I don't have a macintosh computer. Does it report any javascript errors?

Anyone?

Add a CSS class "table.ncode_imageresizer_warning td" and add your styling info to this class.



For all other with problems: please post a link to your forum, preferably to a thread on which the problem occurs.

ickie
02 Jan 2007, 19:06
I installed this at on v 3.6.2
http://www.sim-outhouse.com/sohforums/index.php

it sizes down in both IE7 and FF 2, but I get a small error warning in my ie7 bar saying; (when I click it)

line: 3
Char: 1
Error: Syntax error
url: http://www.sim-outhouse.com/sohforums/index.php
line: 337
Char: 1
Error: 'NcodelmageResizer' is undefined
Code:0
url: http://www.sim-outhouse.com/sohforums/forumdisplay.php?f=2

ickie
02 Jan 2007, 20:47
This seems to work in IE7 and FF 2.0

I did notice when I refresh the page the error goes away except on the page that the resized picture is on.
also there is no bar atop of it either.
http://www.sim-outhouse.com/sohforums/showthread.php?t=33010

ickie
02 Jan 2007, 21:08
I fixed the problem, it was the js script, i put it in the root dir first
now it lives in the forums clientscript folder

Speechless
03 Jan 2007, 17:41
will this work on 3.6.4 ?

Mecho
03 Jan 2007, 19:22
will this work on 3.6.4 ?

like a charm

zkilzz
04 Jan 2007, 11:55
Is it possible to make it have different sizes for different forums?

elsonar
04 Jan 2007, 13:22
I noticed that this also resizes a users signature as well.

As there anyway to disable the sig from getting resized?

Thanks

dendrob
07 Jan 2007, 14:47
Great Mod !

* INSTALLED *

dendrob
08 Jan 2007, 05:10
Great Mod, but it's not working for me 100% of the time. Seems to resize the images just sometimes, but not always. Any ideas why ?

KURTZ
08 Jan 2007, 05:12
your link doesnt work :(

however it's possible that you havent settled correctly the parameters ... i got a 3.6.4 and all runs correctly :)

Spleasure
10 Jan 2007, 14:03
Great Mod, but it's not working for me 100% of the time. Seems to resize the images just sometimes, but not always. Any ideas why ?

Please give a link to a thread in which this occurs and the browser and version using which this occurs.

I noticed that this also resizes a users signature as well.

As there anyway to disable the sig from getting resized?

Thanks

Not yet

Immortal_Shades
16 Jan 2007, 05:44
Awesome Addon a real life saver for both the users and the admins who have to deal with morons posting images too damn huge that throw the forum template out of wack.

Thank You!!!!!!
(INSTALLED)

RFViet
16 Jan 2007, 15:23
How to install the vBulletin-language-nl.xml ?? and what it does ??

Forza
16 Jan 2007, 18:26
works like a charm! Thanks!

cur53se
16 Jan 2007, 18:47
Just wondering - why it does not resize pictures in quote ?

Spleasure
16 Jan 2007, 20:43
How to install the vBulletin-language-nl.xml ?? and what it does ??
Import it in your language manager. It adds strings to the Dutch language (if it's called Nederlands in your installation)

donaldgkimball
17 Jan 2007, 13:19
I was looking for something like this. Will definitely try it soon.

Spleasure
17 Jan 2007, 13:29
Just wondering - why it does not resize pictures in quote ?
It should do that ... do you have an URL to a post where it doesn't do that?

buileminh
17 Jan 2007, 13:47
This does not effect to images inside a hidden part, does this?

RFViet
17 Jan 2007, 18:18
Import it in your language manager. It adds strings to the Dutch language (if it's called Nederlands in your installation)

So, I don't need the language file if I use English, is it correct ??

Stifmeister2
18 Jan 2007, 00:59
Very nice. :)

TJFweb
22 Jan 2007, 08:41
Great Mod, but it's not working for me 100% of the time. Seems to resize the images just sometimes, but not always. Any ideas why ?

I have the same problem. I'd say it works 1 out of every 5 times. Other times it just displays the original unresized picture with no bar at the top.

vB 3.6.4

haris_led
22 Jan 2007, 16:08
also not working for me.
it says that the picture is resized, but it is not!
if i click at the bar says that it is at the real size(but the picture has not changed at all)
then if i click it again it resizes it!
at the beginning it was working perfectly.
i have deleted the cache, nothing happens.
i tried with IE7, but the bar does not appear at all!
please help!

Andy74
27 Jan 2007, 09:50
On IE7 it does not work for me, too.
In Firefox no Problems.

On IE7 the image never risized

http://www.winboard.org/forum/test-forum/43777-bildtest.html

migowebdesign
28 Jan 2007, 13:26
On IE7 it does not work for me, too.
In Firefox no Problems.

On IE7 the image never risized

http://www.winboard.org/forum/test-forum/43777-bildtest.html


Hi,

on my pc it's working on IE7 perfectly.

Kind Regards from Germany
Mike

Andy74
28 Jan 2007, 14:57
Hi,

on my pc it's working on IE7 perfectly.

Kind Regards from Germany
Mike

Realy ? on our site ?
Then it could be a setting in the IE7 ?

Which setting could it be ?

da420
28 Jan 2007, 17:36
Working for me on your site in IE7 as well.

rasterbox
29 Jan 2007, 04:03
Thank you for this great plugin..

cheers

Shazz
29 Jan 2007, 04:14
Very Complex mod for something very simple :confused:
Did 2 edits with mine :D

da420
29 Jan 2007, 05:07
Very Complex mod for something very simple :confused:
Did 2 edits with mine :D

Install this one and see what it does. IMHO it's better than the one you are talking about.

haris_led
29 Jan 2007, 06:53
Very Complex mod for something very simple :confused:
Did 2 edits with mine :D

Shazz what do you mean?
Can you explain? thanks :D

BobbyBig
30 Jan 2007, 01:49
When enlarging the Picture with mode "Enlarge in same window", and clicking again to make it smaller, the Forum doesnt get back to the small width, it stays at it was when the picture was enlarged.

Any solution for that ?

Zolo
31 Jan 2007, 01:34
Spleasure (http://www.vbulletin.org/forum/member.php?u=14258) ---- ITS A


BIG THANK YOU

3.6.2
TESTed with IE7
IE6
Firefox


a 16x16 Icon is attached as I replaced the original one.

mac27
02 Feb 2007, 23:06
I removed this hack and now my [IMG] tags are not working. Any ideas of why this would happen?

Shazz
02 Feb 2007, 23:08
Install this one and see what it does. IMHO it's better than the one you are talking about.

Mine is the without all the options in admincp
And dosen't give a yellow notice but -.-
Its like vB.org

But it does look good still, seems alot for a small fix though :confused:

da420
02 Feb 2007, 23:22
Yeah, like I said, it's just my opinion. :cool:

Spleasure
03 Feb 2007, 01:14
I will release a new version with serious javascript and plugin improvements soon.

mac27
03 Feb 2007, 03:09
So do you know why my [IMG] tags stopped working after I removed this hack?

Spleasure
03 Feb 2007, 09:24
When enlarging the Picture with mode "Enlarge in same window", and clicking again to make it smaller, the Forum doesnt get back to the small width, it stays at it was when the picture was enlarged.

Any solution for that ?

In Mozilla/FireFox right? I know the issue, I don't know of a solution :( I think it's something which should be fixed at the browser level

I removed this hack and now my [IMG] tags are not working. Any ideas of why this would happen?

I have no clue. Do you have a link to you forum?

lard007
04 Feb 2007, 11:03
I've added/removed this product twice and unfortunately it just doesn't seem to work

I'm not getting any errors and the otions are in VB - I can even see the resizer scripts corretly when I view the page source but nothing seems to happen

I've seen in this thread that others are reporting exactly this problem - on version 3.6.4

Did anyone get this working?

Thanks,

Lard

Spleasure
04 Feb 2007, 11:06
I've added/removed this product twice and unfortunately it just doesn't seem to work

I'm not getting any errors and the otions are in VB - I can even see the resizer scripts corretly when I view the page source but nothing seems to happen

I've seen in this thread that others are reporting exactly this problem - on version 3.6.4

Did anyone get this working?

Thanks,

Lard

You seem to have read posts in this thread ("I've seen in this thread that others are reporting exactly this problem"). Then you should have seen that there are people for whom it does work. Additionally, you would have seen that whenever someone has a problem, I request for a link to the forum where the problem occurs.

lard007
04 Feb 2007, 11:23
You seem to have read posts in this thread ("I've seen in this thread that others are reporting exactly this problem"). Then you should have seen that there are people for whom it does work. Additionally, you would have seen that whenever someone has a problem, I request for a link to the forum where the problem occurs.

Hello,

Firstly, thanks for the response!

Yes, I note that there are plenty of people that are using this with any problems at all and it looks great

A link to my forum is as here:

http://www.battlefieldbrothers.com/forum/showthread.php?p=17550#post17550

Any queries then let me know,

Many thanks,

Lard

Spleasure
04 Feb 2007, 11:37
Hello,

Firstly, thanks for the response!

Yes, I note that there are plenty of people that are using this with any problems at all and it looks great

A link to my forum is as here:

http://www.battlefieldbrothers.com/forum/showthread.php?p=17550#post17550

Any queries then let me know,

Many thanks,

Lard

In the source I see that your forum contains a product which manipulates the img tag in some weird way. It adds the ID "vBCodeIMG" to each image. This not only prevents the image resizer from working, but is also wrong HTML-wise: an ID should be unique.
Please check your modifications and disable the offending modification. If you could post which product caused the problem I'll be very grateful, as I can put in on my "incompatibility list".

lard007
04 Feb 2007, 11:58
In the source I see that your forum contains a product which manipulates the img tag in some weird way. It adds the ID "vBCodeIMG" to each image. This not only prevents the image resizer from working, but is also wrong HTML-wise: an ID should be unique.
Please check your modifications and disable the offending modification. If you could post which product caused the problem I'll be very grateful, as I can put in on my "incompatibility list".

Hi,

I was using a different resizer and it appears that I didn't remove the previous one correctly before migrating to this one - the previous hack was here:

http://www.vbulletin.org/forum/showthread.php?t=125500&highlight=vBCodeIMG

The code that I failed to remove was located in the includes/class_bbcode.php

return '<img src="' . $link . '" border="0" alt="" id="vBCodeIMG" />';

All now working perfectly - many thanks for looking into this - very much appreciated!

Clicked install

Spleasure
04 Feb 2007, 20:23
I've released one more RC because of the amount of changes. I want to have 1.0 stable, so one more (hopefully) RC is needed to get it right.

The changelog is:
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

Thanks for your support and have fun with the new version