PDA

View Full Version : Add-On Releases - Image Resizer


Pages : [1] 2

Jase2
18 Apr 2008, 16:08
Modfication Unsupported: This modfication is now unsupported, due to lack of time to work on it. However, TCattitude (http://www.vbulletin.org/forum/member.php?u=66930) has continued development and added many cool NEW features. You can see the updated version here: http://www.vbulletin.org/forum/showthread.php?t=184571&page=10&highlight=Image+Resizer

Image resizer for vBulletin version 3.6 and 3.7.
version: 1.0.2

Please remember to click Mark as Installed if you use this modification. Support questions from members who have not marked this as installed will be considered low priority.

What is this?
This resizes images in post that are bigger than the set dimensions in your AdminCP options. It also adds an information bar (which is not displayed when the image isn't resized) giving information about the original dimensions and filesize. Filesize is only supported on Internet Explorer, other browsers don't reveal this information through javascript.

Configuration
Please read the included readme.html

A big thanks to Spleasure, who actually created this product. He has given me the rights to the code, so I will be keeping it going for future versions, fixing any bugs, and adding new features.

Thanks, and Enjoy.

Please report bugs, or feature requests into this thread.

Thank you.

Subah
18 Apr 2008, 16:22
Cool, Thanks :)

Jase2
18 Apr 2008, 16:33
Make sure you click "Install" :)

Just updated the zip file, slight problem in the product. All fixed now.

Will take some screenshots.

projectego
18 Apr 2008, 16:40
/me clicks install :D

Jase2
18 Apr 2008, 16:46
Thanks! Anyone who wishes to help, then please post a translation in your language. Currently only have netherlands. :)

shadowevil
18 Apr 2008, 16:47
shadowevil click install :D

codershark
18 Apr 2008, 16:52
Screenshot or Demo ?

Jase2
18 Apr 2008, 16:56
You can see a demo here: http://www.techsupportteam.org/forum/15625-post55.html

I'll get some screenshots up soon. :)

BraindGee
18 Apr 2008, 16:58
Classic! - i just searched for it and there it was, posted a few minutes before!!
thank you very much, exactly what i needed!

Allan
18 Apr 2008, 17:13
You can see a demo here: http://www.techsupportteam.org/forum/15625-post55.html

I'll get some screenshots up soon. :)
Interesting your hack :)

Please, add link demo to the first post ;)

It's possible for you to add a screen to ACP part ?

tmiland
18 Apr 2008, 17:20
Sorry to sound like an ass, but the original mod (http://www.vbulletin.org/forum/showthread.php?t=118048) does the job much better than this.

My 2 cents :)

*edit*
I just hate when you have to open a picture in a new window!
Wich in the original mod you dont...

Jase2
18 Apr 2008, 17:31
Sorry to sound like an ass, but the original mod (http://www.vbulletin.org/forum/showthread.php?t=118048) does the job much better than this.

My 2 cents :)

*edit*
I just hate when you have to open a picture in a new window!
Wich in the original mod you dont...

You don't. You have 4 options:

Keep original size
Enlarge in same window
Open in same window
Open in new window .... ;)

I'm going to clean the usercp options up a little, and put them in a rounded box, too. Any other features, please let me know. :)

testebr
18 Apr 2008, 18:34
Nice job!

Please keep the release info on each update.

Thanks.

Tralala
18 Apr 2008, 18:40
Please keep the release info on each update.

+1

Other than code ownership, what changed from version 1.0.1 to 1.0.2? Just curious.

Jase2
18 Apr 2008, 18:55
+1

Other than code ownership, what changed from version 1.0.1 to 1.0.2? Just curious.

Nothing much. I've cleaned up a little of the code, that's about it. However, if a bug pops up, I'm here to support it, as well as add any requested new features. :)

I was speaking to spleasure, and he simply doesn't have the time to continue support for this, hence the reason he gave me permission.

DubaiHost
18 Apr 2008, 19:02
Nic Mod.

But can i ask you what is the new there .. ?
it's sharing exactly the same xml & js file .. with the previous Mod.
http://www.vbulletin.org/forum/showthread.php?t=118048

thanks anyway ..

FleaBag
18 Apr 2008, 19:02
I used the old one, but have now switched to this one. It's very nice and was just what I needed!

Shane
18 Apr 2008, 19:03
I'll install soon. Very ++ :)

furst
18 Apr 2008, 19:05
I've been playing with Spleasure's hack for like an hour and all of a sudden I see an update for it :)

Anyways, I'm trying to make it so that quoted images are resized even further. GenMay (http://www.genmay.com/showpost.php?p=22566527&postcount=31) forums do this using Spleasure's hack. Any idea how I could implement it?

Jase2
18 Apr 2008, 19:06
Nic Mod.

But can i ask you what is the new there .. ?
it's sharing exactly the same xml & js file .. with the previous Mod.
http://www.vbulletin.org/forum/showthread.php?t=118048

thanks anyway ..

As I said, I cleaned up a little of the code. You can still use the old one, it's fine by me. It's just that this will be supported.

Jase2
18 Apr 2008, 19:07
I've been playing with Spleasure's hack for like an hour and all of a sudden I see an update for it :)

Anyways, I'm trying to make it so that quoted images are resized even further. GenMay (http://www.genmay.com/showpost.php?p=22566527&postcount=31) forums do this using Spleasure's hack. Any idea how I could implement it?

I agree. That should be included. Will implement that into the next release. :)

furst
18 Apr 2008, 19:10
Nice, I'll cross my fingers for it to come out sometime soon.

I may as well add some stuff to the wishlist:
blogs and albums should have their own resize settings in acp
additional setting for customizing the size of quoted images
highslide (http://www.vbulletin.org/forum/showthread.php?t=172024) or lytebox (http://www.vbulletin.org/forum/showthread.php?t=171985) or lightbox supportThere was some other stuff I was thinking about but cannot recall. These are the two main ones for me.

Jase2
18 Apr 2008, 19:13
Nice, I'll cross my fingers for it to come out sometime soon.

I may as well add some stuff to the wishlist:

blogs and albums should have their own resize settings in acp
additional setting for customizing the size of quoted imagesThere was some other stuff I was thinking about but cannot recall. These are the two main ones for me.

Unfortunately, I don't have the vBblog addon to test it with that. Someone else is free too do it, however. :)

I can't understand why people would want it for albums, since you can already set the preferred dimensions ;)

If there are more, please let me know. :)

FreedomDream
18 Apr 2008, 19:15
Mini Thanks
I will translate it to Arabic Language
Installed

furst
18 Apr 2008, 19:16
Unfortunately, I don't have the vBblog addon to test it with that. Someone else is free too do it, however. :)

I can't understand why people would want it for albums, since you can already set the preferred dimensions ;)

If there are more, please let me know. :)
The reason I want it for my albums is because I want users to be able to upload any size of image without having it distorted. This is good for things like wallpapers that are usually huge in terms of dimensions. I think this hack would be good for the albums because it would make the large images (like wallpapers) easily viewable (ie they won't break the pages), while at the same time retaining the integrity of the original uploaded image.

jw00dy
18 Apr 2008, 19:18
What kind of album are you using? Most all albums will do that automatically? Mine do.

That includes Photopost and Photoplog.

Jase2
18 Apr 2008, 19:19
The reason I want it for my albums is because I want users to be able to upload any size of image without having it distorted. This is good for things like wallpapers that are usually huge in terms of dimensions. I think this hack would be good for the albums because it would make the large images (like wallpapers) easily viewable (ie they won't break the pages), while at the same time retaining the integrity of the original uploaded image.

Well I can certainly get it to work with albums for the next version. :)

furst
18 Apr 2008, 19:21
What kind of album are you using? Most all albums will do that automatically? Mine do.

That includes Photopost and Photoplog.

I'm talking about the album feature that's part of vb3.7

Well I can certainly get it to work with albums for the next version. :)

Nice, looking forward to it :)

DubaiHost
18 Apr 2008, 19:28
As I said, I cleaned up a little of the code. You can still use the old one, it's fine by me. It's just that this will be supported.

now i got it .. :)
It's great really .. and thanks for your support ..
it's Installed By me :D

waiting for new releases ,

and yeah it's great to have a control in the Blog ..
and let's say it will be much more that perfect if the options in acp shown in users control panel. so each user can choose the way he prefered to open the pictures through.


Thanks again ..

denman75
18 Apr 2008, 19:32
ok tnx for letting us know
if u really want that we bow down
make it work in the vblog ,that' would be great
anyway tnx for helping us out with future problems ;)

*installed and running

Jase2
18 Apr 2008, 19:36
and let's say it will be much more that perfect if the options in acp shown in users control panel. so each user can choose the way he prefered to open the pictures through.


That is actually already implemented. However, I want to neaten it up and put it into a box -- like all the other options.

make it work in the vblog ,that' would be great

If I had the vBlog addon, I'd certainly add capability. However, I do not have it installed at my forums, therefore I cannot add it. Unless, someone has a test board with it on, where I can test? :)

DubaiHost
18 Apr 2008, 19:45
That is actually already implemented. However, I want to neaten it up and put it into a box -- like all the other options.


If I had the vBlog addon, I'd certainly add capability. However, I do not have it installed at my forums, therefore I cannot add it. Unless, someone has a test board with it on, where I can test? :)

I have one , but how much time you need ..?
it's a new forum , nothing in it for now , but i need it soon ..
everything is already installed in it .. ( the vbulletin & vbblog )
just can i know how long you have to use it as a test forum .. ?

Jase2
18 Apr 2008, 20:00
I have one , but how much time you need ..?
it's a new forum , nothing in it for now , but i need it soon ..
everything is already installed in it .. ( the vbulletin & vbblog )
just can i know how long you have to use it as a test forum .. ?

It really depends. I can't start work now, since I'm working on HelpCenter. I can probably start tomorrow, though. How long is soon?

DubaiHost
18 Apr 2008, 20:11
It really depends. I can't start work now, since I'm working on HelpCenter. I can probably start tomorrow, though. How long is soon?

hmmm .. it's ok ..
soon is after two or three days ..

can you do it before that time .. ?

Jase2
18 Apr 2008, 20:27
It depends. I can certainly try. :)

macc
18 Apr 2008, 20:51
Just installed... nice and thanks!


regards

macc

tmiland
18 Apr 2008, 20:54
You don't. You have 4 options:

Keep original size
Enlarge in same window
Open in same window
Open in new window .... ;)

I'm going to clean the usercp options up a little, and put them in a rounded box, too. Any other features, please let me know. :)

Ah! Okey, so this is just the same, only supported? :D
Then i'm gonna switch to this one. :) Sorry for beeing an asshat lol!

Okey, then before i make the switch, i have a few questions.

- Does it use the same phrases as the previous mod, or do i have to translate this all over again?
- Will it be possible to add an option to resize the pictures with f.eks lightbox, lytebox or highslide (if thats the right name?)
- Is it possible to change the yellow "bar" to something that fits the theme, like the forum category gradient? I think that would be very nice ;)

KURTZ
18 Apr 2008, 20:54
Jason obviously nominated for MOTM ;)

however i've a question: i've installed the old version onto my 3.7.x RC3 what i should do? uninstall the older version before the installation of this?

Jase2
18 Apr 2008, 21:02
Ah! Okey, so this is just the same, only supported? :D
Then i'm gonna switch to this one. :) Sorry for beeing an asshat lol!

Okey, then before i make the switch, i have a few questions.

- Does it use the same phrases as the previous mod, or do i have to translate this all over again?
- Will it be possible to add an option to resize the pictures with f.eks lightbox, lytebox or highslide (if thats the right name?)
- Is it possible to change the yellow "bar" to something that fits the theme, like the forum category gradient? I think that would be very nice ;)

If you read the original mod thread, spleasure has linked to this one ;)

Yes, it uses the same phrases. I'm working on new version, which will add capability for the albums and maybe the vB Blog add-on.

Will it be possible to add an option to resize the pictures with f.eks lightbox, lytebox or highslide (if thats the right name?)

That is a completely different product ;)

Is it possible to change the yellow "bar" to something that fits the theme, like the forum category gradient? I think that would be very nice ;)

Yes -- but you would need to do that yourself, since everyone has a different theme.

Jase2
18 Apr 2008, 21:03
Jason obviously nominated for MOTM ;)

however i've a question: i've installed the old version onto my 3.7.x RC3 what i should do? uninstall the older version before the installation of this?

Thanks, much appreciated.

It would be best to uninstall the older one, then install this one. The overwrite should work, but for better results, I suggest you uninstall first. :)

KURTZ
18 Apr 2008, 21:09
OK, just installed ... works like a charm ... :D

anyway Jason you don't have fixed the profile 'issue' ... check the attachment ...

Jase2
18 Apr 2008, 21:14
What's the problem? I going to be putting it in a box in the next release ;)

KURTZ
18 Apr 2008, 21:15
What's the problem? I going to be putting it in a box in the next release ;)

exactly! :D thx Jason ;)

tmiland
18 Apr 2008, 21:27
If you read the original mod thread, spleasure has linked to this one ;) Yup, see that now... Maybe link back to his mod? :)

Yes, it uses the same phrases. I'm working on new version, which will add capability for the albums and maybe the vB Blog add-on.
Thats great... vB blog is the most important if you ask me, dont really see the benefit of it resizing the album pics :rolleyes:

That is a completely different product ;)
Yes, but why not make it an option to use them in this mod?


Yes -- but you would need to do that yourself, since everyone has a different theme. Okey, so it isnt possible to make it an option for the default style? Then, for those who uses custom styles, would have to do that themselfes.

I am just suggesting things that i believe would make this mod even better. :)

Jase2
18 Apr 2008, 21:30
No, not really. Since most people use custom styles, and the places ect. could be in a complete different place. I think it's fine the way it is. :)

nfn
18 Apr 2008, 22:17
Hi,

You should upgrade the version in the xml file to 1.0.2.
You should also change the minversion to 3.6.
Nice mod:)

H_A_R_R_Y
18 Apr 2008, 22:35
thanks Man

Jase2
18 Apr 2008, 22:58
Hi,

You should upgrade the version in the xml file to 1.0.2.
You should also change the minversion to 3.6.
Nice mod:)

I've just updated the product file, so if you installed this earlier, download the new package, then just re-import the product, remembering to select yes for overwrite.

I've also just quickly cleaned the usercp options up a little. I plan cleaning all the code up tomorrow, as some of it is outdated.

aggiefan
18 Apr 2008, 23:09
this is one of my fav mods from 3.6... glad to see it will be getting more support.

i do have one question (the one thing that bugged me about the old version) is there was no way to have it load a smaller dynamically created image for the preview. using one of the graphics libraries vbulletin uses to automatically resize the picture and put that in the small version.

because if this one works like the old one (assuming it does) that one would just download the whole image and then resize it to fit better in the page. but it would still have to download the whole image first and quite a few images posted on our site are large and quite big file size wise). it would be one of those little things to make pages load even faster.

Jase2
18 Apr 2008, 23:14
aggiefan, unfortunately it does not do server side resizing of images (ajax). Everything is done clientside. Therefore, the image has to be downloaded completely before the script can resize them. I may however, in a future version, do server side resizing of images. :)

RadioErewan
19 Apr 2008, 00:08
How to create translation XML? Have translated (at last frontpage messages) of version 1.0 to Polish.

Jase2
19 Apr 2008, 00:17
Take a look at the included netherlands product. It is only the phrases that need updating to 'polish' language. :)

RadioErewan
19 Apr 2008, 00:26
Thought, there is any easy way of extracting translation from database. We are new to vB, and everything is new.
Unfortunately I do not speak Dutch, and it will be hard investigation to find translations in database and extract it. :-(

Jase2
19 Apr 2008, 00:33
It's just the phrases that need translating. I'm sure you can do it. Anyway, thanks for the offer. :)

crkgb
19 Apr 2008, 00:36
After trying to change options in the ACP I get the following error
Fatal error: Call to a member function query_write() on a non-object in /home/russianwa/public_html/testvb/includes/adminfunctions_options.php(473) : eval()'d code on line 70

Jase2
19 Apr 2008, 00:39
What option?

Fatal error: Call to a member function query_write() on a non-object in /home/russianwa/public_html/testvb/includes/adminfunctions_options.php(473) : eval()'d code on line 70

You certainly aren't changing an option for this mod ;)

RadioErewan
19 Apr 2008, 00:45
It's just the phrases that need translating. I'm sure you can do it. Anyway, thanks for the offer. :)
OK, just need larger time slice to do it.

Jase2
19 Apr 2008, 00:46
OK, just need larger time slice to do it.

No problems. Take as long as you need. :)

tmiland
19 Apr 2008, 00:58
K, i've just tested this on my local test site, why is it that when you click the image or bar, it opens up in a new window, nomather what? In the previous version/mod it did nothing at all when clicking the image, just when clicking the bar. I really dont want it to open up in a new window! *bah*

I have tried all the different settings, still the same results...

Subah
19 Apr 2008, 02:07
remove it not support 3.6.8 !

Jasem
19 Apr 2008, 02:09
Thank you very much

RadioErewan
19 Apr 2008, 02:29
remove it not support 3.6.8 !
http://forum.olympusclub.pl/showthread.php?t=11401
Is it working here? It is 3.6.8pl2.

And one wish for developer: is it possible to implement layered cropping instead of scaling (as an option)? Something like DPR forum image attachment solution (sample: http://forums.dpreview.com/forums/readflat.asp?forum=1022&thread=27606580 )

Regards

mktrilogy
19 Apr 2008, 09:02
thanks installed.

KURTZ
19 Apr 2008, 11:19
what's the changelog?

Jase2
19 Apr 2008, 11:39
K, i've just tested this on my local test site, why is it that when you click the image or bar, it opens up in a new window, nomather what? In the previous version/mod it did nothing at all when clicking the image, just when clicking the bar. I really dont want it to open up in a new window! *bah*

I have tried all the different settings, still the same results...

Are you changing the options in your ACP?

ACP --> vBulletin Options --> Image Resizer Options --> Default Resize Mode

If it still doesn't work, then you must have User Options enabled, in which case, you will need to either update in your usercp:

UserCP --> Edit Options --> Image Resize

... or, you will need to disable user options in your ACP:

ACP --> vBulletin Options --> Image Resizer Options --> User Options

Jase2
19 Apr 2008, 11:40
remove it not support 3.6.8 !

This does in fact work for vB 3.6.8 ;)

Jase2
19 Apr 2008, 11:52
what's the changelog?

Hi Kurtz, none yet. I'm just starting to update all the code, as some of it is outdated. The only thing I've done thus far, is neaten the userCP options up.

KURTZ
19 Apr 2008, 11:53
just updated, ok some options now are into a box but not all ... :)

Jason i suggest you which maybe is better put all the resizer options into only one box ... :)

edit: thx Jason ;) keep up the great job ;)

Jase2
19 Apr 2008, 12:00
Hi Kurtz,

Yes, I'm updating the code now, and I'll try to put it all into one box. Can be tricky with phrasetypes, you see. :)

owlbill
19 Apr 2008, 13:46
I am running VB 3.6.9 and it will not let me inport the xml file (for 3.7 only blah blah blah).

Do I need to import that new xml or will the one from version 1.0.1 work fine?

KURTZ
19 Apr 2008, 13:49
I am running VB 3.6.9 and it will not let me inport the xml file (for 3.7 only blah blah blah).

Do I need to import that new xml or will the one from version 1.0.1 work fine?

you can edit the .xml file for your version ;)

Jase2
19 Apr 2008, 13:51
Yes, you can put your version in the .xml. Although I thought I set the minversion to 3.6..... Give me a second.

owlbill
19 Apr 2008, 14:00
Ah, ok.

Changed to 3.6 and also changed the xml version to 1.0.2 since it was showing 1.0.1 still.

Thanks.

Jase2
19 Apr 2008, 14:46
After trying to change options in the ACP I get the following error

Ah, this is when you select the "Clear user Options" option. It's because of the changes in the member profile. Will see if I can correct that. Or I may remove it all together.

aggiefan
19 Apr 2008, 16:38
aggiefan, unfortunately it does not do server side resizing of images (ajax). Everything is done clientside. Therefore, the image has to be downloaded completely before the script can resize them. I may however, in a future version, do server side resizing of images. :)

that would be great.... like it said its the one little thing that makes this mod not perfect in every way. its not a huge rush but would be something that would be nice to get fixed.

Andy92
19 Apr 2008, 16:58
Good good. I use this hack on my forum.

:)

But one of the things i hate, is when users on my forum insert an image from imageshack, thats like 1000px +, and the image resizer scaled images down to 800px x 800px, if its a large image, it begins to load, and then once its fully loaded then pops into the resizer box.

But it screws up my page when its loading, especially if its a really large image.

Is there ay chance that you can get it to display the resizer box first, then load in in there?

Jase2
19 Apr 2008, 17:33
Read post #50 (http://www.vbulletin.org/forum/showpost.php?p=1494099&postcount=50)

As I've said in that post, I may work on this in a future version. But, at least it's better than nothing, at the moment.

tmiland
19 Apr 2008, 18:15
Are you changing the options in your ACP?

ACP --> vBulletin Options --> Image Resizer Options --> Default Resize Mode

If it still doesn't work, then you must have User Options enabled, in which case, you will need to either update in your usercp:

UserCP --> Edit Options --> Image Resize

... or, you will need to disable user options in your ACP:

ACP --> vBulletin Options --> Image Resizer Options --> User Options

Regardless of what i do,(yes, i have tried every combinations as described above) as i said i'm still able to click the image, wich then opens the image in a new window.
That is what i dont want it to do. And, the settings is set the same way as in the previous mod. I even removed the previous mod completely...

The previous mod still does the same job, only better. It doesnt open up the image in a new window when i click on it. Did i make myself clear enough now? :o

I figured out how to change the colors though lol! :D

Jase2
19 Apr 2008, 18:20
Then you must be doing something wrong. Because the code for that hasn't changed, and no one else is having that problem. You're fine to keep the old hack, but I can't support it. :)

tmiland
19 Apr 2008, 18:43
What is there to do wrong lol? Well, i'll figure it out...

Another thing, for the blog... I see that the image resizer is included in the header, but doesnt resize the images. Isnt it a quick fix to make it "pick up" the images in the blog aswell?

The main content starts like this: <!-- main content -->

<form action="blog_inlinemod.php" method="post" id="blogform" style="display:block; margin:0px">
Then the message: <!-- message -->
<div id="blog_message_15">title of the entry<br />
<img src="http://i15.photobucket.com/albums/xxxxx/xxxxxxxxx/xxxxxxx.jpg" border="0" alt="" /><br />
</div>
<!-- / message -->

Jase2
19 Apr 2008, 19:32
Give me a blog test it on, and I'll have a working compatibility. ;)

tmiland
19 Apr 2008, 21:11
*yawn* :rolleyes:

Allan
19 Apr 2008, 21:41
Work perfectly on Firefox, no ?

jamyk
19 Apr 2008, 21:43
thanks Man

Jase2
19 Apr 2008, 21:49
Work perfectly on Firefox, no ?

Works on Firefox, yes. :)

testebr
19 Apr 2008, 23:36
Add support to album pics

fourat
19 Apr 2008, 23:44
thank you very much

MarkJW
20 Apr 2008, 02:40
Gah, doesn't work on vBlog. :l

Oh well.

tmiland
20 Apr 2008, 09:04
Okey, i'm trying to figure out how to make it work with the blog, and i did :D
Only thing is, that i cant figure out how to do both forum and blog.
So i guess thats where Jase2 comes in :)

I found out, after a little research, that if i changed this: if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
} to this: if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
}And this part:
$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
if(!empty($parsedtext) && $parsedhasimages) {
$parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
$parsedtext = ncode_imageresizer_replace($parsedtext);
$parsedhasimages = false;
} else {
$this->ncode_imageresizer_do = true;
}
} to this: $this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
if(!empty($parsedtext) && $parsedhasimages) {
$parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
$parsedtext = ncode_imageresizer_replace($parsedtext);
$parsedhasimages = false;
} else {
$this->ncode_imageresizer_do = true;
}
} it was working in the blog, though not in the forum (doh!) so what we need is to include "vb_bbcodeparser_blog" alongside with "vb_bbcodeparser" and voila! :D

Jase2! Could you please? My head hurts lol! :p

John3971
20 Apr 2008, 10:15
It would be nice if you fix it so it can uses the new lightbox vb introduced in 3.7

tmiland
20 Apr 2008, 12:04
Will it be possible to add an option to resize the pictures with f.eks lightbox, lytebox or highslide (if thats the right name?)

That is a completely different product ;)

It would be nice if you fix it so it can uses the new lightbox vb introduced in 3.7

I guess not :rolleyes:

Jase2
20 Apr 2008, 13:04
John and tmiland, I'm not entirely sure what you mean, and I am not familiar with lightbox, lytebox hack /mod ect.

Jase2
20 Apr 2008, 13:09
Okey, i'm trying to figure out how to make it work with the blog, and i did :D
Only thing is, that i cant figure out how to do both forum and blog.
So i guess thats where Jase2 comes in :)

I found out, after a little research, that if i changed this: if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
} to this: if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
}And this part:
$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
if(!empty($parsedtext) && $parsedhasimages) {
$parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
$parsedtext = ncode_imageresizer_replace($parsedtext);
$parsedhasimages = false;
} else {
$this->ncode_imageresizer_do = true;
}
} to this: $this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
if(!empty($parsedtext) && $parsedhasimages) {
$parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
$parsedtext = ncode_imageresizer_replace($parsedtext);
$parsedhasimages = false;
} else {
$this->ncode_imageresizer_do = true;
}
} it was working in the blog, though not in the forum (doh!) so what we need is to include "vb_bbcodeparser_blog" alongside with "vb_bbcodeparser" and voila! :D

Jase2! Could you please? My head hurts lol! :p


Try:

Find:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
}

Change to:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
}

Let me know how that goes. I think I've grasped it, but need to see if this will work, first.

tmiland
20 Apr 2008, 13:30
Try:

Find:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
} Change to:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
} Let me know how that goes. I think I've grasped it, but need to see if this will work, first.

Afternoon :)

I already tried that one, and it didnt make any difference. Also tried a bunch of combinations without success. Been staring at that line of code since 05.30 in the morning lol! :D

Maybe it needs to be split up, or defined in 2 different "ways"? Hard to explain :p

*edit*
John and tmiland, I'm not entirely sure what you mean, and I am not familiar with lightbox, lytebox hack /mod ect.
Her's a highslide mod : http://www.vbulletin.org/forum/showthread.php?t=172024
And lytebox : http://www.vbulletin.org/forum/showthread.php?t=171985&highlight=lightbox
:)

Jase2
20 Apr 2008, 13:57
So, you want to integrate one of them hacks into this, as a setting, so that it resizes images in the lightbox?

I will have to look at the code, I'm currently coding another hack.

John3971
20 Apr 2008, 14:07
i want the lightbox but it should use the one that is in the original vb 3.7

tmiland
20 Apr 2008, 14:10
So, you want to integrate one of them hacks into this, as a setting, so that it resizes images in the lightbox?

I will have to look at the code, I'm currently coding another hack.

Right, thats what "we" ment... So that you have an option to choose between 1. standard resize 2. lytebox 3. highslide etc etc... But, that's no rush, i rather have this working with the vb blog :)

furst
20 Apr 2008, 17:28
i want the lightbox but it should use the one that is in the original vb 3.7
I think the highslide mod is nicer. It lets you sort through the images with a next and previous buttons, unlike lightbox.

John3971
20 Apr 2008, 17:31
well i still think its better to use the lightbox that jelsoft added in vb 3.7

tmiland
20 Apr 2008, 20:03
Another thing, make it an option when quoting a post to just show image link instead of the full image, that would save som bandwidth over time. :)

Andy92
20 Apr 2008, 23:43
Read post #50 (http://www.vbulletin.org/forum/showpost.php?p=1494099&postcount=50)

As I've said in that post, I may work on this in a future version. But, at least it's better than nothing, at the moment.

Ok, how long into the future do you think?

Jase2
20 Apr 2008, 23:55
Andy92, that depends on a number of factors at this moment. I'm currently working on a few other "big" products, but when I get time -- I will add some new features.

furst
21 Apr 2008, 01:13
Another thing, make it an option when quoting a post to just show image link instead of the full image, that would save som bandwidth over time. :)
That would be awesome, but it sounds like a mod of its own.

Jase2
21 Apr 2008, 01:53
I do like that idea tmiland. However, as furst rightly said, this would be it's own modfication. I'll see if I can create a product for this when I get some time. With Enable/Disable.

furst
21 Apr 2008, 04:04
I do like that idea tmiland. However, as furst rightly said, this would be it's own modfication. I'll see if I can create a product for this when I get some time. With Enable/Disable.
You must be hella busy. Every thread I go into I see you adding projects to your to do list :up:

mktrilogy
21 Apr 2008, 06:34
thanks installed

ErolALP
21 Apr 2008, 13:28
installed thanx jase

tmiland
21 Apr 2008, 15:53
I will have to look at the code, I'm currently coding another hack.

Okey, i figured it out. Might be it can be done better (less code) but atleast it's working. :)

Here you go:
bbcode_parse_complete
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
} elseif(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
$text = ncode_imageresizer_replace($text);
}bbcode_parse_start:
$this->ncode_imageresizer_do = false;
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
if(!empty($parsedtext) && $parsedhasimages) {
$parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
$parsedtext = ncode_imageresizer_replace($parsedtext);
$parsedhasimages = false;
} else {
$this->ncode_imageresizer_do = true;
}
} elseif(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
if(!empty($parsedtext) && $parsedhasimages) {
$parsedtext = $this->handle_bbcode_img($parsedtext, $dobbimagecode, $parsedhasimages);
$parsedtext = ncode_imageresizer_replace($parsedtext);
$parsedhasimages = false;
} else {
$this->ncode_imageresizer_do = true;
}
}

Yay! :D

furst
21 Apr 2008, 20:14
Hey tmiland, can you explain what you did there?

tmiland
21 Apr 2008, 21:00
Hi furst!
I added whats in the elseif statement, i simply "doubled" the code.

In the "if" statement you'll see 'vb_bbcodeparser' and to get it working in the blog, i added 'vb_bbcodeparser_blog' in the "elseif" part.

If you want, you can try the attached xml file, and see how it goes.
I'm currenly using that on a live site, and it's working great :)

furst
22 Apr 2008, 00:22
Thanks tmiland.

I'm actually not that interested in the blog part (for now, the blogs on my site aren't very popular yet), but I was hoping that your solution could be slightly modified to work with albums and quotes too. I looked for a vb_bbcodeparse_albums or something similar, but couldn't find anything.

PSDPlayer
23 Apr 2008, 12:56
This is great. But somehow it seems to break the mod that displays random pics on to forumhome found here: http://www.vbulletin.org/forum/showthread.php?t=174445

madmax1228
23 Apr 2008, 13:11
Nice !

Jase2
23 Apr 2008, 16:07
This is great. But somehow it seems to break the mod that displays random pics on to forumhome found here: http://www.vbulletin.org/forum/showthread.php?t=174445

Please could you be a little more specific. What exactly does it do? Any error messages? Or just stops the photos from displaying? If you provide me with this information, I can then look into it. :)

furst
23 Apr 2008, 22:38
This is great. But somehow it seems to break the mod that displays random pics on to forumhome found here: http://www.vbulletin.org/forum/showthread.php?t=174445
This is not true, I've got both of them installed just fine.

I do not, however, have the cleaned up version in this thread. I still have Spleasure's release... just thought I'd wait for a real update here before updating.

steven s
24 Apr 2008, 15:38
My install stopped working. :(

Is this working with 3.6.10 or 3.5 RC4 yet?

Edit: My bad. I was running an old version.

Jase2
24 Apr 2008, 15:43
Any error messages?

KURTZ
24 Apr 2008, 15:58
Any error messages?

absolutely not :D

Inferno Dragon
24 Apr 2008, 17:14
Thanks for the vb 3.7 version, just installed it! working great..

PSDPlayer
26 Apr 2008, 04:09
Please could you be a little more specific. What exactly does it do? Any error messages? Or just stops the photos from displaying? If you provide me with this information, I can then look into it. :)

It will post the boxes for the images and says the user for who they are from, but it does not load the images. No error messages. I uninstalled the mod and they began loading them again.

Jase2
26 Apr 2008, 11:00
KURTZ conformed that this works with that hack. Anyone else having the same problem?

carrlos
26 Apr 2008, 21:42
Installed and working fine. 3.7 RC4 and Random Album pictures on homepage ok!

madmax1228
26 Apr 2008, 22:11
carrlos, may I ask what you are using to get random pics to the homepage?

furst
26 Apr 2008, 23:24
carrlos, may I ask what you are using to get random pics to the homepage?
http://www.vbulletin.org/forum/showthread.php?t=174445

madmax1228
27 Apr 2008, 00:07
Great! Got it installed...WOW!

asj
27 Apr 2008, 00:24
Problem in the user :down:

mannaraja
28 Apr 2008, 07:42
100%Working

Nice posting thankyou.

Keep on sharing.......

Kadi
28 Apr 2008, 09:55
Hi,

Will this work on 3.6.10?

Jase2
28 Apr 2008, 15:49
Yes, it should do.

dashed
29 Apr 2008, 22:13
Does this resize images in social groups?

Jase2
29 Apr 2008, 22:44
Currently, no. However, when I get the time to work on an update, I can add compatibility with the social groups. :)

rizelim
29 Apr 2008, 22:56
thanks and install

dashed
30 Apr 2008, 01:16
Currently, no. However, when I get the time to work on an update, I can add compatibility with the social groups. :)

I'm looking for an image resize mod that'll resize images to comply with the new features of 3.7.x. The image resize mod I have currently doesn't have this feature.

I wish that you add compatibility, as it is useful.

LasT-ChaNcE
30 Apr 2008, 14:21
I just received this error message when selecting Yes for the Clear User Settings Option:

Fatal error: Call to a member function query_write() on a non-object in /includes/adminfunctions_options.php(473) : eval()'d code on line 11

Any particular reason why this may be happening?

Jase2
30 Apr 2008, 16:01
That is a known issue. I'll work on the fix.

Charlie98902
30 Apr 2008, 18:14
In what folder do I upload the js file to on the server?

Thanks in advance.

Jase2
30 Apr 2008, 19:17
/clientscript.

Charlie98902
30 Apr 2008, 20:43
Thank you I overlooked that folder. :D

johnny713
01 May 2008, 01:54
How come mine don't work? I upload the js file to clienscript folder, then I import the xml file through the Manage Products. Then I went to Image Resizer Option in the Vbulletin Option and ENABLE it. But my doesn't resize like the demo your had. Did I miss any step? What is wrong with mine? I use Vbulletin 3.6.5, it should be working right?

Screen Shot:
http://i29.tinypic.com/2gsoh1d.jpg

bongwater
01 May 2008, 12:25
is it possible to change the background color and font color of the image bar? We have a dark forum and would like to modify the color of this, if it is possible.

http://img122.imageshack.us/img122/8958/testingimageresizerraveij2.png

hawkeye1
01 May 2008, 16:40
Little confused. Does this resize an image that a user has posted in a thread using [img] tags getting the image from another server. If so its what I need. :) thanks

tmiland
01 May 2008, 19:37
is it possible to change the background color and font color of the image bar? We have a dark forum and would like to modify the color of this, if it is possible.

That is possible :)

In template "ncode_imageresizer_headinclude"
change:
table.ncode_imageresizer_warning {
background: #869BBF url($vboptions[bburl]/images/gradients/gradient_tcat.gif) repeat-x top left;
color: #FFFFFF;
border: 1px solid #CCC;
cursor: pointer;
}To whatever fits your style :D

It might look different for you, since i have modified it for my style (default).

*edit*
Little confused. Does this resize an image that a user has posted in a thread using [img] tags getting the image from another server. If so its what I need. :) thanks
That is correct, this would be just what you need! ;)

gim
02 May 2008, 05:34
GREAT!

:up:

Zweeper
02 May 2008, 11:07
OK, just installed ... works like a charm ... :D

anyway Jason you don't have fixed the profile 'issue' ... check the attachment ...

someone fixed this problem?
or when is the next release comming? ;)

Jase2
02 May 2008, 14:36
I'm working on a new version. I really don't want to rush a new version out. I want to take many feature requests, and implement the best ones. :)

The userCP options can be tricky, as they are phrases. So, I'm working on a workaround for the <fieldset class="fieldset"> ;)

Zweeper
02 May 2008, 15:05
okay, well, im awaiting the new release ;)
good job so far

furst
04 May 2008, 02:30
Anyone figured out a way to get this to work in user albums yet?

brendanc
04 May 2008, 03:05
Working great on my forums. I'm only using this for threads... and it works flawlessly in Firefox too.

q8manar
04 May 2008, 07:28
problem with vb 3.7.0

the product made the IE close after one minutes , it gave me messegae the IE has accured problem and it close..

Jase2
04 May 2008, 20:16
q8manar, not getting that error here. Are you sure it isn't another hack?

danielc2384
05 May 2008, 17:02
Only probably (minor) is that when a page loads up the image automatically opens big for a split second. I would prefer if it was the smaller size when opened.

Other then that great mod!

Andy92
05 May 2008, 21:46
Same, if this could be fixed then it would be awesome!

Stubbed
06 May 2008, 08:17
Only probably (minor) is that when a page loads up the image automatically opens big for a split second. I would prefer if it was the smaller size when opened.

Other then that great mod!

That's because the script is executed when the page is completely loaded, there's not really any way around this, as there are other effects on page loading/image viewing time.

There are a couple of bugs:

In readme.html

Please report all bugs, or feature requests at: http://www.vbulletin.org/forum/showthread.php?t=176531

That actually links to /www.paulsonny.com

When selecting the option to reset the users settings, I get this error:

Fatal error: Call to a member function query_write() on a non-object in /var/www/nzhondas.com/forum/includes/adminfunctions_options.php(473) : eval()'d code on line 11

Also, the settings in the user control panel appear to be broken. *edit* - I just noticed you are aware of that issue..

All of this is on 3.7 Gold.

Andy92
06 May 2008, 18:24
What you need to update is this...

1) Make the image auto resize before they have loaded. Because page breaks then fixes once the image has loaded.

2) Instead of when the person clicks the bar at the top of the image and then it opens up a new tab or window with the image url in, why not make it open with a lightbox? Like the click it, the page fades out and it appeares in that javascript lightbox?

Mrdby
06 May 2008, 20:15
That's because the script is executed when the page is completely loaded, there's not really any way around this, as there are other effects on page loading/image viewing time.

There are a couple of bugs:

In readme.html



That actually links to /www.paulsonny.com

When selecting the option to reset the users settings, I get this error:



Also, the settings in the user control panel appear to be broken. *edit* - I just noticed you are aware of that issue..

All of this is on 3.7 Gold.
same issue

Jase2
06 May 2008, 23:10
Yes, that error is known. I will try get a fix provided asap.

Stubbed
07 May 2008, 04:29
1) Make the image auto resize before they have loaded. Because page breaks then fixes once the image has loaded.

I don't see how you would do this, the hack is javascript based and is only going to know the full size of the image once it is completely loaded. You could in theory make a complete ground up hack using php to check the file dimensions first, and that would create much more traffic/load.

To me, the temporary breakage in theme is acceptable, if this was something that the coder would want to undertake it would have to be optional.

2) Instead of when the person clicks the bar at the top of the image and then it opens up a new tab or window with the image url in, why not make it open with a lightbox? Like the click it, the page fades out and it appeares in that javascript lightbox?

Again, all these are great feature ideas for some people, but shouldn't be made the default/one and only option. A lot of my users don't use Lightbox because it's to slow.

XiZa
07 May 2008, 10:01
couldn't you use max-width (css) and ie hack to make sure it doesn't display the big image for a split second ?

XiZa
07 May 2008, 10:02
#posts img {
max-width:400px;
width: expression(this.width > 400 ? 400: true);
}

DieselMinded
09 May 2008, 03:29
Is this a stable mod or is it in Beta ?

adamadamadam
09 May 2008, 03:36
I posted this in the original mod's thread, but can it be added to an update to where I can choose which theme/style gets the install instead of all themes & styles? Some of mine are full screen while some are 1024px wide. I'd like those with the pixel width limit to have the image resizer and those that are 100% browser width to not have it.

That'd be awesome.

Jase2
09 May 2008, 18:54
This is a 'stable' release.

Please note: I have now decided to offer support at paulsonny.com (http://www.paulsonny.com/forum/index.php)

In the next few days, I'm hoping to release an updated version. Please head over to paulsonny.com to requests features, ect.

Stubbed
13 May 2008, 10:38
Good stuff Jase, looking forward to it :)

Hendrizius
15 May 2008, 00:40
Is it possible to put all the unneeded css into a file instead of loading it on every page?

ckusmez
15 May 2008, 12:00
This is a great hack. But i've a problem with blog. This hack hasn't Vbulletin Blog Support. Will you add this support to newer version ? soon ?

johnban
15 May 2008, 15:16
Great hack. Installed.

I have also some suggestions.

1) Add different image sizes for signatures
2) Add the ability to change image sizes into usergroups.

Keep up the good work,

John B.

karrerax
15 May 2008, 22:28
Cliks install. This mod is GREAT

mavikumsal
17 May 2008, 10:18
Thanks....

Amenadiel
18 May 2008, 03:11
why not make it open with a lightbox? Like the click it, the page fades out and it appeares in that javascript lightbox?

Again, all these are great feature ideas for some people, but shouldn't be made the default/one and only option. A lot of my users don't use Lightbox because it's to slow.

Ok, but IF you wanted to use lightbox, or highslide or any of those... how could this be done?

I made a script that used php to detect image size and my forum got slow as hell, so I have no problem with the image loading at full size before resizing... but how to use lightbox then instead of displaying a bar above the image?

zagman76
18 May 2008, 05:44
Suggestion:

In this part of the ncode_imageresizer_headinclude template, change:

<script type="text/javascript" src="$vboptions[bburl]/clientscript/ncode_imageresizer.js?v=1.0.1"></script>


to:

<script type="text/javascript" src="clientscript/ncode_imageresizer.js?v=1.0.1"></script>


so that people like me who offer a SSL version of the site to those who choose to use it don't get security errors because the script is trying to run from the non-ssl url of the site.

tmiland
18 May 2008, 15:00
This is a great hack. But i've a problem with blog. This hack hasn't Vbulletin Blog Support. Will you add this support to newer version ? soon ?

Take a look at post 110 here: http://www.vbulletin.org/forum/showpost.php?p=1496052&postcount=110 Working great with the blog on 3.7 gold. :)

furst
18 May 2008, 21:23
Man, I'm still waiting for this to work in photo albums.

shinydarkstone
18 May 2008, 23:14
this mod is really sweet

q8manar
19 May 2008, 05:33
still has problem
when I reply , and the thread jas more than one big picture . after some second , the IE is crach and colse

Stubbed
19 May 2008, 07:11
Ok, but IF you wanted to use lightbox, or highslide or any of those... how could this be done?

I made a script that used php to detect image size and my forum got slow as hell, so I have no problem with the image loading at full size before resizing... but how to use lightbox then instead of displaying a bar above the image?

If you made a php script to detect image sizes, then you should have little trouble with some javascript. Lightbox is from here:

http://www.lokeshdhakar.com/projects/lightbox2/

You should be able to figure out how to do what you need with that.

PHILIPS-08
19 May 2008, 23:46
i already instlled but dosen't work please help me :(

Jase2
19 May 2008, 23:49
Hi guys,

Sorry I haven't been in this thread for a while, but HelpCenter is my top priority at the moment, and I've also had some "real life" problems.

I am working on an update, I'm also going to add the option to use lytebox which can be turned on/off in ACP. I'll add capability for both albums, and the blog add-on.

PHILIPS-08, what exactly doesn't work? Are you sure you uploaded the ncode_imageresizer.js to the /clientscript folder ?

If you've done that and installed the PRODUCT, then I cannot see why it will not work...

ckusmez
20 May 2008, 01:30
Take a look at post 110 here: http://www.vbulletin.org/forum/showpost.php?p=1496052&postcount=110 Working great with the blog on 3.7 gold. :)

Thanks for it a lot. it almost works. i want to warn you. There exist a bug. For example "xxx" is a user and he/she has 4 blog categories. I want to view one of categories. now in there pictures don't be resized. Bu i view a blog entry it's okey. No problem.

Have a nice day.

PHILIPS-08
20 May 2008, 03:22
i uploaded the ncode_imageresizer.js to the /clientscript


then i went mange produts to install xml file stiil dosen't work please help me any one .

if any one can explain how to install advanced way please :( i am a new vb customer please help me :) thanx in advance :)

Jase2
20 May 2008, 08:10
Are you sure it is enabled?

ACP --> vBulletin Options --> Image Resizer Options --> Image Resizer Enabled

PHILIPS-08
20 May 2008, 18:13
i went to admin panel and enaled it still not working :(

Jase2
20 May 2008, 18:46
PHILIPS-08, you're the only one having trouble :)

I run this with no problems whatsoever. The image your trying to resize probably doesn't need resizing.... ;)

havefun
21 May 2008, 16:02
love it, thx! :)

Fox Mc Cloud
21 May 2008, 20:50
Great modification :D

high76
23 May 2008, 12:13
had the same problem, not working.

on the way to uninstall I set Image Reziser to 'Image Resizer Enabled = No' and voila...it works. Strange? ;)

D.Baker
23 May 2008, 14:59
Hello Jase2, great plugin. I love it, but I have one feature request that I think would make this plugin the ultimate. If you could make it work with the Lightbox feature built into vb 3.7.0. That way, when you set it to resize in a new window, it uses Lightbox and never ever breaks the style. It would be perfect.

To do this, you just need to set the link tag to include rel="Lightbox". You could use some fancy PHP if statements to disable this if the user isn't using the Lightbox feature, but really if they weren't using it then the rel= tag has no effect anyway. I know your plugin uses some JS to open the new window, but I think it would (I actually have no idea about JS) be pretty straight forward to change it to use an HTML style code:
rel="Lightbox"

As a side note, I have a little mod here (http://www.vbulletin.org/forum/showthread.php?t=179998) that replaces Lightbox with Lytebox (a more customizable and feature complete version of Lightbox) which I think would integrate perfectly with your mod. I'll PM you with my idea.

SilentSpic
23 May 2008, 21:05
Great mod. Thank you. Voted Excellent.

Teknik4
25 May 2008, 17:29
Hi,
i selected "clear user settings" (in admin panel) and got this error;

Fatal error: Call to a member function query_write() on a non-object in /home/.../public_html/includes/adminfunctions_options.php(473) : eval()'d code on line 57

what will i do?

uae prince
27 May 2008, 14:08
thanks :)

choccyclaire
27 May 2008, 20:57
Think it's time to get this - my members just won't learn what small is!

trilogy33
28 May 2008, 01:29
Installed. Thank you :)

Jase2
28 May 2008, 02:13
Hi,
i selected "clear user settings" (in admin panel) and got this error;



what will i do?

That is a known issue. It will be fixed for the next release. I've just got to finish programming my new style for my site. :)

neodan20
28 May 2008, 05:39
Installed and nominated.

Nice!

TalkBolts
29 May 2008, 08:33
Clicked install.

Super cool mod.

First mod I've ever nominated for MOTM

jeryp
29 May 2008, 08:50
I have installed it and all is working well but as it resizes the images it puts more and more blank space at the top of the page above the header and bellow the footer.

Is this Normal? Or have i done something wrong?

Jase2
29 May 2008, 12:35
jeryp, I can't see how it can do that. Try re-installing. If the same problem occurs, post a screenshot. This just simply resizes images clientside. :)

jeryp
29 May 2008, 14:23
Strange. Ive uninstalled it and re installed it as suggested and It appears to be Ok now.

Thanks for the quick reply ans great add on :up:

Thanks
jery

Ninth Dimension
29 May 2008, 23:49
Hi, just installed - I love this script, having used it on my 3.6.8 forum. But I have a problem - "This image has been resized. Click this bar to view the full image. The original image is sized %1%2" - as seen here: http://arathor.net/showpost.php?p=226982&postcount=8

Any ideas?

Jase2
30 May 2008, 00:34
What's the problem? I see this:

This image has been resized. Click this bar to view the full image. The original image is sized 4264x1704.

Doctor Death
30 May 2008, 03:21
Question: Does this also resize pictures in Photo Albums?

D.Baker
30 May 2008, 07:38
Hey Jase, any word on getting it to enlarge the pics using Lightbox? Or better yet, using my lytebox mod? See post 186 (http://www.vbulletin.org/forum/showpost.php?p=1528930&postcount=186) for reference.

totalon
31 May 2008, 09:28
Great addon! Works great and just what I needed. Thanks for the product!

Robert Waanders
31 May 2008, 10:58
Great mod, thanks, installed it immediately on my forum!

Robert

Jase2
31 May 2008, 11:07
Hey Jase, any word on getting it to enlarge the pics using Lightbox? Or better yet, using my lytebox mod? See post 186 (http://www.vbulletin.org/forum/showpost.php?p=1528930&postcount=186) for reference.

Sorry I haven't replied sooner, but I haven't really looked into that possibility. I've had my hands full over the past few months, so I'll try to release an update soon, but the lytebox may have to wait, as I will need to look into it fully.

D.Baker
31 May 2008, 17:11
Hey Jase,
No problems, keep up the good work. I think getting it working using Lightbox should be the priority. My lytebox idea can go on the to do list, don't stress.

Thanks again,
DB

abrecher
01 Jun 2008, 10:27
If I check off YES in "Clear User Settings" in Admincp and then click save, I got a blank blue page.

irishblue
02 Jun 2008, 11:09
this new version for 3.7 doesn't seem to resize images on the main vBa CMPS page. The older 3.6 ver used to be able to do this. any idea how to fix this?

Hendrizius
02 Jun 2008, 14:19
Would it be possible to remove the .css code and put it into a stylesheet instead? (Bad for SEO)

almansoori
02 Jun 2008, 14:32
Good work

Jase2
02 Jun 2008, 16:33
@ abrecher: The "Clear user settings" in ACP doesn't work. I'll fix that for the next update.

@ irishblue: I don't use vbadvanced so, I can't really get it working with that. However, this is made for vBulletin. If I do set-up a vbadvanced page, I'll be sure to get a working compatibility.

@ Hendrizius: Hmmm, never really thought about that. CSS isn't really my forte in all honesty. I only know "bits". However, it shouldn't have that much of an effect on SEO, there are a lot more factors.

SessizDunya
04 Jun 2008, 11:13
You just saved my life , thanks a lot, great hack...
Installed & Working well on VB 3.7.0

Joe1967
04 Jun 2008, 18:57
Does this work when IMG tags are used?

R1lover
04 Jun 2008, 19:02
Does this work when IMG tags are used?

Thats the only thing it works on... :)

rknight111
05 Jun 2008, 02:47
Since I upgraded to 3.7.1 All my Images are coming up huge and right off the screen, I cannot get this running on my forum or on my test forum with no mods. Am I missing some settings?
I have it set to 600 wide, I even changed it to 300 and no changes.

RON

Jase2
05 Jun 2008, 10:03
rknight111, I suggest you uninstall then re-install. If the same problem occurs, you can send me an admin login to your board and ftp login details via Private Message and I shall take a look when time permits.

TCattitude
06 Jun 2008, 18:04
Unfortunately, I don't have the vBblog addon to test it with that. Someone else is free too do it, however. :)

I can't understand why people would want it for albums, since you can already set the preferred dimensions ;)

If there are more, please let me know. :)
An easy way to make this work for blogs is...

Create a new plugin in this hook:
blog_complete

Put this for plugin content:

$content = ncode_imageresizer_replace($content);

Done ;)

I think it can be applied to the same hook bbcode_parse_complete that this product uses, but i'm too lazy to do that now. Is a thing about conditional for this_script == 'blog', and add a similar reference like $text but for $content.

Jase2, feel free to add this to the product.

Greetings!

TCattitude
06 Jun 2008, 18:43
Another quick fix, now for albums.

Create a new plugin in this hook:
parse_templates

Put this for plugin content:

if (THIS_SCRIPT == 'album') {
$vbulletin->templatecache['album_pictureview'] = str_replace('\" alt=\"', '\" onload=\"NcodeImageResizer.createOn(this);\" alt=\"', $vbulletin->templatecache['album_pictureview']);
}

if (THIS_SCRIPT == 'group') {
$vbulletin->templatecache['socialgroups_picture'] = str_replace('\" alt=\"', '\" onload=\"NcodeImageResizer.createOn(this);\" alt=\"', $vbulletin->templatecache['socialgroups_picture']);
}


In that way, the img tag in album pictures is successful modified and the ncode part is added.
I think, again, that this could be added in some part of the original plugins to alter based in a this_script conditional. But, again, i'm too lazy to keep testing.

And, again, feel free to use this ideas-code, Jase2.

Benefits: you now can setup a high limit for width and height to album pictures, and not deform your website layout when show those big images. And allow members to click to see the full image, and keep them... wallpapers, for example.

Greetings ;)

Jase2
06 Jun 2008, 20:20
Yes, that's what I had in mind for the blog. tmiland got it working for the blog, however, he simply double the code -- and I don't like doing it like that hehe.

Any more suggestions from people? Oh, that reminds me, I need to clean up the UserCP options -- my life is just so busy at the moment, with leaving school ect. If I end up going in the Royal Navy, then I may not be able to support this anymore. However, I will pop in now and again when time permits to say "HI". :)

D.Baker
07 Jun 2008, 04:33
Hey Jase,
Congrats on finishing school, that's a big deal. What are you looking to do in the Navy?

My only request is the Lightbox one I have mentioned (resized images that enlarge using Lightbox). It never occurred to me that people might use IMG tag albums, but I can see TCatitiudes suggestions being useful.

Thanks for the hard work!

montdyatna.com
07 Jun 2008, 09:07
Hi

I want to thank the product coder cause it's the best image resizer i got
all previous resizer didn't work so good ans sometimes coudln't resize some pics plus it make the threads exploring more slow

this product make exploring faster and also resize 100% of pics successfuly

Thanks ALLAH (god) that i got it and thanks for the coder

the product marek as installed also i give the it excellent :up:

Subah
07 Jun 2008, 12:16
Yes, that's what I had in mind for the blog. tmiland got it working for the blog, however, he simply double the code -- and I don't like doing it like that hehe.

Any more suggestions from people? Oh, that reminds me, I need to clean up the UserCP options -- my life is just so busy at the moment, with leaving school ect. If I end up going in the Royal Navy, then I may not be able to support this anymore. However, I will pop in now and again when time permits to say "HI". :)

Hope see you soon to support this mod :)
but what about edit this mod to support the blog and the albums without doing TCattitude steps ?

Jase2
07 Jun 2008, 13:58
Ok, I'll release an updated version shortly to provide compatibility with the albums and blogs, as well as fixing the clear user options in AdminCP.

D.Baker, I'm still undecided yet. I'm either going to do mechanics on helicopters, train to become a Royal Marines Commando, a pilot. mines clearance diver, or Engineering Technician. Still deciding.........
I'll see what I can do with the lytebox -- but images are resized with lytebox, right?

sross
08 Jun 2008, 04:02
:( not working on 3.7.1 for me. I am no stranger to installing mods, just can't get it to do anything. I've followed instructions 100%, the product installed and is enabled and the file has been uploaded. Tried reuploading and re-installing. img tag images still huge..

D.Baker
08 Jun 2008, 04:11
Hey Jase,
Sounds like the Navy would be fun. It's a big regret of mine.

Anyway, as for Lightbox there are a bunch of different versions of it. Lytebox is a different version, but you should just concentrate on getting Lightbox working. This is the one that comes with vB 3.7. It doesn't actually resize the images, all it does is provide a nice way of opening images in a new window. Basically, any image that has a rel="Lightbox" tag in it's HTML link tag will open in a Lightbox window.

Here is an example of the markup:


<a href="http://www.example.com/example.jpg" rel="Lytebox"><img src="http://www.example.com/example.thumbnail.jpg" height="100" width="100"></a>

NOTE: It can't have target="_blank" in it.

So, what I am asking is that you add an option to "open using Lightbox" in Image Resizer's options page Then your plugin simply adds a rel="Lightbox" into the HTML link tag. This way, it will open using Lightbox and fit the style of the rest of my site (see here for example (http://forums.popmag.com.au/showthread.php?p=37)).

I actually figured out how to do this on my own and made a little mod (http://www.vbulletin.org/forum/showthread.php?t=179998) to do it. See steps 12-14. I made it work with Lytebox (not Lightbox) but it's crude and requires some core file edits. I'd rather have Lightbox part of your mod so it's legit and not require so many hacks on my behalf.

Of course, it would be ideal if it was somewhat easy to edit a variable in your code so that I could replace rel="Lightbox" with rel="lytebox", but this is just me being demanding (or would this be possible using Replacement Variable Manager? I'm not sure if that works for plugins/products).

D.Baker
08 Jun 2008, 04:13
One more thing I picked up on.

Your plugin's "resized" images don't have the 2px margin like all other embedded thumbnails do (at least that's how it is on my board (http://forums.popmag.com.au/showthread.php?p=37)).

The best way to fix this would be to define a unique CSS class (eg. class="imageresizer") in the img tag, rather than just the ID. That way we could style the images anyway we wanted (like fix the 2px margin problem I mentioned above). I'd say this is a critical thing to implement.

Thanks for putting up with my nagging! :)

Jase2
09 Jun 2008, 00:51
sross, I'm having no problems whatsoever, neither is anyone else. Maybe you're using an image that isn't bigger than the set dimensions?

D.Baker, do you mean having an option in ACP where you can set the colour code ect. for the top bit where it gives image dimensions ect?... I like that idea -- will look into it.

Onone
09 Jun 2008, 14:43
Thanks :)

NoPretender
09 Jun 2008, 17:06
Great mod, works well. One thing that might be a good feature, is to allow certain dimension limits for signatures per usergroup. I want to allow all my users to use the IMG tag but often they're way above the dimensions I have set for SIGPIC, so have the IMG tag's diabled. I allow staff to have larger signatures then a registered member and would be great to set a limit per usergroup.

Regardless, nice mod :)

RedGTiVR6
09 Jun 2008, 17:57
I'm getting a javascript error for some reason. Anyone else get this? The item in the ' ' changes based on the setting in the AdminCP.

NcodeImageResizer is not defined:

NcodeImageResizer.MODE = 'enlarge';

D.Baker
10 Jun 2008, 18:01
Hey Jase,
I'm pretty sure you can already style the resize text box thing to a different color using the class ncode_imageresizer_warning. What I'm talking about is giving the actual image a class, so that you can style it with boarders, margins and paddings etc. At the moment you give the image an ID, but no class.

efe
13 Jun 2008, 00:57
fix it, thanx

Mecho
15 Jun 2008, 18:52
i'm using this mod for long long time and never had problem with it . i just now need to know when u get more threads (so more images) , this hack would be a reason to use CPU or RAM in ur server ?? and how much it would be effect if we have this hack or not ? i really need this to know so any reply would be great :)

thanks

ahmadatom
16 Jun 2008, 19:57
Thanks!
Installed:rolleyes:

Very Good :eek:

Jase2
17 Jun 2008, 16:55
i'm using this mod for long long time and never had problem with it . i just now need to know when u get more threads (so more images) , this hack would be a reason to use CPU or RAM in ur server ?? and how much it would be effect if we have this hack or not ? i really need this to know so any reply would be great :)

thanks

No, not really. All images are resized clientside. No need to worry.

Sakai Ray
17 Jun 2008, 18:42
*clicks installed*

ArnyVee
18 Jun 2008, 01:40
Thanks! 3.7.1 P1 working here! :D

bot57
18 Jun 2008, 04:01
Double Post

bot57
18 Jun 2008, 04:01
Fixed it myself, just dont know how....

Mecho
18 Jun 2008, 22:48
No, not really. All images are resized clientside. No need to worry.

Thanks man for response :)

firestormpt
20 Jun 2008, 11:51
i fyou want i can translate to portuguese

Marc118
20 Jun 2008, 16:18
Hey guys, a quick question.

I would like my members to upload larger images than my forum width. So I have set the max image size to 1024x768. Is there anyway to have the resizer resize to my forum width? Or a but smaller?

Smitty
20 Jun 2008, 23:36
I admit not reading the whole thread, but will someone please tell me if this works in blog posts and such, or is it only for forum posts?

tmiland
20 Jun 2008, 23:55
I admit not reading the whole thread, but will someone please tell me if this works in blog posts and such, or is it only for forum posts?

Take a look here --> http://www.vbulletin.org/forum/showpost.php?p=1523500&postcount=171 :)

Smitty
21 Jun 2008, 00:07
Thank you! I did start back through the thread and found some references, but the post you linked to was what I needed. I appreciate your help!

kambing
22 Jun 2008, 20:39
Hi, just installed - I love this script, having used it on my 3.6.8 forum. But I have a problem - "This image has been resized. Click this bar to view the full image. The original image is sized %1%2" - as seen here: http://arathor.net/showpost.php?p=226982&postcount=8

Any ideas?

What's the problem? I see this:

i believe the earlier version of ncode also was having this problem..
i am also having this problem..
i uninstalled my old ncode and installed this new one..
uninstall reinstall use old one again and so forth..
until i dun remember which version of ncode i have on now :o
but still coming out with %1%2..

googled out what could be wrong..
saw in Spleasure's thread, KURTz mentioned it most likely is due to vbadvanced..

well i disable vbadvanced for a while, load a page.. and the numbers were there..
enable vbadvanced.. and it became %1%2 and weight %3
tested with IE & firefox..

any ideas how to get around this..
or where to edit the top bar text so i can remove the image original size thingy text..

Much Appreciated,
kambing

Jase2
22 Jun 2008, 21:49
Yes, that is down to vbadvanced (I think).

Hmm...not too sure what could be causing that atm. I don't use vbadvanced, either. I'll take a look shortly.

Marcus_Fenix
26 Jun 2008, 09:00
Hi,

We've got a problem with the image resizer on our forum. I wanted to set the size a little lower than 650 pixels, but when I tried to change it to 600 pixels. I got this error:

Fatal error: Call to a member function query_write() on a non-object in /var/www/includes/adminfunctions_options.php(490) : eval()'d code on line 64

The funny thing is that I can change it to a higher value and now itīs up to 700 pixels... oops :D

Any clues?
Using vbulletin 3.7.1

GoNz00
26 Jun 2008, 19:09
great mod thanks, is there any way to stop the resized image centering as its throwing the formatting off ?

dklassen
26 Jun 2008, 22:13
Same here. I'm running vbadvanced and I also have %1%2 and weight %3. Any fix?

Raptor
27 Jun 2008, 01:09
works great however doesn't resize if an image is within spoiler tags

here is the BB code for my spoiler tags - what would i need to change to sort this ?

many thanks :)

<div style="margin:5px 20px 20px 20px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div>
<div class="alt2" style="margin: 0px; padding: 6px;">
<div style="display: none;">
{param}
</div>
</div>
</div>