PDA

View Full Version : Show Thread Enhancements - Image resizer


Pages : 1 [2] 3 4

Viper007Bond
02-04-2007, 09:17 PM
Updated!

haris_led
02-04-2007, 09:23 PM
well i'm getting a database error when i try to do something in usercp/change settings

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 - 512, options),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options - 4096, options),
options = IF(options & 131072, options - 131072, options),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options - 128, options),
languageid = 0,
autosubscribe = 1,
threadedmode = 2,
timezoneoffset = '2',
showvbcode = 1,
pmpopup = 1,
maxposts = -1,
daysprune = 0,
startofweek = 1,
ncode_imageresizer_mode = 'enlarge',
ncode_imageresizer_maxwidth = 700,
ncode_imageresizer_maxheight = 0
WHERE userid = 1;

MySQL Error : Unknown column 'ncode_imageresizer_maxwidth' in 'field list'
Error Number : 1054
Date : Sunday, February 4th 2007 @ 06:19:14 PM
Script : xxxx/forum/profile.php?do=updateoptions
Referrer : xxxx/forum/profile.php?do=editoptions
IP Address : xxxx
Username : xxxx
Classname : vb_database

if i disable the hack, everything is ok:rolleyes:

Spleasure
02-04-2007, 09:27 PM
well i'm getting a database error when i try to do something in usercp/change settings

if i disable the hack, everything is ok:rolleyes:

For some reason the installation failed. Please try to reinstall.

haris_led
02-04-2007, 09:55 PM
database error if i try to uninstall, database error after i overwrite it again and go to edit the options!
wtf?

BobbyBig
02-04-2007, 10:11 PM
This Update adds white pixels to my pictures...
Edit: Fixed.

transitbus
02-04-2007, 10:37 PM
Update warns that column ncode_imageresizer_mode already exists. Can you add a conditional statement for those of us upgrading so we don't have to remove the add statement from the xml when trying to upgrade?

mescalin
02-04-2007, 11:56 PM
I installed today, first i uploaded js.txt and renamed to only.js then i installed the plugin.. But i get the fallowing error..

Fatal error: Call to undefined function: ncode_imageresizer_replace() in /big/home/madeintu/public_html/forum/includes/class_bbcode.php(415) : eval()'d code on line 2

Spleasure
02-05-2007, 07:18 AM
database error if i try to uninstall, database error after i overwrite it again and go to edit the options!
wtf?
Does your vBulletin database user have the permissions to alter the vBulletin table?

Please execute the queries:
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
ALTER TABLE `user` ADD `ncode_imageresizer_maxheight` SMALLINT UNSIGNED DEFAULT NULL NULL


I installed today, first i uploaded js.txt and renamed to only.js then i installed the plugin.. But i get the fallowing error..

Fatal error: Call to undefined function: ncode_imageresizer_replace() in /big/home/madeintu/public_html/forum/includes/class_bbcode.php(415) : eval()'d code on line 2

At which location do you get that error? When viewing a thread?

Mupetz
02-05-2007, 08:57 AM
I have the same error here.
Fatal error: Call to undefined function: ncode_imageresizer_replace() in /home/content/e/a/s/eastsideunited/html/includes/class_bbcode.php(415) : eval()'d code on line 9
When viewing index.php
Uninstall until fix. I have no choice.

Thanks

TrIn@dOr
02-05-2007, 09:02 AM
We have 1.0 RC 2

Can u explain the upgrade procedure to RC 3?

Thanks in advance.

Spleasure
02-05-2007, 09:20 AM
I have the same error here.
Fatal error: Call to undefined function: ncode_imageresizer_replace() in /home/content/e/a/s/eastsideunited/html/includes/class_bbcode.php(415) : eval()'d code on line 9
When viewing index.php
Uninstall until fix. I have no choice.

Thanks
Please contact me by IM.
What other plugins do you have installed?
Did you activate the demo mode?
We have 1.0 RC 2

Can u explain the upgrade procedure to RC 3?

Thanks in advance.
1. Upload the new js file
2. Import the XML file

I installed today, first i uploaded js.txt and renamed to only.js then i installed the plugin.. But i get the fallowing error..

Fatal error: Call to undefined function: ncode_imageresizer_replace() in /big/home/madeintu/public_html/forum/includes/class_bbcode.php(415) : eval()'d code on line 2

Please contact me by IM

Bulent Tekcan
02-05-2007, 09:39 AM
Good product.....

This is wonderful if you seperately resize signature.

Thanks

Gizmo999
02-05-2007, 09:56 AM
Getting database error on upgrade, it doesn't look like its installed :(


Database error in vBulletin 3.6.4:

Invalid SQL:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL;

MySQL Error : Duplicate column name 'ncode_imageresizer_mode'
Error Number : 1060
Date : Monday, February 5th 2007 @ 11:54:09 AM
Script : http://www./admincp/plugin.php?do=productimport
Referrer : http://www./admincp/plugin.php?do=productadd
IP Address :
Username :
Classname : vb_database

Spleasure
02-05-2007, 10:32 AM
Getting database error on upgrade, it doesn't look like its installed :(


Database error in vBulletin 3.6.4:

Invalid SQL:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL;

MySQL Error : Duplicate column name 'ncode_imageresizer_mode'
Error Number : 1060
Date : Monday, February 5th 2007 @ 11:54:09 AM
Script : http://www./admincp/plugin.php?do=productimport
Referrer : http://www./admincp/plugin.php?do=productadd
IP Address :
Username :
Classname : vb_database
What was the version you had installed before?

Gizmo999
02-05-2007, 11:20 AM
What was the version you had installed before?

1.0 RC2

Mecho
02-05-2007, 01:01 PM
thanks for update :)

Tralala
02-05-2007, 05:17 PM
Do you have a test link?



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



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


Has anyone tested this tweak to see if it fixes alert text display for Safari users?

https://vborg.vbsupport.ru/external/2007/02/26.jpg

Just curious to know before diving in. I'd love to use this hack but have a lot of Safari users and would like to know what I'm getting into before installation. That said, I'd be happy to offer any assistance with regards to troubleshooting. If anyone's made the tweak and would like me to log in with Safari to check things out, please post the URL here.

jw00dy
02-05-2007, 05:18 PM
works fine here. thanks

Spleasure
02-05-2007, 06:42 PM
I have made a new installer. I everyone who has problems installing / uninstalling / upgrading could contact me by IM (MSN/ICQ/see my contact page) or PM/email I can send a test version to see if it really solves the problems.

Tralala
02-05-2007, 09:37 PM
In case it hasn't already been said... Spleasure is a rock star. This is one excellent add-on. Working great for me. Thanks so much for sharing it, Spleasure!

Spleasure
02-05-2007, 10:31 PM
In case it hasn't already been said... Spleasure is a rock star. This is one excellent add-on. Working great for me. Thanks so much for sharing it, Spleasure!
He says this because I fixed the safari bug. It will be in the next release.

Bulent Tekcan
02-06-2007, 03:25 PM
Hello Spleasure

Is it possible to 2 section ? 1st is the forumdisplay image adjustment,2nd one is the signature image adjustment.

Thanks

Spleasure
02-06-2007, 04:05 PM
Hello Spleasure

Is it possible to 2 section ? 1st is the forumdisplay image adjustment,2nd one is the signature image adjustment.

Thanks
What do you mean? Separate maximum dimensions for post images and signature images?

Bulent Tekcan
02-06-2007, 06:01 PM
What do you mean? Separate maximum dimensions for post images and signature images?

Yes.....I think best product for all forum admin.

Thanks

KipLarson
02-06-2007, 08:46 PM
Does this work with 3.61 and 3.64?

Shazz
02-06-2007, 08:54 PM
Does this work with 3.61 and 3.64?

yes.

JohnBee
02-06-2007, 09:27 PM
I have two request :)

1) Is it possible to have the image enlarge when clicked on(instead of the bar)
2) What are the chances of getting lightbox effect when enlarged

Those features would be awesome, especially the lightbox

Spleasure
02-07-2007, 02:32 PM
I have two request :)

1) Is it possible to have the image enlarge when clicked on(instead of the bar)
2) What are the chances of getting lightbox effect when enlarged

Those features would be awesome, especially the lightbox
I have specifically made an information bar so https://vborg.vbsupport.ru/ scenario's would still allow the image to have a link.
The lightbox effect is something I consider for a future version.

JohnBee
02-07-2007, 06:28 PM
I have specifically made an information bar so https://vborg.vbsupport.ru/ scenario's would still allow the image to have a link.
The lightbox effect is something I consider for a future version.
Ah well the link makes lots of sense, I dreaded some other version which did just that(really anoying)

Totally looking forward to the lighbox on this, your mod would become the cream of the crop with such features.

Great work!

taydu
02-09-2007, 09:45 PM
try to update to RC3 and got this error message

Fatal error: Call to undefined function: ncode_imageresizer_replace() in ......../public_html/forums/includes/class_bbcode.php(415) : eval()'d code on line 2

I got this error when tried to access the forum and login in admincp

taydu
02-11-2007, 03:27 AM
Can someone help??? I Did an upgrade and got the message above, but if I install on a fresh test board then it work great.

Smoothie
02-12-2007, 01:54 AM
Has the safari bug been fixed and if so, does the file download reflect the change?

Zia
02-12-2007, 03:02 AM
didnt find any option for sigs..

hope it wont effect on sigs..

if image is smaller than given dimension...image will not be enlarged >??????
like dimension is : 320 X 480 pix
if posted image is 300 X 400 pix. then image wont be enlarged ....right?

fly
02-12-2007, 06:42 PM
I have a user who keeps getting this error with IE7:
stop running this script? a script running on this page is causing internet explorer to run slowly. if it continues to run, your computer may become unresponsive.

Its definently the resizer, because if I disable it the error goes away...

Tralala
02-14-2007, 03:53 AM
The lightbox effect is something I consider for a future version.

Totally looking forward to the lighbox on this, your mod would become the cream of the crop with such features.

Hell yeah, this mod (https://vborg.vbsupport.ru/showthread.php?t=139167) got me thinking the same. Check out this demo! (http://www.mini2.com/forum/general-discussion/135635-new-image-pop-ups-transations-mini2-gallery-images-attachments.html) The "zoom" transition is sexy.

If "lightboxing" was an option for enlarging images with this hack... I think I'd faint from excitement. :D

Smoothie
02-14-2007, 11:14 AM
Highslide rocks! Just installed it last night. There is some talk of trying to get it to work with vB's img code.

fly
02-14-2007, 01:03 PM
I have a user who keeps getting this error with IE7:


Its definently the resizer, because if I disable it the error goes away...

I can now consistantly recreate this 'bug' in IE by setting my forum to 100 posts per page on a page with a lot of images. Can this be fixed?

Eagle Creek
02-14-2007, 02:37 PM
Dude.. You are making it so confusing with all those seperate files and then the zip file.. I just want to make in in Dutch, what should I do. Where could I upload the seperate Dutch file? Or the zip Dutch file? Why is there a size difference??

KURTZ
02-14-2007, 02:43 PM
updated!

wacodep
02-14-2007, 06:16 PM
Works great.

Except ... the banner bar above my images does NOT include the information about the size and weight of the resized image.

All it says is "Click this bar to view the full image".

Any ideas? Thanks.

wacodep
02-14-2007, 06:19 PM
Nevermind ... I see ... the resized image was too small ... ;)

wacodep
02-14-2007, 07:33 PM
I would like to send a few bucks, but your PayPal link goes to the a non-English/non-US display. I don't have any Euros to send you, and can't read it anyways ... :)

Can I just PayPal some $US from the US PayPal to jorrit [at] ncode [dot] nl ??

Smoothie
02-15-2007, 01:12 AM
Just checked a site that was running this mod and the text is not viewable when browsing with safari. Any chance of getting that fixed?

ReQueM
02-15-2007, 06:50 PM
thank u
*installed*

Eagle Creek
02-16-2007, 12:15 PM
Problem!

http://www.nucia.nl/forum/showthread.php?p=222209 (post #4 and #10)

As u can see, the picture isn't resize properly. It looks like the resize to keep the height-width-ratio. Can somebody confirm this?
That shouldn't happen because I gave up a MAXIMUM height and WIDTH in my ACP. So it shouldn't be wider then X, even if that means the picture isn't shown "nice" anymore.

EDIT:
I fixed it jusing this code in the JS file:
NcodeImageResizer.prototype.scale = function() {
var cs = 0;
cs += NcodeImageResizer.MAXWIDTH > 0 && this.originalWidth > NcodeImageResizer.MAXWIDTH ? 1 : 0;
cs += NcodeImageResizer.MAXHEIGHT > 0 && this.originalHeight > NcodeImageResizer.MAXHEIGHT ? 2 : 0;
if (cs == 3) cs -= this.originalWidth / NcodeImageResizer.MAXWIDTH > this.originalHeight / NcodeImageResizer.MAXHEIGHT ? 2 : 1;
switch (cs) {
case 1:
resized = true;
this.img.width = NcodeImageResizer.MAXWIDTH;
this.img.height = (NcodeImageResizer.MAXWIDTH / this.originalWidth) * this.originalHeight;
break;
case 2:
resized = true;
this.img.height = NcodeImageResizer.MAXHEIGHT;
this.img.width = (NcodeImageResizer.MAXHEIGHT / this.originalHeight) * this.originalWidth;
break;
}



this.warning.width = this.img.width;
this.warning.onclick = function() { return this.resize.unScale(); }

Spleasure
02-16-2007, 02:30 PM
Dude.. You are making it so confusing with all those seperate files and then the zip file.. I just want to make in in Dutch, what should I do. Where could I upload the seperate Dutch file? Or the zip Dutch file? Why is there a size difference??
The -nl file contains just phrases, it should be imported separately in the language manager.
I would like to send a few bucks, but your PayPal link goes to the a non-English/non-US display. I don't have any Euros to send you, and can't read it anyways ... :)

Can I just PayPal some $US from the US PayPal to jorrit [at] ncode [dot] nl ??
Yes you can, and I have updated the paypal links. Thanks by the way :) I really appreciate it

Tralala
02-16-2007, 04:57 PM
The lightbox effect is something I consider for a future version.

Spleasure, another coder by the name of mini2 (who uses this ncode image resizer, BTW (https://vborg.vbsupport.ru/showpost.php?p=1181604&postcount=41)) has the best lightbox effect for vBulletin, called highslide (https://vborg.vbsupport.ru/showthread.php?p=1183938). It works really nicely for attachments.

mini2 has posted that he's trying to make it work with the [img] tag (https://vborg.vbsupport.ru/showpost.php?p=1183940&postcount=73)... and I thought your two scripts might be a marriage made in vb modding heaven.

Just throwing out the idea and good karma.

Paypal donation is also on the way. :)

Spleasure
02-16-2007, 06:09 PM
Spleasure, another coder by the name of mini2 (who uses this ncode image resizer, BTW (https://vborg.vbsupport.ru/showpost.php?p=1181604&postcount=41)) has the best lightbox effect for vBulletin, called highslide (https://vborg.vbsupport.ru/showthread.php?p=1183938). It works really nicely for attachments.

mini2 has posted that he's trying to make it work with the [img] tag (https://vborg.vbsupport.ru/showpost.php?p=1183940&postcount=73)... and I thought your two scripts might be a marriage made in vb modding heaven.

Just throwing out the idea and good karma.

Paypal donation is also on the way. :)
I like the effects definitely :) I don't like the fact that for his mod you have to do all kinds of edits yourself, I like to make everything as easy as possible for users. I will have a look into integrating highslide after 1.0. I want to have 1.0 finished soon with the current features and as stable as possible.

fly
02-16-2007, 06:17 PM
I like the effects definitely :) I don't like the fact that for his mod you have to do all kinds of edits yourself, I like to make everything as easy as possible for users. I will have a look into integrating highslide after 1.0. I want to have 1.0 finished soon with the current features and as stable as possible.

Did you happen to see my message regarding the 'bug' with IE?

Spleasure
02-16-2007, 06:28 PM
Did you happen to see my message regarding the 'bug' with IE?
yes, and the slowdowns at posts with many small images which do not have to be resized anyway is gone in the upcoming version.
The only file edits you have to do yourself are if you want extra functions. Sadly hooks are not in the right places for some things such as altering pre-defined bbcodes.

You also have to customise the highslide files to match your own URLs, no more difficult than setting your preferences in the admin control panel.

The template mods could maybe be packaged up as a product though, I'm not generally a mod releaser, I just thought the highslide thing worked well and seemed to fill a demand.

I'm not sure how highslide would help this mod really, as it's just a resizer, maybe if you shrank every attached image above the limits down to a thumbnail with a highslide zoom code that could work, but the thing I like about this image resizer is it's very simple in the way it works. Does what it should with little fuss.
Regarding rewriting predefined tags: I rewrote the img tag, and that's quite possible. I'm still thinking how this should be done.

BlackCode407
02-16-2007, 06:31 PM
This is very useful and necessary hack! Thank you.

fly
02-16-2007, 06:46 PM
yes, and the slowdowns at posts with many small images which do not have to be resized anyway is gone in the upcoming version.

Regarding rewriting predefined tags: I rewrote the img tag, and that's quite possible. I'm still thinking how this should be done.

Awesome. Thanks again man.

Tralala
02-17-2007, 12:58 AM
I'm not sure how highslide would help this mod really, as it's just a resizer, maybe if you shrank every attached image above the limits down to a thumbnail with a highslide zoom code that could work, but the thing I like about this image resizer is it's very simple in the way it works. Does what it should with little fuss.

IMHO (and it sounds like you agree,) this resize hack already handles the shrinking aspect perfectly. And most of us prefer for users to post images inline in their posts with the [img] tag, linked from their own webspace, and not as attachments which bog down server filespace (which is how highslide works currently... only with attachments.)

I'd leave Spleasure's script intact for the shrinking... I was thinking more along the lines of simply integrating and offering highslide.js as one choice for presenting the larger sized original. It is highslide's animation "zoom" effect, slide show controls, and dragability of the enlarged image that gets the oohs and aahs.

And so, a perfectly integrated mod would be just as Spleasure's is right now, but offers these as choices for the user in UserCP's Edit Options:

-Keep Original Size
-Enlarge via highslide/lightbox effect
-Enlarge in same window, using original javascript (<-- might not be necessary option)
-Open in new window
-Open in new window

Regardless... let it be known... both of you guys rock. Thanks for sharing your brilliance! :)

Smoothie
02-17-2007, 02:26 AM
What about the Safari bug?

rjmjr69
02-17-2007, 02:52 AM
Can I use this to adjust just the avatars?

Spleasure
02-17-2007, 03:20 PM
Next week I will release a new version which fixes installation problems, the safari bug, and slowdowns. I'm waiting for one possible bugreport which I would like to address in this release.

Avatar resizing is not included in this mod.

Smoothie
02-17-2007, 10:45 PM
If you need a tester for the Safari bug, I am available to help.

Tralala
02-17-2007, 11:14 PM
If you need a tester for the Safari bug, I am available to help.

I've tested for him... and it works great. :)

Smoothie
02-17-2007, 11:56 PM
I've tested for him... and it works great. :)Yea, but what version of safari are you testing with?:)

Tralala
02-18-2007, 01:25 AM
Lets just say, I tested on quite a few. What bug in particular are you talking about, the display of text in the yellow title bar?

Smoothie
02-18-2007, 02:29 AM
Lets just say, I tested on quite a few. What bug in particular are you talking about, the display of text in the yellow title bar?There are 2 bugs. One is the missing text, the other is the large horizontal scroll bar when the page is loading, and when clicking to show smaller image. 50/50 when clicking to show smaller image the scroll goes away.

Tralala
02-18-2007, 03:31 AM
There are 2 bugs. One is the missing text, the other is the large horizontal scroll bar when the page is loading, and when clicking to show smaller image. 50/50 when clicking to show smaller image the scroll goes away.

Which version of Safari? I haven't seen that, so maybe that is fixed too.

Spleasure
02-18-2007, 11:19 AM
(Only) just realised this myself. :o

Would be very good to work around this as I like to be "valid".

Anyone worked out a sollution (or working on one)?
I didn't know that onload is no longer valid ... Doing an onload will have the negative side effect that you have to wait for all the images to load before the images are resized.

Smoothie: do you have a link to the page where that large scrollbar occurs?

Smoothie
02-18-2007, 05:32 PM
Which version of Safari? I haven't seen that, so maybe that is fixed too.I am using the latest version, with OS X (10.4.8)

Smoothie
02-18-2007, 05:33 PM
I didn't know that onload is no longer valid ... Doing an onload will have the negative side effect that you have to wait for all the images to load before the images are resized.

Smoothie: do you have a link to the page where that large scrollbar occurs?Large scroll bars when the page loads? Or when you click to resize the image to the resized state?

Spleasure
02-18-2007, 05:40 PM
Large scroll bars when the page loads? Or when you click to resize the image to the resized state?
Both? I don't have a clear idea of what the problem is, so if you could explain this by giving a screenshot and perhaps the link to the thread I can investigate this.

Smoothie
02-18-2007, 07:50 PM
ok, here's the link. Until page finishes loading, horizontal scroll bar, Safari 2.0.4.

Clicking on image to see original size, then clicking to see resized image leaves the scroll bar, but it does not happen 100% of the time.
http://www.sim-outhouse.com/sohforums/showthread.php?t=33010

Spleasure
02-18-2007, 07:54 PM
ok, here's the link. Until page finishes loading, horizontal scroll bar, Safari 2.0.4.

Clicking on image to see original size, then clicking to see resized image leaves the scroll bar, but it does not happen 100% of the time.
http://www.sim-outhouse.com/sohforums/showthread.php?t=33010
The horizontal scrollbar is logical: while the image is loading, it's not resized yet and it occupies the total width. Not mucht I can do about that. I don't know why the scrollbar doesn't disappear, but I think it's a browser issue.

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

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft (http://haoli.dnsalias.com/) installed but I don't think that would have any effect on something like this.

Smoothie
02-18-2007, 10:36 PM
I'm wondering if maybe it was a user error. I may have clicked 2 images to show full size and only clicked 1 to return back to resized state.....but I could have sworn it was on a page that only had 1 image. Dunno, but it seems to be working ok now.

Sadie Frost
02-19-2007, 01:54 AM
I'm having an issue by which this doesn't seem to work with the defaults in the admincp set - if I don't set a width and height in my User Edit Options, it does not resize the image (but if I do, image resizes fine). Also, even with the resize signature option set to no in the admincp, it still is resizing signatures.

Anyone have any ideas? Thanks :)

Spleasure
02-19-2007, 04:30 PM
I'm having an issue by which this doesn't seem to work with the defaults in the admincp set - if I don't set a width and height in my User Edit Options, it does not resize the image (but if I do, image resizes fine). Also, even with the resize signature option set to no in the admincp, it still is resizing signatures.

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

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

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft (http://haoli.dnsalias.com/) installed but I don't think that would have any effect on something like this.
Thanks for your effort

andrewkhunn
02-19-2007, 05:49 PM
Here's how we managed to get it working with vbadvanced. Open up modules\news.php. On or around line 214, you should see this block of code:
// Parse bb code if necessary
if ($news['pagetext_html'])
{
$news['message'] = $news['pagetext_html'];
}
else
{
$news['message'] = $bbcode_parser->do_parse($news['pagetext'], $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
} Replace this chunk of code with:
// Parse bb code if necessary
if ($news['pagetext_html'])
{
$news['message'] = $news['pagetext_html'];
}
else
{
$news['message'] = $bbcode_parser->do_parse($news['pagetext'], $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
$news['message'] = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $news['message']);
}

Basically, after it's all been parsed, you just run the same preg_replace that this module runs on regular posts. It's pretty straightforward.

Spleasure
02-19-2007, 07:31 PM
Which version are you using? It should work by default for everything that uses the bbcode system from version 1.0 rc 3.

andrewkhunn
02-19-2007, 08:35 PM
Which version are you using? It should work by default for everything that uses the bbcode system from version 1.0 rc 3.
vBulletin 3.6.4, vBadvanced 2.2.1.

For the Image Resizer, it says version 1.0 in the plugin/product manager, but I assume it's RC 3 as it was downloaded & installed from here only two days ago.

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

I am using Safari 2.0.4 on a MacBook Pro. I also have Saft (http://haoli.dnsalias.com/) installed but I don't think that would have any effect on something like this.BTW, you didn't have to register on that site to see the resized images. ;)

Lizard King
02-20-2007, 04:20 AM
There is a strange problem i am facing. When someone uses png images the page is freezing with Ie 6.0
Here is a demo
http://www.ayyas.com/duyurular-sikayetler/17047-test-amaclidir/

Bulent Tekcan
02-20-2007, 08:44 AM
I received this error that pages (see my attachmet) Also I'll test same image in my forum.

Cheers

Bulent Tekcan
02-20-2007, 09:01 AM
I tested png images without any problem.I think some rules blocked that pages maybe mod_security.

Spleasure
02-20-2007, 09:38 AM
I received this error that pages (see my attachmet) Also I'll test same image in my forum.

Cheers

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

Lizard King
02-20-2007, 01:32 PM
By help of Spleasure we managed to found the problem. This PNG Fix (https://vborg.vbsupport.ru/showthread.php?t=93415) is conflicting with nCode . When Png Fix is disabled everything works perfectly.

RedGTiVR6
02-20-2007, 02:19 PM
I've installed this, I've set it up in the Admin CP, and all is good.

However, when I go to the Options in the UserCP...there's nothing there.

Using 3.6.3

Any ideas?

akulion
02-21-2007, 11:36 AM
excellent modification :)

RedGTiVR6
02-21-2007, 12:48 PM
still have my question....:(

fly
02-21-2007, 01:00 PM
Do you perhaps have a script running to enable transparancy for PNG in IE 6?

No, I mentioned this bug a few pages back. IE bombs out on pages with lots of images to resize.

Spleasure
02-21-2007, 02:22 PM
No, I mentioned this bug a few pages back. IE bombs out on pages with lots of images to resize.
It indeed was a PNG fix related problem. Your problem is different, it's fixed (in some situations at least)
I've installed this, I've set it up in the Admin CP, and all is good.

However, when I go to the Options in the UserCP...there's nothing there.

Using 3.6.3

Any ideas?
Please give an url to you board. Have you installed any plugins which might conflict?

fly
02-21-2007, 02:49 PM
It indeed was a PNG fix related problem. Your problem is different, it's fixed (in some situations at least)

Please give an url to you board. Have you installed any plugins which might conflict?

Ahhh, my bad. Well, its the exact same error anyway...

RedGTiVR6
02-21-2007, 03:36 PM
It indeed was a PNG fix related problem. Your problem is different, it's fixed (in some situations at least)

Please give an url to you board. Have you installed any plugins which might conflict?

www.mp3car.com/vbulletin

I don't believe I've installed any plug-ins that would conflict....but then again, i'm not sure what might.

The only mods I've done to the UserCP were to add profile fields and the hack for the look of the menu.

RedGTiVR6
02-21-2007, 04:31 PM
Fixed!

Thanks for all the help. It's greatly appreciated!
*clicks installed*

Smoothie
02-21-2007, 06:29 PM
Hows the update to this coming along?

Spleasure
02-21-2007, 06:59 PM
Hows the update to this coming along?
Now :)

------

I've released an update for the Image Resizer adding some small new features and fixing a couple of bugs:

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

I hope it works better for you now. Please report bugs in this thread.

RedGTiVR6
02-21-2007, 07:38 PM
What do we need to do to update our version?

Uninstall and reinstall? Or just install over?

Spleasure
02-21-2007, 07:40 PM
What do we need to do to update our version?

Uninstall and reinstall? Or just install over?
Both work, but if you want to keep the settings overwrite the current version.

RS_Jelle
02-21-2007, 07:47 PM
Nice new version, scrolling on pages isn't shocking any more on slower computers :up:

A suggestion: make it 100% W3C XHTML compliant. The onload attribute isn't valid for the img tag, it would be nice if you could replace it with a valid method.

Smoothie
02-21-2007, 08:37 PM
Now :)

------

I've released an update for the Image Resizer adding some small new features and fixing a couple of bugs:

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

I hope it works better for you now. Please report bugs in this thread.

Very nice, thanks. Haven't installed yet, was waiting on the update.

Smoothie
02-21-2007, 08:39 PM
BTW, which of those files do I download? There's like 6 of 'em.

da420
02-21-2007, 08:41 PM
I imagine the one labeled...

ncodeimageresizer 1.0rc4.zip

Thanks for the update! Will install tonight...

Bulent Tekcan
02-21-2007, 08:46 PM
Realy very good job,my users very happy for this mod.

I'm already donated ;)

Thanks

AMG021
02-21-2007, 08:50 PM
can you please PLease make this work with vBadvanced?

dbirosel
02-21-2007, 08:56 PM
Hooray! an update. thanks brotha! keep up the good work.

Spleasure
02-21-2007, 08:56 PM
Nice new version, scrolling on pages isn't shocking any more on slower computers :up:

A suggestion: make it 100% W3C XHTML compliant. The onload attribute isn't valid for the img tag, it would be nice if you could replace it with a valid method.
I think that's not possible. I could use a pagelevel onload, but that does not provide the same experience as a per-image onload. Perhaps adding an option to enable XHTML compliance in exchange for a worse experience is doable.

projectego
02-21-2007, 08:59 PM
Thanks for the update! ;)

Smoothie
02-21-2007, 09:04 PM
Smooth as silk......

Mecho
02-21-2007, 09:35 PM
Thanks for update :)

fly
02-21-2007, 09:50 PM
Ahhh, my bad. Well, its the exact same error anyway...

My error has been resolved. <3

Sadie Frost
02-21-2007, 10:26 PM
The upgrade fixed my problem with the signatures :) Thanks!

Tralala
02-21-2007, 10:37 PM
/nominates for Mod of the Month

Tralala
02-21-2007, 10:48 PM
/sends thanks by way of PayPal donation

KURTZ
02-21-2007, 11:05 PM
updated!

RedGTiVR6
02-22-2007, 01:59 AM
I'm guessing I've done something wrong:

Invalid SQL:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL;

MySQL Error : Duplicate column name 'ncode_imageresizer_mode'
Error Number : 1060


I selected the radio button to allow the upgrade even...and I uploaded the newest .js file as well.

Ideas on where to start?

Hollanda
02-22-2007, 06:00 AM
I'm guessing I've done something wrong:

Invalid SQL:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL;

MySQL Error : Duplicate column name 'ncode_imageresizer_mode'
Error Number : 1060


I selected the radio button to allow the upgrade even...and I uploaded the newest .js file as well.

Ideas on where to start?

Same problem...

dirty68
02-22-2007, 06:10 AM
Thank you

Spleasure
02-22-2007, 06:27 AM
I'm guessing I've done something wrong:

Invalid SQL:
ALTER TABLE `user` ADD `ncode_imageresizer_mode` ENUM("none", "enlarge", "samewindow", "newwindow") DEFAULT "enlarge" NOT NULL;

MySQL Error : Duplicate column name 'ncode_imageresizer_mode'
Error Number : 1060


I selected the radio button to allow the upgrade even...and I uploaded the newest .js file as well.

Ideas on where to start?

Same problem...


Which file did you download? Are you sure that it is the latest version? Please remove as a temporary fix the image resizer before you install the newest version.

TrIn@dOr
02-22-2007, 09:17 AM
updated, thanks.

RedGTiVR6
02-22-2007, 10:58 AM
well, I'm not sure what I did or didn't do initially, but I tried it again, and it's all good now!

Thanks again!

encryption
02-22-2007, 11:25 AM
Love the simplicity of this mod.... fantastic

Caiman
02-22-2007, 01:59 PM
Love it, seems to work fine but I keep seeing this in whosonline;

Unknown Location
/clientscript/ncode_imageresizer.js?v=3

^Seems to show up whenever a user has clicked on an image and expanded it. As far as I can tell, everything is working, just curious as to why it shows users viewing this location.

Spleasure
02-22-2007, 03:41 PM
Love it, seems to work fine but I keep seeing this in whosonline;

Unknown Location
/clientscript/ncode_imageresizer.js?v=3

^Seems to show up whenever a user has clicked on an image and expanded it. As far as I can tell, everything is working, just curious as to why it shows users viewing this location.
That's strange. At a forum of mine where this mod is also used I can't see this behaviour. Does anyone else have this problem?

Smoothie
02-22-2007, 03:58 PM
It's a very strange import screen when installing this. After add/import product, browse for the file and then click import it takes you to a screen that says something about adding the tables (not an error) and if doesn't add them you have to run the queries manually. At the bottom it says import successful and then there's a back button. Very odd and confusing.

da420
02-22-2007, 05:19 PM
It's a very strange import screen when installing this. After add/import product, browse for the file and then click import it takes you to a screen that says something about adding the tables (not an error) and if doesn't add them you have to run the queries manually. At the bottom it says import successful and then there's a back button. Very odd and confusing.

Same here, it told me if the table was not created that I would have to run the query manually... I didn't even think to find the name of the table, and check PHPMyAdmin to see if it created the table, because I updated this at about 2am last night and was too tired to figure it out.

It seems to work fine though.

Smoothie
02-22-2007, 05:25 PM
At first, after seeing this screen, I wasn't sure the thing even installed correctly. Only when I scrolled way down to the bottom of the page did I see the installed successful message. I did click back and was in the import screen again, and the link to the file still there in the browse box

da420
02-22-2007, 05:36 PM
Yeah, I did pretty much the same. It was confusing at first, but I *think* everything was installed properly. I over wrote the product this morning just to see what would happen, and it seemed to over write without a hitch and I didn't get that message. So from the sounds of it, it installed properly... just something I have never seen before...

Spleasure
02-22-2007, 06:45 PM
I will make it more intuitive in the next version. In the previous version I had people complaining that the installer did not update the database correctly, so I thought it would be good to make clear which changes are about to be done. It turns up that this is confusing. I'm going to see if there is a beter way.

Tralala
02-22-2007, 07:08 PM
I thought it was pretty clear, the message says "This is not an error"

You may just want to clarify, say "The following is for your information, should you find the need to manually update the database, etc."

Hollanda
02-22-2007, 07:11 PM
It's working after a remove of the previous version!

Tralala
02-22-2007, 07:14 PM
Love it, seems to work fine but I keep seeing this in whosonline;

Unknown Location
/clientscript/ncode_imageresizer.js?v=3

^Seems to show up whenever a user has clicked on an image and expanded it. As far as I can tell, everything is working, just curious as to why it shows users viewing this location.

That's strange. At a forum of mine where this mod is also used I can't see this behaviour. Does anyone else have this problem?

Just checked this myself (briefly) but didn't see that behavior... WOL reported the user was reading that particular thread, as usual...

Smoothie
02-22-2007, 07:30 PM
I thought it was pretty clear, the message says "This is not an error"

You may just want to clarify, say "The following is for your information, should you find the need to manually update the database, etc."If you re-read post 379 you'll see I did mention that. It just seemed rather odd what I saw after clicking import. If the proper queries weren't executed during the install, I would think it's a problem with the installer, not the end user. It's either installed completely or it's not. I just wanted to mention this so members who install would be aware of this, as it's something I've never experienced before.

Spleasure
02-22-2007, 07:33 PM
It could be that the MySQL user on which vB is running does not have ALTER permission to the database.

Smoothie
02-22-2007, 07:37 PM
It could be that the MySQL user on which vB is running does not have ALTER permission to the database.I'm not denying some people have issues altering the DB, but it should be in the instructions, not in the import/install script. It's confusing, because I wasn't 100% sure the thing installed correctly.

I would also like to mention this is a wonderful mod and I appreciate all the hard work you have put into it. It works beautifully.

Spleasure
02-22-2007, 07:43 PM
I'm not denying some people have issues altering the DB, but it should be in the instructions, not in the import/install script. It's confusing, because I wasn't 100% sure the thing installed correctly.

I would also like to mention this is a wonderful mod and I appreciate all the hard work you have put into it. It works beautifully.
What I'm going to do (and should have done) is checking after executing the query if the database is OK. If it is, I should not print anything.

Caiman
02-23-2007, 02:54 PM
Alright, apparently I diagnosed my problem incorrect, it seems to be a conflict with vBadvacned. The issue I posted about the unknonw location showing in whosonline has nothing to do with someone viewing a thread with images in it, rather... whenever anyone is looking at my vBa index or a vBa page, I see the;

Unknown Location
/clientscript/ncode_imageresizer.js?v=3

In whosonline. Any idea why this might be the case, I would assume it shouldnt interact with or intefere with vBa in anyway?

Spleasure
02-23-2007, 03:30 PM
It's been almost 3 weeks since I tried to install your hack. The latest version won't works, but this RC4 works, except some things. 1st of all: A damn good hack. That what I've been searched for a long time. Thank you for all, Spleasure ;).


In past versions I relied on the per version installation code functionality of vBulletin. Either I misunderstood this functionality or something else went wrong, but I now just use one installation code. The SQL error you give is related to an old version. Please uninstall everything and reinstall the latest version to get rid of everything. Perhaps you can give me the version number of the version you had before so I can test how upgrading between these two versions goes and I can try to improve this.

Alright, apparently I diagnosed my problem incorrect, it seems to be a conflict with vBadvacned. The issue I posted about the unknonw location showing in whosonline has nothing to do with someone viewing a thread with images in it, rather... whenever anyone is looking at my vBa index or a vBa page, I see the;

Unknown Location
/clientscript/ncode_imageresizer.js?v=3

In whosonline. Any idea why this might be the case, I would assume it shouldnt interact with or intefere with vBa in anyway?

vBAdvanced compatibility is something I will look into in the near future. I will take this report into account then.

Spleasure
02-23-2007, 04:18 PM
If you use the RC1 database schema you will get problems, because is has changed in the meantime. As I said, I will look into the upgrade problems. I will not go back to the old method, that's for sure.

Tralala
02-23-2007, 08:10 PM
Oh I forgot the most important...

Mark as Installed + Nominated for MOTM

The first post (and readme) also mention another way to thank Spleasure. :) A few bucks via PayPal is how I showed my thanks, for the best hack to come along in a while... along with great support and responsiveness! Thanks again, Spleasure!

Spleasure
02-24-2007, 06:39 AM
I have tried all kinds of upgrade scenario's and I can't reproduce the errors. Mike-D: can you tell me which versions you had installed? In which order did you upgrade?

digital3
02-25-2007, 05:41 PM
Why is it working for my members with FireFox but not with IE? *sighs* Why can't anything ever be foolproof?

lauxanh
02-25-2007, 07:44 PM
Great Mod,

Improve the board look alot ;)

Spleasure
02-25-2007, 08:00 PM
Why is it working for my members with FireFox but not with IE? *sighs* Why can't anything ever be foolproof?
I visited that URL in Internet Explorer 6 and it works for me. Please contact me by IM so we can fix this bug.

futuredood
03-01-2007, 10:32 AM
does this work with 3.6.4? if so, why not mention it in the original post?

Spleasure
03-01-2007, 12:48 PM
does this work with 3.6.4? if so, why not mention it in the original post?
Yes, it works with 3.6.4. It actually works with 3.6.0 and up, it's a little unclear. But if you keep in mind that there isn't much difference between 3.6.x and 3.6.y (x != y), just bugfixes, then this is clear automatically.

Caiman
03-01-2007, 02:01 PM
I've fixed the issue I was having- to some extent, seems it was actually a result of a mod_rewrite rule in my htaccess (which redirects all incorrect URLs under my domain to the homepage). But that means something in this plugin was causing vBa to request the aforementioned script url. Eitherway, thanks again this is a really great and appreciated addition to my board.

Maksa
03-01-2007, 04:08 PM
really cool :) i loved it

nhdriver4
03-02-2007, 01:24 PM
Newest version (RC4) confirmed working with 3.6.5. However, the update seems to have broken the images from being resized in vBadvanced CMPS.

Thanks for the update!!

Stifmeister2
03-02-2007, 02:11 PM
Great work mate. :) Just voted for MOTM.

Fred.
03-03-2007, 03:16 PM
Nice mod!

i got one problem.

If the image url contains %20 it don't work.

Like this

Fotos%20US%20&%20Hawaii/DSC03131.jpg

is there a workaround?

da420
03-03-2007, 03:17 PM
^^I've noticed that same thing...

mandy71480
03-05-2007, 10:23 AM
^^I've noticed that same thing...
Yup, it's been crashing my browser, too!

Smoothie
03-05-2007, 01:05 PM
What browsers are you guys using?

Fred.
03-05-2007, 02:56 PM
What browsers are you guys using?

I use Firefox 2.0 (the real browser) :D
With IE 6.0 the image is not resized on my board. :confused:

Tralala
03-05-2007, 11:36 PM
Nice mod!

i got one problem.

If the image url contains %20 it don't work.

Like this

Fotos%20US%20&%20Hawaii/DSC03131.jpg

is there a workaround?

Can you post an example on your site for others to test?


(Reason I ask is, I couldn't recreate the problem.)

I tested the %20 thing over here on my Mac, with Safari, and vBulletin 3.6.4. Also tested Camino and Firefox 2.

Seems to me like images that have %20 in the name don't load in browser pages, period, even if you remove vBulletin from the equation. So let's assume we are talking about images that actually have a SPACE in the name (which as we know, sometimes translates in the associated URL to a %20.)


With an image called (and typed into the vBulletin post within IMG tags as) "play ground.JPG" (with a space) it displayed fine and Image Resizer worked normally.

With the same URL typed into the post as "play%20ground.JPG," the picture did not display, all I saw was the link/URL.

But that's because I had Allow Dynamic URL for [IMG] Tags turned OFF in my AdminCP. With it ON, both versions displayed properly, with Image Resizer in effect.

So it seems to me, at least, that it's working fine... at least on my Mac with the three major browsers.

Spleasure
03-06-2007, 07:12 AM
Nice mod!

i got one problem.

If the image url contains %20 it don't work.

Like this

Fotos%20US%20&%20Hawaii/DSC03131.jpg

is there a workaround?
^^I've noticed that same thing...
Yup, it's been crashing my browser, too!

As Tralala said, it's probably the dynamic images setting, not a problem with the mod.

I use Firefox 2.0 (the real browser) :D
With IE 6.0 the image is not resized on my board. :confused:

Can you give a link to the thread in which this occurs.

Fred.
03-06-2007, 07:49 PM
Ok, i set dynamic url to yes and now it's worikng wit %20 and spaces and & symbols. :up:

this is the test url

http://www.reisforum.info/showthread.php?t=1637

In IE 6.0 the images are not resized, with Firefox no problem here.

Smoothie
03-06-2007, 08:10 PM
In IE 6.0 the images are not resized, with Firefox no problem here.

Isn't IE 6.0 outdated?

Fred.
03-06-2007, 08:26 PM
Isn't IE 6.0 outdated?

yes, i know.
I only use Firefox.

Most people on my site (66,76%) use IE 6.0

Tralala
03-06-2007, 11:26 PM
Ok, i set dynamic url to yes and now it's worikng wit %20 and spaces and & symbols. :up:

this is the test url

http://www.reisforum.info/showthread.php?t=1637

In IE 6.0 the images are not resized, with Firefox no problem here.
You're also using an older version of the hack. For troubleshooting's sake, you may want to update to the latest.

Isn't IE 6.0 outdated?
Perhaps, but let's not go down that road... that's no reason to not expect this mod to work with full compatibility with all browsers. After all, there's a helluva lot more people using IE 6 then there are, say, Safari... ;)

Fred.
03-07-2007, 05:27 PM
Installed the lastest version.
Seems te be ok now with the default style, with my cobalt style the paga is huge. :eek:

it's working fine now, now can i try to solve the style problem.

project-Buckfas
03-11-2007, 11:59 AM
can images to b resized be set to certain forums ids? Thiw would be idea for my frontpage news images

RedGTiVR6
03-11-2007, 12:55 PM
I'm sorry if this has been asked before...and if it's a setting somewhere that I'm not seeing.

Is there a way to have uploaded pictures automatically be public instead of private?

GrendelKhan{TSU
03-11-2007, 02:47 PM
Can you post an example on your site for others to test?


(Reason I ask is, I couldn't recreate the problem.)

I tested the %20 thing over here on my Mac, with Safari, and vBulletin 3.6.4. Also tested Camino and Firefox 2.

Seems to me like images that have %20 in the name don't load in browser pages, period, even if you remove vBulletin from the equation. So let's assume we are talking about images that actually have a SPACE in the name (which as we know, sometimes translates in the associated URL to a %20.)


With an image called (and typed into the vBulletin post within IMG tags as) "play ground.JPG" (with a space) it displayed fine and Image Resizer worked normally.

With the same URL typed into the post as "play%20ground.JPG," the picture did not display, all I saw was the link/URL.

But that's because I had Allow Dynamic URL for [IMG] Tags turned OFF in my AdminCP. With it ON, both versions displayed properly, with Image Resizer in effect.

So it seems to me, at least, that it's working fine... at least on my Mac with the three major browsers.

no idea if this is related....
but %20 type code usually appears for me when dealing cross languages and UTF-8 related stuff. ie: when some sites, browsers whatever have other types of encoding.

just thought might be an area to check out.

efil
03-11-2007, 07:32 PM
Hi,
I installed the mod, but for some reason it doesn't work for me.

Thanks for your help.

Spleasure
03-11-2007, 07:58 PM
I'm sorry if this has been asked before...and if it's a setting somewhere that I'm not seeing.

Is there a way to have uploaded pictures automatically be public instead of private?
What do you mean by this? This mod has nothing to do with uploaded images
Hi,
I installed the mod, but for some reason it doesn't work for me.

Thanks for your help.
Do you have some more specific information? A link to a thread with a non-resized image for instance?

RedGTiVR6
03-11-2007, 08:08 PM
What do you mean by this? This mod has nothing to do with uploaded images


My bad....I've got another mod installed for hosting images....went to my installed mods on here and had a brain fart.

efil
03-12-2007, 03:45 AM
Do you have some more specific information? A link to a thread with a non-resized image for instance?


Here is a link,

http://www.televizia.net/vb/showthread.php?t=12703


Thank you,

Gbml2u
03-12-2007, 08:28 AM
why dont zip all file ???

Bulent Tekcan
03-12-2007, 08:39 AM
why dont zip all file ???

Did you read 1st message ? Please see last zip files https://vborg.vbsupport.ru/attachment.php?attachmentid=60861

Cheers

Bonee70
03-12-2007, 12:29 PM
Works fine here, the only thing not working: it won't open in a new window even though I have made this setting under "options".

http://www.the-european-football-league.co.uk/forum/showthread.php?t=5759

(I am using FF-Browser)

Thx for the help!

Smoothie
03-12-2007, 12:58 PM
Works fine here, the only thing not working: it won't open in a new window even though I have made this setting under "options".

http://www.the-european-football-league.co.uk/forum/showthread.php?t=5759

(I am using FF-Browser)

Thx for the help!Opens in a new window for me.

Tralala
03-12-2007, 03:00 PM
Works fine here, the only thing not working: it won't open in a new window even though I have made this setting under "options".

http://www.the-european-football-league.co.uk/forum/showthread.php?t=5759

(I am using FF-Browser)

Thx for the help!

Opens in a new window for me.

Opens in a new window for me, too. I suspect Bonee70 has a Firefox setting or extension that is altering the behavior somehow.

I also note he's running an older version of the hack. I know this because the yellow label at the top is blank in Safari, a bug that was fixed in the most recent versions.

Bonee70
03-12-2007, 04:14 PM
OK, thx Ill try on... must be a FF setting then.

As I have dl the hack today I doubt my version is an older version, or?

Spleasure
03-12-2007, 08:30 PM
Here is a link,

http://www.televizia.net/vb/showthread.php?t=12703


Thank you,

Your translation of ncode_imageresizer_warning_filesize contains multiple lines, which causes a Javascript error. Please fix that and see if it works.

OK, thx Ill try on... must be a FF setting then.

As I have dl the hack today I doubt my version is an older version, or?

I think you downloaded the version for vB 3.5.4. You definately have an old version installed.

efil
03-12-2007, 08:56 PM
Thank you!:)

It's working.

Spleasure
03-12-2007, 08:59 PM
The next version will contain a fix, so new lines as well as accents work.

By the way: please vote for the mod of the month, as thanks to you, I'm nominated:
https://vborg.vbsupport.ru/forumdisplay.php?f=203

efil
03-12-2007, 09:06 PM
I did , thanks!

Tralala
03-12-2007, 09:09 PM
Voted!

efil
03-12-2007, 09:20 PM
Still have a Javascript error in cmps page.
http://www.televizia.net

Spleasure
03-12-2007, 09:29 PM
Still have a Javascript error in cmps page.
http://www.televizia.net
That's an imcompatibility with vBAdvanced. I will try to look into that soon, I don't have a quick fix, except for creating a folder clientscript in the root and puttin ncode_imageresizer.js in there (so you have it at /clientscript and /vb/clientscript)

efil
03-12-2007, 09:34 PM
Yes, It did it.

Great mod!

Thanks.

bela-meaad
03-15-2007, 01:28 AM
How that can work on vBadvanced news page?

Any one?

Triality
03-15-2007, 03:24 AM
this hack only works on my default skin. any way to apply it to all skins?

testebr
03-15-2007, 11:33 AM
I am just posting to reinforce... I also have the same problem when using a translation with accentuated words (Brazilian portuguese).

We are awaiting with anxiety for the updating to correct this problem.

darkman
03-19-2007, 04:13 AM
Thanks! Works great :)

Tom_S
03-19-2007, 10:43 PM
Mine isn't working to resize the signature images. I didn't have it set until after I saw a member with an image far larger than I want used but shouldn't it have resized it? Or is that only going to work for new images applied to signatures?

Spleasure
03-20-2007, 07:40 AM
It should work with old posts as well. Do you have a link to the thread which displays the error?

Tom_S
03-21-2007, 07:12 PM
I have no error...It just isn't resizing the image in the signature file. That is okay...right now I am having a huge issue with attaching/uploading files so until I get that dilemma out of the way I will have to put this one on hold.

To be continued..... ;)

Fungsten
03-21-2007, 08:49 PM
I'm using it on my test forum for now.

dbirosel
03-21-2007, 09:45 PM
This mod adds a lot of queries, is there a way to decrease that?

Spleasure
03-21-2007, 10:08 PM
This mod adds a lot of queries, is there a way to decrease that?
What kind of queries? Database queries? This mod doesn't add any database query, it just adds some fields which are then retrieved by the normal vBulletin queries.

PassLab.net
03-21-2007, 11:53 PM
great, thanks !

Installed...

bchertov
03-22-2007, 05:17 PM
I love this Mod! Thanks!

And the inevitable "sure would be nice if"...

... if it would process images inserted via the [ATTACH] bbcode. From what I can tell the regular express that processes the <img> tag is missing them because of enteries in the alt phrase.

Thanks!

Spleasure
03-22-2007, 06:59 PM
I love this Mod! Thanks!

And the inevitable "sure would be nice if"...

... if it would process images inserted via the [ATTACH] bbcode. From what I can tell the regular express that processes the <img> tag is missing them because of enteries in the alt phrase.

Thanks!
You can have vBulletin resize those images serverside I believe, or is that something you don't want?

bchertov
03-22-2007, 07:02 PM
You can have vBulletin resize those images serverside I believe, or is that something you don't want?Vbulletin will resize any image down to the thumbnail size. What I'd like to have the full images displayed subject to your plugin

amnesia623
03-23-2007, 02:45 AM
I kept getting undefined javascript errors with this plugin

bela-meaad
03-23-2007, 07:53 AM
That's an imcompatibility with vBAdvanced. I will try to look into that soon, I don't have a quick fix, except for creating a folder clientscript in the root and puttin ncode_imageresizer.js in there (so you have it at /clientscript and /vb/clientscript)

but if the forum & vBadvanced on the same site root (forum.php,index.php)
can that works?

honestdave
03-24-2007, 09:01 AM
i would love to pay somebody to help me improve the resizer. is there anyway to simply put a small little magnifying glass over the top right corner of the image...

https://vborg.vbsupport.ru/

and then when somebody clicked on the image it would get bigger. the big yellow bar is a bit frustrating sometimes

Tralala
03-24-2007, 02:12 PM
i would love to pay somebody to help me improve the resizer. is there anyway to simply put a small little magnifying glass over the top right corner of the image...

http://img100.imageshack.us/img100/2772/searchbuttonny7.gif

and then when somebody clicked on the image it would get bigger. the big yellow bar is a bit frustrating sometimes

That's a great suggestion... the yellow bar, to some people, implies "error." Would love to see a different display (like the magnifying glass you've attached) as an option.

honestdave
03-24-2007, 04:25 PM
hey thanks tralala!

yea. the yellow bar doesn't work well at all, especially if you have a lot of images. here is a better idea

http://img236.imageshack.us/img236/5332/zoom1cy8.jpg

odie3
03-25-2007, 07:49 PM
Thanks for a great MOD!

ArAb4NoKiA
03-26-2007, 04:32 AM
Great Mod

but it's not working very well

some times it work and times it doesn't why ?

TheMilkCarton
03-26-2007, 05:38 AM
I'm having a few problems.. No matter what option I select, the image always resizes in the same window. I would like it to open in a new window, but it's just not happening.

Nvm.. Guess it's an issue with Firefox.

And WOW is it slow in IE7. I tried out 3 images in a row, all pretty small, and IE7 is having a hard time scrolling.

Spleasure
03-27-2007, 07:37 PM
Great Mod

but it's not working very well

some times it work and times it doesn't why ?

Do you have a thread which shows this behavior?

I'm having a few problems.. No matter what option I select, the image always resizes in the same window. I would like it to open in a new window, but it's just not happening.

Nvm.. Guess it's an issue with Firefox.

And WOW is it slow in IE7. I tried out 3 images in a row, all pretty small, and IE7 is having a hard time scrolling.

Do you have a thread which shows this behavior?

By the way: the ideas for the magnifying glass are great, but will not be part of 1.0.

ArAb4NoKiA
03-30-2007, 12:12 PM
Hi,

yes i have but it's not english it's Arabic :(

Fred.
03-30-2007, 03:52 PM
The image resize works in on the forum, but when i post a replay (newreply.php) the image is not resized?

I use the lastest version.

rknight111
03-31-2007, 01:55 PM
Doesnt seem to work with mine here is somthing that shows up. How would I do this. Also my site has is quite modded does someone have a site where I can see this hack in action..
RON

Spleasure
03-31-2007, 02:07 PM
The image resize works in on the forum, but when i post a replay (newreply.php) the image is not resized?

I use the lastest version.
Do you have a link to the thread where that happens?
Hi,

yes i have but it's not english it's Arabic :(
If I'm able to select the english language that's no problem
Doesnt seem to work with mine here is somthing that shows up. How would I do this. Also my site has is quite modded does someone have a site where I can see this hack in action..
RON
What is the URL of your forum?
This is an example: http://forum.xboxworld.nl/showthread.php?t=92538

rknight111
03-31-2007, 02:12 PM
My site is http://www.snowandmud.com

RON

Fred.
03-31-2007, 02:27 PM
Do you have a link to the thread where that happens?


Yes

http://www.reisforum.info/chit-chat/1685-testje.html

you can try to replay

Spleasure
03-31-2007, 03:50 PM
Yes

http://www.reisforum.info/chit-chat/1685-testje.html

you can try to replay

User : test
pw : test
You are using an old version, please upgrade

Spleasure
03-31-2007, 03:51 PM
My site is http://www.snowandmud.com

RON
I get error messages like Warning: Unknown(/home/snowandm/public_html/forum/includes/vb_ad_management/cache_templates.php): failed to open stream: No such file or directory in /global.php(341) : eval()'d code on line 75

Warning: Unknown(/home/snowandm/public_html/forum/includes/vb_ad_management/cache_templates.php): failed to open stream: No such file or directory in /global.php(341) : eval()'d code on line 75

Warning: (null)() [function.include]: Failed opening '/home/snowandm/public_html/forum/includes/vb_ad_management/cache_templates.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /global.php(341) : eval()'d code on line 75 at that forum. It would be wise to fix that.

Can you give a link to a page with a large image?

testebr
03-31-2007, 08:06 PM
when will you correct the mistake with the accentuated characters?

Fred.
03-31-2007, 09:41 PM
You are using an old version, please upgrade


I use Version 1.0 RC 4 that's the lastest right?

Problem solved

Fred.
03-31-2007, 09:47 PM
I had a problem with upgrading... removed and installed again and now it works great :D

Thanks :up:

rknight111
03-31-2007, 11:09 PM
Here is my info, and I fixed the other error, I upgraded and had trouble with one of the mods.

Here is an area that the pic is much bigger than the site.

http://www.snowandmud.com/forum/showthread.php?t=992

If you need access to view as the site only lets you on for a limited time

User: coder
Pass: coder

Will this software work with all the images or just images from the time the mod was installed.

Thanks,
RON

Spleasure
04-01-2007, 07:03 AM
Here is my info, and I fixed the other error, I upgraded and had trouble with one of the mods.

Here is an area that the pic is much bigger than the site.

http://www.snowandmud.com/forum/showthread.php?t=992

If you need access to view as the site only lets you on for a limited time

User: coder
Pass: coder

Will this software work with all the images or just images from the time the mod was installed.

Thanks,
RON
images from attachments are not resized (yet). I believe that vBulletin can resize them by itself, please look into the options. And while you're at it, change store css as files to yes, your visitors will appreciate it :) (make clientscript/vbulletin_css writable first)

rknight111
04-01-2007, 01:55 PM
And while you're at it, change store css as files to yes, your visitors will appreciate it (make clientscript/vbulletin_css writable first)


Where do I go to change store css to yes

I made vbulletin_css to 777

RON

Spleasure
04-01-2007, 02:00 PM
Where do I go to change store css to yes

I made vbulletin_css to 777

RON
Options -> Style & Language settings -> Store CSS Stylesheets as Files? -> Yes

rknight111
04-01-2007, 02:19 PM
I was just reviewing that in the manual. Now if I say yes to that, my board will not have any glitches it will work on just like before with an improvement. And will your mod work as well. I dont know enough about this and dont want to crash the board.

RON

maaref
04-01-2007, 02:25 PM
excellent hack and useful
thank you

Tralala
04-01-2007, 02:48 PM
I was just reviewing that in the manual. Now if I say yes to that, my board will not have any glitches it will work on just like before with an improvement. And will your mod work as well. I dont know enough about this and dont want to crash the board.

RON

FWIW, I had this option off, and yet Image Resizer was working for me. So I don't believe it to be a requirement. I think it's just considered a good idea "in general."

That said, I too just turned it on, since Spleasure recommended it. So far, my forum seems fine. At least, it hasn't brought it to a grinding halt. :p

Spleasure
04-01-2007, 03:20 PM
I was just reviewing that in the manual. Now if I say yes to that, my board will not have any glitches it will work on just like before with an improvement. And will your mod work as well. I dont know enough about this and dont want to crash the board.

RON
Yes, it will work as before, no it will not influence the functioning of the mod

ymy
04-02-2007, 02:42 AM
Hi

I was install old version in my forum. It was working ok.

I am upgraded to new version but, not work
I removed and installed again but, still not work

VB 3.6.5
Admin CP all options is ok
User CP all options apparent there

Any help please?

Thanks

.

Zia
04-02-2007, 04:24 AM
:)
what about all browsers competeablity?

I.Expolrer 6/7 , Opera 9.*/FireFox ..
its working for all browsers?

Tralala
04-02-2007, 04:51 AM
:)
what about all browsers competeablity?

I.Expolrer 6/7 , Opera 9.*/FireFox ..
its working for all browsers?


On my site it is... no complaints... also working on Safari (Mac.) Haven't heard from any Opera users though.

Spleasure
04-02-2007, 06:21 AM
Hi

I was install old version in my forum. It was working ok.

I am upgraded to new version but, not work
I removed and installed again but, still not work

VB 3.6.5
Admin CP all options is ok
User CP all options apparent there

Any help please?

Thanks

.
Give a URL of a thread with a picture that should be resized

ymy
04-02-2007, 08:54 AM
:) Thanks, Spleasure

It`s work ok now . I think there is mistake when i try executed that query myself

i removed the mod and repair , optimize Database tables

reinstall again and now it works great

see Attach file

thanks :up:

Tralala
04-02-2007, 02:25 PM
How'd you get the filesize to appear in the titlebar?

https://vborg.vbsupport.ru/external/2007/04/26.jpg

On my forum (also running Image Resizer 1.0rc4) all I see are the dimensions.

testebr
04-02-2007, 05:04 PM
when will you correct the mistake with the accentuated characters?

ymy
04-03-2007, 01:03 AM
How'd you get the filesize to appear in the titlebar?
On my forum (also running Image Resizer 1.0rc4) all I see are the dimensions.




I don’t know but I think from the language file for old mod.

.

Spleasure
04-03-2007, 05:52 PM
How'd you get the filesize to appear in the titlebar?

https://vborg.vbsupport.ru/external/2007/04/26.jpg

On my forum (also running Image Resizer 1.0rc4) all I see are the dimensions.
From the readme: Filesize is only supported on Internet Explorer, other browsers don't reveal this information through javascript.

Tralala
04-03-2007, 06:46 PM
From the readme:

Gotcha, and thanks! How can we change replace the word "weights" with the phrase "with a filesize of?"

haytham
04-03-2007, 09:15 PM
Does this work on signatures?

bchertov
04-04-2007, 04:31 PM
Hi,

Great Pluggin! Works great for online display! However, I have modified my site so it sends out HTML email notification. When parsing the message from bbcode to HTML for emails I want to turn off the resizer because the javascript is not supported and can sometime cause problems.

I am currently instantiating the parser and then trying to turn off the resizer like so:

$postbit->bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$postbit->ncode_imageresizer_do = false;
...
$pagetext_cache["$touser[languageid]"] = $postbit->bbcode_parser->parse($pagetext_orig, $foruminfo['forumid']);


However this is not defeating the resizer, the onload code is still being added. Can you help me?

Thanks!

rknight111
04-05-2007, 01:07 AM
I have installed and still cant get it to work, and I did turn the CSS store on and no problems, now I want to fiqure out how to get this working.

RON

AllenMead
04-07-2007, 08:37 AM
Fantastic add on. I have RC 2 installed on another site, not updated to RC4 yet. However, I have just installed RC4 onto a new site and my index.php page is showing an error on the status bar.

Line: 333
Char: 1
Error: 'NcodeImageResizer' is undefined
Code: 0
URL: http://www.worldrallyforum.com/index.php

I am using CMPS ver: 2.2.1 (vb3.6) and vBulletin 3.6.5.

It doesn't show the error anywhere else on the forum. any help would be much appreciated.

Thanks

menababu
04-08-2007, 04:31 AM
I dont see any option in admin cp-even tho it is working good v3.6.5.it resized by it self and when click it gets original size

check on www.desividesimasti.net

Thanks

morrow
04-09-2007, 03:27 PM
I installed this today and recieve the same error...

I'm running the same as you (CMPS 2.2.1 / vB 3.6.1)

Line:303 = NcodeImageResizer.MODE = 'enlarge';

Fantastic add on. I have RC 2 installed on another site, not updated to RC4 yet. However, I have just installed RC4 onto a new site and my index.php page is showing an error on the status bar.

Line: 333
Char: 1
Error: 'NcodeImageResizer' is undefined
Code: 0
URL: http://www.worldrallyforum.com/index.php

I am using CMPS ver: 2.2.1 (vb3.6) and vBulletin 3.6.5.

It doesn't show the error anywhere else on the forum. any help would be much appreciated.

Thanks

bchertov
04-12-2007, 12:13 AM
Would you please add a way that the pluggin can be turned off, particularly the ncode_imageresizer_replace function, programatically?

I want to be able to parse a given piece of a post and not have the replace being made (because its being sent in an HTML email). Thanks!

jahshaka
04-12-2007, 07:34 AM
i would love to be able to control the size of the resized images on a per forum basis - some of my forums use the regular postbit and some use the legacy postbit...

as7aab
04-12-2007, 07:39 AM
just upload the ncode_imageresizer.js to the forum folder "webite/forum"
upload product-ncode_imageresizer.xml from admincp...

if its that simple why doest it work for me?
i can see the settings in the admincp and in the usercp
but it doesnt resize any images

DJ XtAzY
04-14-2007, 08:37 AM
I noticed this hack kinda cause the board to freeze/pause for a few seconds. Maybe it's because it's trying to anaylze all da images. If i disabled the product, the site loads smoothly. Is there a way to optimize the code a bit better so it doesnt lag?

testebr
04-16-2007, 03:46 AM
when will you correct the mistake with the accentuated characters?

And can you load the .js file only in topic pages in next version?

funkmeister
04-17-2007, 03:14 PM
Have this installed on 3.6.5 and it works perfectly - thanks.

Although I do have one question - how can I remove the "alt" text of "onload" appearing in those images that are within the width dimensions - so for example I have 800 set as max. width and any image below that such as 640 is getting the "alt" text specified as "onload". How to make it just blank?

Here is an example html source - the code looks like it should make it blank, but for some reason it's inserting "onload" for the "alt" text.

<img src="http://www.mydomain/images/image1.jpg (http://www.mydomaint/images/image1.jpg)" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />

See also attached example screenshot.

Any ideas? Thanks in advance.

gg_luna128
04-18-2007, 11:36 AM
Firebug extension for Firefox gaves me a JavaScript error, you might want to check that.

tehPARADOX
04-19-2007, 02:56 PM
Just wanted to say thanks, been using this for awhile. Hoping support for image resize on vBadvance portal come soon.

DJ XtAzY
04-19-2007, 10:50 PM
Here's how we managed to get it working with vbadvanced. Open up modules\news.php. On or around line 214, you should see this block of code:
// Parse bb code if necessary
if ($news['pagetext_html'])
{
$news['message'] = $news['pagetext_html'];
}
else
{
$news['message'] = $bbcode_parser->do_parse($news['pagetext'], $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
} Replace this chunk of code with:
// Parse bb code if necessary
if ($news['pagetext_html'])
{
$news['message'] = $news['pagetext_html'];
}
else
{
$news['message'] = $bbcode_parser->do_parse($news['pagetext'], $mod_options['portal_news_enablehtml'], $news['allowsmilie'], $mod_options['portal_news_enablevbcode'], $mod_options['portal_news_enablevbimage']);
$news['message'] = preg_replace('/<img src="([^"]*)" border="0" alt="" \/>/', '<img src="\\1" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />', $news['message']);
}

Basically, after it's all been parsed, you just run the same preg_replace that this module runs on regular posts. It's pretty straightforward.
That's how u make it vbadvanced compatible guys.. Works on my vbadvanced

Amenadiel
04-20-2007, 03:26 AM
I don't know if this would be the right place to ask for it, but since ncode has proven proficient with image handling on the fly, I will.

How difficult would it be to implement a restriction which disables or strips out image tags when quoting a message?

It's annoying when an user posts 10 large images and then the next one quotes the entire message just to add a one line comment.

gg_luna128
04-20-2007, 07:24 PM
Before I forget again, this plugin does not validate XHTML 1.0 Transitional. That's another thing that should be fixed.

Tralala
04-21-2007, 02:39 AM
I don't know if this would be the right place to ask for it, but since ncode has proven proficient with image handling on the fly, I will.

How difficult would it be to implement a restriction which disables or strips out image tags when quoting a message?

It's annoying when an user posts 10 large images and then the next one quotes the entire message just to add a one line comment.
Here's a hack that converts quoted IMG tags to URL tags instead:
https://vborg.vbsupport.ru/showthread.php?t=107022

It's even user-configurable with a UserCP pref.

testebr
04-22-2007, 07:33 AM
when will you correct the mistake with the accentuated characters?

And can you load the .js file only in topic pages in next version?

please dont ignore me

Spleasure
04-24-2007, 01:14 PM
I have finally released version 1.0 of the Image Resizer.
Changes are:
- added code to make phrases javascript safe, multiline phrases and phrases with accents
should work now.
- added compatibility with vBAdvanced
- improved installation procedure

I hope it works well for you.

Jorrit

PS: Donations are welcome: paypal / moneybookers: jorrit@ncode.nl

Mrdby
04-24-2007, 01:16 PM
so download all the files again?