PDA

View Full Version : Show Thread Enhancements - Image resizer


Pages : [1] 2 3 4

Spleasure
06-07-2006, 10:00 PM
This mod is not supported anymore by Spleasure/nCode, please look at these threads:
https://vborg.vbsupport.ru/external/2010/11/2.gif Image Resizer
https://vborg.vbsupport.ru/external/2010/11/2.gif The Image Resizer. Powered with Lytebox / Highslide / Lightview / and many more!
https://vborg.vbsupport.ru/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)"
(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 (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
06-08-2006, 06:56 PM
Great addon, thanks a lot for releasing it here!

Tralala
06-08-2006, 07:07 PM
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
06-08-2006, 07:11 PM
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
06-08-2006, 07:18 PM
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
06-08-2006, 07:26 PM
Yep, great hack, very nice ;)

Click Install ^^

Your hack work with IE and Firefox ?

utw-Mephisto
06-08-2006, 07:32 PM
Your hack work with IE and Firefox ?

Important one

* utw-Mephisto wants to know too

Pathor
06-08-2006, 07:39 PM
Very very nice and useful. :)

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

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

Good work Jorrit!

Spleasure
06-08-2006, 07:55 PM
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
06-08-2006, 08:00 PM
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
06-08-2006, 08:34 PM
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
06-08-2006, 08:57 PM
Thanks For It
Installed

Pathor
06-08-2006, 09:20 PM
See it as an extra for IE users[...]

Unfortunately... ;) :D

BTW: Installed on my local testboard. :)

Mr Chad
06-08-2006, 09:34 PM
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
06-09-2006, 03:46 AM
Is this work for image attachment also?

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

Snake
06-10-2006, 01:30 PM
Thank you, been waiting for this!

Royal
06-14-2006, 06:53 AM
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
06-14-2006, 06:55 AM
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
06-14-2006, 07:13 AM
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
06-14-2006, 04:30 PM
I'm assuming (hoping) that this is for use on those HUGE images that members like to hot-link in their posts?

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

Spleasure
06-16-2006, 05:36 AM
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
06-16-2006, 02:15 PM
I've uploaded it, it's downloadablein the files section.
Thank you, very much appreciated :)

Spleasure
06-20-2006, 04:25 PM
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
06-20-2006, 09:50 PM
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
06-21-2006, 06:22 AM
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
06-21-2006, 11:10 AM
Perfect! Thanks! :)

Should be standard in vB. ;)

El-Gazaly
06-21-2006, 10:31 PM
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
06-22-2006, 02:23 AM
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
06-22-2006, 11:54 AM
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
06-22-2006, 12:07 PM
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
06-22-2006, 04:12 PM
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
06-22-2006, 04:18 PM
I'm working on that. Soon.

ggiersdorf
06-22-2006, 04:30 PM
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
06-23-2006, 05:42 PM
thanks

Spleasure
06-23-2006, 05:59 PM
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
06-23-2006, 06:30 PM
Awesome! Thanks for the update

Pathor
06-28-2006, 09:15 AM
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
06-28-2006, 09:45 PM
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
06-28-2006, 11:27 PM
No, it?s OK. ;) It?s only a local testboard.

sam anders
07-09-2006, 07:36 AM
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
07-09-2006, 08:42 AM
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
07-16-2006, 11:33 AM
a small update has been released:

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

NeutralizeR
07-18-2006, 07:22 PM
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?
https://vborg.vbsupport.ru/showthread.php?t=103915&page=9

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

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

Barteken
07-24-2006, 02:47 PM
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
07-24-2006, 04:31 PM
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
07-24-2006, 07:48 PM
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
08-02-2006, 07:01 PM
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
08-03-2006, 07:05 PM
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
08-03-2006, 08:51 PM
excellent mod... we are using it and is working great for us.

Farjad
08-03-2006, 09:00 PM
thanks, hope this works.

* Farjad clicks install

KuJoe
08-04-2006, 08:59 AM
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
08-05-2006, 07:56 AM
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
08-09-2006, 10:10 AM
Great MOD, I will install this tonight when I get home from work

Spleasure
08-09-2006, 10:29 AM
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
08-10-2006, 08:37 AM
Nice hack, thank you. BUT why isn´t that integrated in the "original" vB ? I read something about image resizing in the changelog?

Spleasure
08-10-2006, 09:12 AM
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
08-10-2006, 11:22 AM
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
08-12-2006, 10:16 PM
So many downloads? What do I need to take?

I'm using a 3.6 board, Dutch.

aggiefan
08-13-2006, 03:59 PM
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
08-13-2006, 08:07 PM
Thank you very much
Working just fine with my Arabic 3.6 Gold forum

cunder
08-14-2006, 07:48 AM
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
08-14-2006, 02:18 PM
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
08-15-2006, 01:23 AM
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
08-15-2006, 09:20 AM
cool, thanks, needed something like thos for my forum... :) usefull...

bubba01
08-15-2006, 09:53 AM
great hack click install.

Mathiau
08-15-2006, 02:54 PM
nice hack, i hate pics that are MASSIVEEEEEEEEE

gwhooooey
08-15-2006, 08:02 PM
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
08-16-2006, 04:31 AM
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
08-17-2006, 08:45 AM
ultraswoopyyyyyy :)

thanks.. installed;)

steven s
08-17-2006, 11:01 AM
Does this work to reduce inline images too?

Edit: it does. Great mod!
Thanks!

cyberphr
08-17-2006, 12:08 PM
Won't work on my forum.

Nothing happens.

xNoSkillz
08-17-2006, 02:25 PM
installed. works great on my forums. tested it out with firefox and internet explorer.

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

Spleasure
08-18-2006, 07:18 AM
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
08-18-2006, 07:22 AM
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
08-18-2006, 07:23 AM
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
08-18-2006, 07:32 AM
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
08-18-2006, 08:02 PM
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
08-19-2006, 03:22 PM
I'm using this with no problems on two different forums, both running 3.6.0.

Great mod!

Spleasure
08-19-2006, 04:37 PM
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
08-21-2006, 06:24 AM
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
08-21-2006, 10:49 PM
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
08-22-2006, 07:48 AM
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://vborg.vbsupport.ru/external/2006/09/13.jpg

Settler
08-23-2006, 05:54 PM
its possible to resize the images in vbadvanced?

Eagle Creek
08-23-2006, 10:33 PM
AT THIS MOMENT can I install this hack safely at my 3.6.0 board? Is it working?

Eagle Creek
08-23-2006, 10:51 PM
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
08-23-2006, 11:24 PM
AT THIS MOMENT can I install this hack safely at my 3.6.0 board? Is it working?Works great!

cerebro
08-24-2006, 04:22 PM
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
08-24-2006, 06:21 PM
where can i set the size that the image is resized??

installed

dutchbb
08-24-2006, 07:23 PM
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
08-25-2006, 08:44 AM
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
08-26-2006, 10:00 AM
don't work in internet explorer 6.0
in Firefox and Opera it's all OK... where is the problem?

dutchbb
08-27-2006, 12:31 AM
Yeah in IE it's not working unless you hit F5 in showthread...

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

Michaeel
08-30-2006, 07:50 AM
nice mod, thanks!

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

Spleasure
08-30-2006, 10:54 AM
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://vborg.vbsupport.ru/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
08-30-2006, 10:59 AM
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
08-30-2006, 12:25 PM
Just installed...was dubious after some of the comments, but it seems to be working fine on IE/Firefox :)

Nice one!

alkatraz
08-30-2006, 03:22 PM
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
08-30-2006, 08:28 PM
works in IE 6 and FF for me. Its also working fine on 3.6

Spleasure
08-31-2006, 05:46 PM
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
08-31-2006, 07:40 PM
it's not working for IE7^^ I hope there is a way to fix this

Eagle Creek
08-31-2006, 10:01 PM
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
08-31-2006, 10:06 PM
it's not working for IE7^^ I hope there is a way to fix this
Works on IE7 for me.

Jeordie015
08-31-2006, 10:22 PM
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
09-01-2006, 12:13 AM
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
09-02-2006, 04:39 PM
Works perfectly, I love it, Installed.

dutchbb
09-02-2006, 04:46 PM
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.
09-02-2006, 05:39 PM
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
09-05-2006, 01:00 PM
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
09-05-2006, 01:36 PM
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
09-05-2006, 01:41 PM
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
09-05-2006, 03:34 PM
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
09-07-2006, 06:37 PM
this addon is great, just uploadet the js file and added the product and everything works great.

firas
09-09-2006, 03:56 AM
thanks

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

DPSR
09-09-2006, 07:16 AM
Thanks buddy, installed :D

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

rmxs
09-09-2006, 04:02 PM
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
09-14-2006, 10:05 AM
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
09-15-2006, 05:19 PM
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
09-20-2006, 09:14 AM
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
09-20-2006, 06:35 PM
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
09-20-2006, 09:57 PM
Great Hack

*installed*

oldengine
09-22-2006, 02:05 AM
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
09-26-2006, 10:55 PM
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:
https://vborg.vbsupport.ru/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
09-27-2006, 09:47 AM
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
09-29-2006, 10:55 AM
It would be ABSOLUTELY GREAT if there was a hack to PREVENT the quoting of images!

https://vborg.vbsupport.ru/showthread.php?t=107022

user02934123123
09-30-2006, 08:16 AM
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
09-30-2006, 03:16 PM
great hack, installed.

EasyTarget
10-01-2006, 09:27 AM
/me signs petition to add resize support in the other thread locations

principino1984
10-02-2006, 11:14 AM
great hack, finally i found a hack that works on my forum!!! thanks man!!!

Marco

transitbus
10-02-2006, 04:43 PM
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
10-03-2006, 09:54 AM
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
10-03-2006, 01:31 PM
Installed and it doesnt work with any language but default english..
Hope its possible to create a plugin working with any language installed

EasyTarget
10-03-2006, 05:11 PM
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
10-03-2006, 06:46 PM
Is it possible for me to get this to work with vBJournal? http://www.volconvo.com/forums/blog.php?do=showblog&j=7

Hell?
10-03-2006, 11:14 PM
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
10-04-2006, 10:11 PM
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
10-05-2006, 12:34 AM
Installed on 3.6 gold.thanks

Chet T16
10-05-2006, 08:50 AM
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
10-06-2006, 12:12 PM
I am not getting the new options drop down for this!

Snake
10-06-2006, 08:58 PM
Awesome. I've been waiting for something like this. Thank you very much! :D

Minha
10-07-2006, 06:18 PM
Thanks and Fantastic Job!!!! ;)

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

Zidane007nl
10-07-2006, 09:44 PM
Installation on vB 3.6.1 successful!
Great hack!

egelforum
10-11-2006, 03:42 AM
I can't get it to work on my 3.6.2 board :(

Spika
10-14-2006, 07:26 AM
Great job!
Works fine in 3.6.2 with Firefox and IExplorer

Spleasure
10-14-2006, 01:56 PM
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
10-14-2006, 07:53 PM
Is there a way to ignore things such as signature pics?

johnnyusa
10-16-2006, 06:52 PM
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
10-16-2006, 08:31 PM
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
10-17-2006, 07:33 PM
I have int. explorer error in all pages. Uninstall.

EasyTarget
10-18-2006, 07:03 AM
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
10-18-2006, 07:52 AM
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
10-21-2006, 07:44 AM
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
10-21-2006, 08:18 AM
To install/update in 3.6.2 go to pluing section....uninstall the pluing and re install. Works fine whit the new options.

Servaas
10-21-2006, 03:08 PM
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
10-21-2006, 04:51 PM
great one, installed and is working perfectly on 3.62

Viper007Bond
10-22-2006, 01:52 AM
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
10-23-2006, 11:58 PM
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
10-26-2006, 06:46 PM
is this mod works correctly on vb 3.6.2?

Phooey
10-29-2006, 02:19 PM
Works great, this is exactly what I was looking for. Thanks!

tobybird
11-01-2006, 08:04 PM
Perfect. This is exactly what I was looking for! Clicked Install.

Cocko
11-02-2006, 04:22 PM
is there a german translation out ?

beano33
11-15-2006, 08:05 PM
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
11-16-2006, 09:37 AM
How do I turn this on by default for all users?

Spleasure
11-17-2006, 06:34 AM
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
11-18-2006, 11:34 PM
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
11-20-2006, 12:28 AM
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
11-20-2006, 12:58 AM
Members are able to post images of any size. This just resizes them to smaller via Javascript when displayed.

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

mauro1947
11-20-2006, 07:45 PM
Hi!
Somebody has probed with vB 3.6.3??
Thanks!

Rabbitoh Warren
11-22-2006, 06:50 AM
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
11-24-2006, 12:00 AM
Is anybody having conflicts between this hack and lightbox...?
Thanks

KSE
11-25-2006, 05:31 AM
installed on v3.6.4 working ok so far. Thanks!

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

Maksa
11-25-2006, 08:48 AM
will it work with VB 3.6.4 ?

ApexSpeed
11-25-2006, 01:45 PM
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
11-26-2006, 09:06 PM
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
11-28-2006, 04:16 PM
installed on v3.6.4 working ok so far. Thanks!

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


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

Mecho
12-03-2006, 10:22 AM
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
12-03-2006, 12:09 PM
great hack!!!

just INSTALLED on 3.6.4

Capper5016
12-03-2006, 04:41 PM
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
12-05-2006, 05:16 PM
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
12-05-2006, 05:17 PM
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
12-05-2006, 09:34 PM
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
12-05-2006, 09:55 PM
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
12-05-2006, 10:24 PM
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
12-05-2006, 10:27 PM
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
12-13-2006, 10:31 AM
Installed like a dream on 3.6.4 and looking good :)

TrIn@dOr
12-13-2006, 11:59 AM
Nice thanks.

AMG021
12-13-2006, 08:34 PM
any way to make this work with vBadvanced?

derbe
12-15-2006, 10:24 AM
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
12-19-2006, 02:00 PM
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
12-19-2006, 02:35 PM
Definitily one of the most usefull add-ons...for me
Works flawless also...Mooi werk!

*installs*

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

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

Distance
12-24-2006, 05:00 AM
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
12-24-2006, 09:06 PM
^ works fine for me

mescalin
12-26-2006, 08:16 AM
doesnt work:(

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

Spleasure
01-02-2007, 12:32 PM
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
01-02-2007, 05:06 PM
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
01-02-2007, 06:47 PM
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
01-02-2007, 07:08 PM
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
01-03-2007, 03:41 PM
will this work on 3.6.4 ?

Mecho
01-03-2007, 05:22 PM
will this work on 3.6.4 ?

like a charm

zkilzz
01-04-2007, 09:55 AM
Is it possible to make it have different sizes for different forums?

elsonar
01-04-2007, 11:22 AM
I noticed that this also resizes a users signature as well.

As there anyway to disable the sig from getting resized?

Thanks

dendrob
01-07-2007, 12:47 PM
Great Mod !

* INSTALLED *

dendrob
01-08-2007, 03:10 AM
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
01-08-2007, 03:12 AM
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
01-10-2007, 12:03 PM
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
01-16-2007, 03:44 AM
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
01-16-2007, 01:23 PM
How to install the vBulletin-language-nl.xml ?? and what it does ??

Forza
01-16-2007, 04:26 PM
works like a charm! Thanks!

cur53se
01-16-2007, 04:47 PM
Just wondering - why it does not resize pictures in quote ?

Spleasure
01-16-2007, 06:43 PM
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
01-17-2007, 11:19 AM
I was looking for something like this. Will definitely try it soon.

Spleasure
01-17-2007, 11:29 AM
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
01-17-2007, 11:47 AM
This does not effect to images inside a hidden part, does this?

RFViet
01-17-2007, 04:18 PM
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
01-17-2007, 10:59 PM
Very nice. :)

TJFweb
01-22-2007, 06:41 AM
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
01-22-2007, 02:08 PM
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
01-27-2007, 07:50 AM
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
01-28-2007, 11:26 AM
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
01-28-2007, 12:57 PM
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
01-28-2007, 03:36 PM
Working for me on your site in IE7 as well.

rasterbox
01-29-2007, 02:03 AM
Thank you for this great plugin..

cheers

Shazz
01-29-2007, 02:14 AM
Very Complex mod for something very simple :confused:
Did 2 edits with mine :D

da420
01-29-2007, 03:07 AM
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
01-29-2007, 04:53 AM
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
01-29-2007, 11:49 PM
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
01-30-2007, 11:34 PM
Spleasure (https://vborg.vbsupport.ru/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-02-2007, 09:06 PM
I removed this hack and now my [IMG] tags are not working. Any ideas of why this would happen?

Shazz
02-02-2007, 09:08 PM
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-02-2007, 09:22 PM
Yeah, like I said, it's just my opinion. :cool:

Spleasure
02-02-2007, 11:14 PM
I will release a new version with serious javascript and plugin improvements soon.

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

Spleasure
02-03-2007, 07:24 AM
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
02-04-2007, 09:03 AM
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
02-04-2007, 09:06 AM
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
02-04-2007, 09:23 AM
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
02-04-2007, 09:37 AM
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
02-04-2007, 09:58 AM
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:

https://vborg.vbsupport.ru/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
02-04-2007, 06:23 PM
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