View Full Version : Add-On Releases - Image Resizer
Jase2
04-17-2008, 10:00 PM
Modfication Unsupported: This modfication is now unsupported, due to lack of time to work on it. However, TCattitude (https://vborg.vbsupport.ru/member.php?u=66930) has continued development and added many cool NEW features. You can see the updated version here: https://vborg.vbsupport.ru/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
04-18-2008, 02:22 PM
Cool, Thanks :)
Jase2
04-18-2008, 02:33 PM
Make sure you click "Install" :)
Just updated the zip file, slight problem in the product. All fixed now.
Will take some screenshots.
projectego
04-18-2008, 02:40 PM
* projectego clicks install :D
Jase2
04-18-2008, 02:46 PM
Thanks! Anyone who wishes to help, then please post a translation in your language. Currently only have netherlands. :)
shadowevil
04-18-2008, 02:47 PM
shadowevil click install :D
codershark
04-18-2008, 02:52 PM
Screenshot or Demo ?
Jase2
04-18-2008, 02:56 PM
You can see a demo here: http://www.techsupportteam.org/forum/15625-post55.html
I'll get some screenshots up soon. :)
BraindGee
04-18-2008, 02:58 PM
Classic! - i just searched for it and there it was, posted a few minutes before!!
thank you very much, exactly what i needed!
Allan
04-18-2008, 03:13 PM
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
04-18-2008, 03:20 PM
Sorry to sound like an ass, but the original mod (https://vborg.vbsupport.ru/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
04-18-2008, 03:31 PM
Sorry to sound like an ass, but the original mod (https://vborg.vbsupport.ru/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
04-18-2008, 04:34 PM
Nice job!
Please keep the release info on each update.
Thanks.
Tralala
04-18-2008, 04:40 PM
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
04-18-2008, 04:55 PM
+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
04-18-2008, 05:02 PM
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.
https://vborg.vbsupport.ru/showthread.php?t=118048
thanks anyway ..
FleaBag
04-18-2008, 05:02 PM
I used the old one, but have now switched to this one. It's very nice and was just what I needed!
Shane
04-18-2008, 05:03 PM
I'll install soon. Very ++ :)
furst
04-18-2008, 05:05 PM
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
04-18-2008, 05:06 PM
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.
https://vborg.vbsupport.ru/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
04-18-2008, 05:07 PM
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
04-18-2008, 05:10 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=172024) or lytebox (https://vborg.vbsupport.ru/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
04-18-2008, 05:13 PM
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
04-18-2008, 05:15 PM
Mini Thanks
I will translate it to Arabic Language
Installed
furst
04-18-2008, 05:16 PM
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
04-18-2008, 05:18 PM
What kind of album are you using? Most all albums will do that automatically? Mine do.
That includes Photopost and Photoplog.
Jase2
04-18-2008, 05:19 PM
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
04-18-2008, 05:21 PM
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
04-18-2008, 05:28 PM
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
04-18-2008, 05:32 PM
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
04-18-2008, 05:36 PM
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
04-18-2008, 05:45 PM
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
04-18-2008, 06:00 PM
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
04-18-2008, 06:11 PM
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
04-18-2008, 06:27 PM
It depends. I can certainly try. :)
Just installed... nice and thanks!
regards
macc
tmiland
04-18-2008, 06:54 PM
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
04-18-2008, 06:54 PM
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
04-18-2008, 07:02 PM
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
04-18-2008, 07:03 PM
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
04-18-2008, 07:09 PM
OK, just installed ... works like a charm ... :D
anyway Jason you don't have fixed the profile 'issue' ... check the attachment ...
Jase2
04-18-2008, 07:14 PM
What's the problem? I going to be putting it in a box in the next release ;)
KURTZ
04-18-2008, 07:15 PM
What's the problem? I going to be putting it in a box in the next release ;)
exactly! :D thx Jason ;)
tmiland
04-18-2008, 07:27 PM
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
04-18-2008, 07:30 PM
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. :)
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
04-18-2008, 08:35 PM
thanks Man
Jase2
04-18-2008, 08:58 PM
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
04-18-2008, 09:09 PM
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
04-18-2008, 09:14 PM
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
04-18-2008, 10:08 PM
How to create translation XML? Have translated (at last frontpage messages) of version 1.0 to Polish.
Jase2
04-18-2008, 10:17 PM
Take a look at the included netherlands product. It is only the phrases that need updating to 'polish' language. :)
RadioErewan
04-18-2008, 10:26 PM
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
04-18-2008, 10:33 PM
It's just the phrases that need translating. I'm sure you can do it. Anyway, thanks for the offer. :)
crkgb
04-18-2008, 10:36 PM
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
04-18-2008, 10:39 PM
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
04-18-2008, 10:45 PM
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
04-18-2008, 10:46 PM
OK, just need larger time slice to do it.
No problems. Take as long as you need. :)
tmiland
04-18-2008, 10:58 PM
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
04-19-2008, 12:07 AM
remove it not support 3.6.8 !
Jasem
04-19-2008, 12:09 AM
Thank you very much
RadioErewan
04-19-2008, 12:29 AM
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
04-19-2008, 07:02 AM
thanks installed.
KURTZ
04-19-2008, 09:19 AM
what's the changelog?
Jase2
04-19-2008, 09:39 AM
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
04-19-2008, 09:40 AM
remove it not support 3.6.8 !
This does in fact work for vB 3.6.8 ;)
Jase2
04-19-2008, 09:52 AM
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
04-19-2008, 09:53 AM
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
04-19-2008, 10:00 AM
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
04-19-2008, 11:46 AM
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
04-19-2008, 11:49 AM
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
04-19-2008, 11:51 AM
Yes, you can put your version in the .xml. Although I thought I set the minversion to 3.6..... Give me a second.
owlbill
04-19-2008, 12:00 PM
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
04-19-2008, 12:46 PM
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
04-19-2008, 02:38 PM
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
04-19-2008, 02:58 PM
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
04-19-2008, 03:33 PM
Read post #50 (https://vborg.vbsupport.ru/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
04-19-2008, 04:15 PM
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
04-19-2008, 04:20 PM
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
04-19-2008, 04:43 PM
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
04-19-2008, 05:32 PM
Give me a blog test it on, and I'll have a working compatibility. ;)
tmiland
04-19-2008, 07:11 PM
*yawn* :rolleyes:
Allan
04-19-2008, 07:41 PM
Work perfectly on Firefox, no ?
jamyk
04-19-2008, 07:43 PM
thanks Man
Jase2
04-19-2008, 07:49 PM
Work perfectly on Firefox, no ?
Works on Firefox, yes. :)
testebr
04-19-2008, 09:36 PM
Add support to album pics
fourat
04-19-2008, 09:44 PM
thank you very much
MarkJW
04-20-2008, 12:40 AM
Gah, doesn't work on vBlog. :l
Oh well.
tmiland
04-20-2008, 07:04 AM
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
04-20-2008, 08:15 AM
It would be nice if you fix it so it can uses the new lightbox vb introduced in 3.7
tmiland
04-20-2008, 10:04 AM
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
04-20-2008, 11:04 AM
John and tmiland, I'm not entirely sure what you mean, and I am not familiar with lightbox, lytebox hack /mod ect.
Jase2
04-20-2008, 11:09 AM
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
04-20-2008, 11:30 AM
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 : https://vborg.vbsupport.ru/showthread.php?t=172024
And lytebox : https://vborg.vbsupport.ru/showthread.php?t=171985&highlight=lightbox
:)
Jase2
04-20-2008, 11:57 AM
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
04-20-2008, 12:07 PM
i want the lightbox but it should use the one that is in the original vb 3.7
tmiland
04-20-2008, 12:10 PM
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
04-20-2008, 03:28 PM
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
04-20-2008, 03:31 PM
well i still think its better to use the lightbox that jelsoft added in vb 3.7
tmiland
04-20-2008, 06:03 PM
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
04-20-2008, 09:43 PM
Read post #50 (https://vborg.vbsupport.ru/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
04-20-2008, 09:55 PM
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
04-20-2008, 11:13 PM
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
04-20-2008, 11:53 PM
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
04-21-2008, 02:04 AM
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
04-21-2008, 04:34 AM
thanks installed
ErolALP
04-21-2008, 11:28 AM
installed thanx jase
tmiland
04-21-2008, 01:53 PM
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
04-21-2008, 06:14 PM
Hey tmiland, can you explain what you did there?
tmiland
04-21-2008, 07:00 PM
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
04-21-2008, 10:22 PM
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
04-23-2008, 10:56 AM
This is great. But somehow it seems to break the mod that displays random pics on to forumhome found here: https://vborg.vbsupport.ru/showthread.php?t=174445
madmax1228
04-23-2008, 11:11 AM
Nice !
Jase2
04-23-2008, 02:07 PM
This is great. But somehow it seems to break the mod that displays random pics on to forumhome found here: https://vborg.vbsupport.ru/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
04-23-2008, 08:38 PM
This is great. But somehow it seems to break the mod that displays random pics on to forumhome found here: https://vborg.vbsupport.ru/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
04-24-2008, 01:38 PM
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
04-24-2008, 01:43 PM
Any error messages?
KURTZ
04-24-2008, 01:58 PM
Any error messages?
absolutely not :D
Inferno Dragon
04-24-2008, 03:14 PM
Thanks for the vb 3.7 version, just installed it! working great..
PSDPlayer
04-26-2008, 02:09 AM
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
04-26-2008, 09:00 AM
KURTZ conformed that this works with that hack. Anyone else having the same problem?
carrlos
04-26-2008, 07:42 PM
Installed and working fine. 3.7 RC4 and Random Album pictures on homepage ok!
madmax1228
04-26-2008, 08:11 PM
carrlos, may I ask what you are using to get random pics to the homepage?
furst
04-26-2008, 09:24 PM
carrlos, may I ask what you are using to get random pics to the homepage?
https://vborg.vbsupport.ru/showthread.php?t=174445
madmax1228
04-26-2008, 10:07 PM
Great! Got it installed...WOW!
Problem in the user :down:
mannaraja
04-28-2008, 05:42 AM
100%Working
Nice posting thankyou.
Keep on sharing.......
Hi,
Will this work on 3.6.10?
Jase2
04-28-2008, 01:49 PM
Yes, it should do.
dashed
04-29-2008, 08:13 PM
Does this resize images in social groups?
Jase2
04-29-2008, 08:44 PM
Currently, no. However, when I get the time to work on an update, I can add compatibility with the social groups. :)
rizelim
04-29-2008, 08:56 PM
thanks and install
dashed
04-29-2008, 11:16 PM
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
04-30-2008, 12:21 PM
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
04-30-2008, 02:01 PM
That is a known issue. I'll work on the fix.
Charlie98902
04-30-2008, 04:14 PM
In what folder do I upload the js file to on the server?
Thanks in advance.
Jase2
04-30-2008, 05:17 PM
/clientscript.
Charlie98902
04-30-2008, 06:43 PM
Thank you I overlooked that folder. :D
johnny713
04-30-2008, 11:54 PM
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
05-01-2008, 10:25 AM
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
05-01-2008, 02:40 PM
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
05-01-2008, 05:37 PM
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! ;)
Zweeper
05-02-2008, 09:07 AM
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
05-02-2008, 12:36 PM
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
05-02-2008, 01:05 PM
okay, well, im awaiting the new release ;)
good job so far
furst
05-04-2008, 12:30 AM
Anyone figured out a way to get this to work in user albums yet?
brendanc
05-04-2008, 01:05 AM
Working great on my forums. I'm only using this for threads... and it works flawlessly in Firefox too.
q8manar
05-04-2008, 05:28 AM
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
05-04-2008, 06:16 PM
q8manar, not getting that error here. Are you sure it isn't another hack?
danielc2384
05-05-2008, 03:02 PM
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-05-2008, 07:46 PM
Same, if this could be fixed then it would be awesome!
Stubbed
05-06-2008, 06:17 AM
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: https://vborg.vbsupport.ru/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
05-06-2008, 04:24 PM
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
05-06-2008, 06:15 PM
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
05-06-2008, 09:10 PM
Yes, that error is known. I will try get a fix provided asap.
Stubbed
05-07-2008, 02:29 AM
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.
couldn't you use max-width (css) and ie hack to make sure it doesn't display the big image for a split second ?
#posts img {
max-width:400px;
width: expression(this.width > 400 ? 400: true);
}
DieselMinded
05-09-2008, 01:29 AM
Is this a stable mod or is it in Beta ?
adamadamadam
05-09-2008, 01:36 AM
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
05-09-2008, 04:54 PM
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
05-13-2008, 08:38 AM
Good stuff Jase, looking forward to it :)
Hendrizius
05-14-2008, 10:40 PM
Is it possible to put all the unneeded css into a file instead of loading it on every page?
ckusmez
05-15-2008, 10:00 AM
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
05-15-2008, 01:16 PM
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
05-15-2008, 08:28 PM
Cliks install. This mod is GREAT
mavikumsal
05-17-2008, 08:18 AM
Thanks....
Amenadiel
05-18-2008, 01:11 AM
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
05-18-2008, 03:44 AM
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
05-18-2008, 01:00 PM
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: https://vborg.vbsupport.ru/showpost.php?p=1496052&postcount=110 Working great with the blog on 3.7 gold. :)
furst
05-18-2008, 07:23 PM
Man, I'm still waiting for this to work in photo albums.
shinydarkstone
05-18-2008, 09:14 PM
this mod is really sweet
q8manar
05-19-2008, 03:33 AM
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
05-19-2008, 05:11 AM
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
05-19-2008, 09:46 PM
i already instlled but dosen't work please help me :(
Jase2
05-19-2008, 09:49 PM
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
05-19-2008, 11:30 PM
Take a look at post 110 here: https://vborg.vbsupport.ru/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
05-20-2008, 01:22 AM
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
05-20-2008, 06:10 AM
Are you sure it is enabled?
ACP --> vBulletin Options --> Image Resizer Options --> Image Resizer Enabled
PHILIPS-08
05-20-2008, 04:13 PM
i went to admin panel and enaled it still not working :(
Jase2
05-20-2008, 04:46 PM
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
05-21-2008, 02:02 PM
love it, thx! :)
Fox Mc Cloud
05-21-2008, 06:50 PM
Great modification :D
high76
05-23-2008, 10:13 AM
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
05-23-2008, 12:59 PM
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 (https://vborg.vbsupport.ru/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
05-23-2008, 07:05 PM
Great mod. Thank you. Voted Excellent.
Teknik4
05-25-2008, 03:29 PM
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
05-27-2008, 12:08 PM
thanks :)
choccyclaire
05-27-2008, 06:57 PM
Think it's time to get this - my members just won't learn what small is!
trilogy33
05-27-2008, 11:29 PM
Installed. Thank you :)
Jase2
05-28-2008, 12:13 AM
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
05-28-2008, 03:39 AM
Installed and nominated.
Nice!
TalkBolts
05-29-2008, 06:33 AM
Clicked install.
Super cool mod.
First mod I've ever nominated for MOTM
jeryp
05-29-2008, 06:50 AM
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
05-29-2008, 10:35 AM
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
05-29-2008, 12:23 PM
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
05-29-2008, 09:49 PM
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
05-29-2008, 10:34 PM
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
05-30-2008, 01:21 AM
Question: Does this also resize pictures in Photo Albums?
D.Baker
05-30-2008, 05:38 AM
Hey Jase, any word on getting it to enlarge the pics using Lightbox? Or better yet, using my lytebox mod? See post 186 (https://vborg.vbsupport.ru/showpost.php?p=1528930&postcount=186) for reference.
totalon
05-31-2008, 07:28 AM
Great addon! Works great and just what I needed. Thanks for the product!
Robert Waanders
05-31-2008, 08:58 AM
Great mod, thanks, installed it immediately on my forum!
Robert
Jase2
05-31-2008, 09:07 AM
Hey Jase, any word on getting it to enlarge the pics using Lightbox? Or better yet, using my lytebox mod? See post 186 (https://vborg.vbsupport.ru/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
05-31-2008, 03:11 PM
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
06-01-2008, 08:27 AM
If I check off YES in "Clear User Settings" in Admincp and then click save, I got a blank blue page.
irishblue
06-02-2008, 09:09 AM
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
06-02-2008, 12:19 PM
Would it be possible to remove the .css code and put it into a stylesheet instead? (Bad for SEO)
almansoori
06-02-2008, 12:32 PM
Good work
Jase2
06-02-2008, 02:33 PM
@ 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
06-04-2008, 09:13 AM
You just saved my life , thanks a lot, great hack...
Installed & Working well on VB 3.7.0
Joe1967
06-04-2008, 04:57 PM
Does this work when IMG tags are used?
R1lover
06-04-2008, 05:02 PM
Does this work when IMG tags are used?
Thats the only thing it works on... :)
rknight111
06-05-2008, 12:47 AM
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
06-05-2008, 08:03 AM
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-06-2008, 04:04 PM
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-06-2008, 04:43 PM
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-06-2008, 06:20 PM
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
06-07-2008, 02:33 AM
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
06-07-2008, 07:07 AM
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
06-07-2008, 10:16 AM
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
06-07-2008, 11:58 AM
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
06-08-2008, 02:02 AM
:( 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
06-08-2008, 02:11 AM
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 (https://vborg.vbsupport.ru/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
06-08-2008, 02:13 AM
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
06-08-2008, 10:51 PM
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
06-09-2008, 12:43 PM
Thanks :)
NoPretender
06-09-2008, 03:06 PM
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
06-09-2008, 03:57 PM
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
06-10-2008, 04:01 PM
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.
Mecho
06-15-2008, 04:52 PM
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
06-16-2008, 05:57 PM
Thanks!
Installed:rolleyes:
Very Good :eek:
Jase2
06-17-2008, 02:55 PM
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
06-17-2008, 04:42 PM
*clicks installed*
ArnyVee
06-17-2008, 11:40 PM
Thanks! 3.7.1 P1 working here! :D
bot57
06-18-2008, 02:01 AM
Double Post
bot57
06-18-2008, 02:01 AM
Fixed it myself, just dont know how....
Mecho
06-18-2008, 08:48 PM
No, not really. All images are resized clientside. No need to worry.
Thanks man for response :)
firestormpt
06-20-2008, 09:51 AM
i fyou want i can translate to portuguese
Marc118
06-20-2008, 02:18 PM
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
06-20-2008, 09:36 PM
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
06-20-2008, 09:55 PM
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 --> https://vborg.vbsupport.ru/showpost.php?p=1523500&postcount=171 :)
Smitty
06-20-2008, 10:07 PM
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
06-22-2008, 06:39 PM
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
06-22-2008, 07:49 PM
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
06-26-2008, 07:00 AM
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
06-26-2008, 05:09 PM
great mod thanks, is there any way to stop the resized image centering as its throwing the formatting off ?
dklassen
06-26-2008, 08:13 PM
Same here. I'm running vbadvanced and I also have %1%2 and weight %3. Any fix?
Raptor
06-26-2008, 11:09 PM
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('d iv')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[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>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.