vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=237650

Image Resizer - Using nCode Script
by Seven Skins
06 Mar 2010 13:40

7 Attachment(s)
Image resizer using nCode script

This hack resizes external images (not attachments) in cms, blogs, posts, new thread preview, signatures, private messages, visitor messages and vBadvanced CMPS.

You have the option to:
Disable the hack.
Choose the resize mode.
Default Maximum width.
Enable and disable cms resize option.
Enable and disable postbit resize option.
Enable and disable signature resize option.
Enable and disable blogs resize option.
Enable and disable private messages resize option.
Enable and disable visitor messages resize option.
Enable and disable vBadvanced CMPS resize option.


This hack has been tested:
- Using IE, FF, Chrome and Opera using default skin.

Installation:
- Upload the contents of upload folder to the root of your forum.
- Import the XML file via Plugins & Products > Manage Products > Add/Import Products.
- If you want to use "Enlarge in the same window" option you must edit "Image Medium Max" stylevar for the style you are using. Set this stylevar to high number e.g. 2000px or more if needed.

Upgrade:
- Upload the contents of upload folder to the root of your forum overwriting the existing file.
- Remove old product from AdminCP produact Manager.
- Import the XML file via Plugins & Products > Manage Products > Add/Import Products.

PS. This hack adds one link in the footer to SevenSkins website.


_________________________________ _________________________________

Please:
Nominate this modification for the MOTM.
Support me by donating ... click the link on the right. (Support Developer)
Remember to click Mark as Installed if you use this hack.
_________________________________ _________________________________


03 Sep 2012
Version 1.6
-Added functionality: Resizing of the images in vBadvanced CMPS.

Total Installs to date: 1248
Total Downloads to date: 7068


31 July 2011
Version 1.5


29 Jun 2011
Version: 1.4

-Fixed to work with vBulletin 4.1.4
-remove yellow bar as it was causing issue with vBulletin 4.1.4.
-Added functionality: Resizing of the images in CMS comments.
-Added functionality: Resizing of the images in BLOG comments.


21 Dec 2010
Version: 1.3

Thanks to ZexTasy for cms plugin code.

Added these option:
-Enable and disable cms resize option.
-Enable and disable postbit resize option.
-Enable and disable signature resize option.
-Enable and disable blogs resize option.
-Enable and disable private messages resize option.
-Enable and disable visitor messages resize option.


25 June 2010
Version: 1.2.0
Fixed to work with vBulletin 404.

06 March 2010
Version: 1.0.0 Released



.

Forum Lover 06 Mar 2010 13:51

Now, what could be more simpler then this! INSTALLED. :)

Kolbi 06 Mar 2010 13:56

I like that :)

Kolbi 06 Mar 2010 14:08

Nice hack but I causes a xhtml issue:
http://validator.w3.org/check?uri=ht...idator%2F1.654
Quote:

# Error Line 93, Column 105: there is no attribute "onload"

…o_white.gif" border="0" alt="" onload="NcodeImageResizer.createOn(this);" />vo…



You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

Seven Skins 06 Mar 2010 14:30

This error has always been there in nCode script. If or when he fixes that I will update this mod.

Kolbi 06 Mar 2010 14:52

That´s not a really good thing :(

samiro 06 Mar 2010 15:02

wow !!!
nice one !
MOTM

min0taur 06 Mar 2010 15:29

Can You Make it work to CMS??

Muggz562 06 Mar 2010 21:36

Now this I like :)

cindy helmond 06 Mar 2010 23:03

nice but can you add this for albums to ? its not working for albums

tuwebfacil 07 Mar 2010 00:00

Hi, its there any way to make it work with vbadvanced?

thank you, great mod!!

elwachiman 07 Mar 2010 01:36

tagged.........................

dihuta 07 Mar 2010 01:45

Doesn't work with vB4: SuperCharged mod (javascript optimize enable).
Turning off javascript optimize is ok.

Veer 07 Mar 2010 06:24

Hi, can you add different size options for blog page and forum post?

Dr.osamA 07 Mar 2010 07:01

thanxxx

installed
________

valendono 08 Mar 2010 08:21

Post di thread - successfully resized + button to view the actual size
VM - failed
PM - successfully resized + button to view the actual size
Blog - successfully resized + button to view the actual size
User group - failed
Album - successfully resized + button to view the actual size



can u make failed become successfully resized especially on visitor messages and usergroup discussion ?

Extra PC 08 Mar 2010 10:43

demo please?

and linked image work with this mod?

Trumpetrhapsody 08 Mar 2010 17:16

Can you add an option in the AdminCP to enable/disable that "Click this bar to view the full image" please. I'd rather it just be a click on the image, with no notification. It's especially annoying on signatures.


It would be nice to have a separate set of size restrictions for signatures, rather than a global setting, but I can live without that for now. ;)

steve1966 08 Mar 2010 17:43

very good thank you

ximcix 09 Mar 2010 09:44

Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank Yo

Lol

ximcix 10 Mar 2010 18:21

I have a suggestion.
Instead of just setting a rule for image width, how about one for "height?"
I have a big problem with members using signature images that are too tall & I have to scroll an entire screen/page to get past their signature.

I would like allow my members to have a signature image that is:
<= 600px wide
<= 300px high

Seven Skins 11 Mar 2010 13:22

Quote:

Originally Posted by min0taur (Post 1998507)
Can You Make it work to CMS??

Quote:

Originally Posted by cindy helmond (Post 1998752)
nice but can you add this for albums to ? its not working for albums

I am making another hack and it seems to work on CMS and albums. I will post it when I complete the hack.

Quote:

Originally Posted by valendono (Post 1999664)
Post di thread - successfully resized + button to view the actual size
VM - failed
PM - successfully resized + button to view the actual size
Blog - successfully resized + button to view the actual size
User group - failed
Album - successfully resized + button to view the actual size



can u make failed become successfully resized especially on visitor messages and usergroup discussion ?


You can not say failed ... in description of this hack it never says it will do that.

.

YankForum 11 Mar 2010 14:25

i love this mod , i had it installed on all my forums since 3.4.0 as i remember

Kolbi 11 Mar 2010 15:59

Attachments aren´t resized, too. :)

Sander Prinsen 12 Mar 2010 12:56

Thank you! I was waiting for this mod, been using it on 3.x.x for ages. I don't like the way the other 4.x.x resizers work, this is much better.

McCarroll21 13 Mar 2010 01:41

Thank you for this! Used it in 3.x and was lost without it in the move to vb4.

djbaxter 13 Mar 2010 01:44

Quote:

Originally Posted by Sander Prinsen (Post 2002138)
Thank you! I was waiting for this mod, been using it on 3.x.x for ages. I don't like the way the other 4.x.x resizers work, this is much better.

I agree. I tried both of the alternatives. This is much better. Thanks for the update. :up:

dihuta 13 Mar 2010 03:17

Quote:

Originally Posted by Veer (Post 1998891)
Hi, can you add different size options for blog page and forum post?

Replace this (in sevenskins_imageresizer template)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace 480 with your blog image width.

ximcix 24 Mar 2010 06:27

It does not work if i use HTML to insert the image, as opposed to BB Code
The image was displayed but not resized

the image i was inserting seemed to be a dynamic URL as it would not display when i used [IMG], so I used HTML "<img src=... >"

Image URL:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Sworm 24 Mar 2010 16:10

This should be great, but don't work in the CMS..... not there's some option to allow the resize in CMS too?

o0mohammed0o 24 Mar 2010 17:07

thanks Installed

but not working with vbulletin4 Attachemnt system pictures :(

mmoore5553 26 Mar 2010 20:32

man i wish i could get this working on my site and i love this mod on my 3.x forum ...seven think you could look for a small donation ?

trilogy33 26 Mar 2010 20:44

Brilliant mod, thank you :)

Just a suggestion:
Is it possible to allow percentages, like e.g. 85% of the CSS width?
A max width of 600 is ok for people that are on 1024x768 resolutions (older laptops/new netbooks), but will be tiny on bigger screens.

Seven Skins 26 Mar 2010 23:07

I am in the process of making new hack ... if I am successful ... I will try to add custom resize function.

persianvb 29 Mar 2010 21:13

please add resize image visitor messages to mod

ReMoN SaMiR 02 Apr 2010 16:53

I've installed it, but it's not working with me!

Any help?

Thanks in advance.

djbaxter 02 Apr 2010 17:02

Quote:

Originally Posted by ReMoN SaMiR (Post 2014706)
I've installed it, but it's not working with me!

Check your settings. If the image size is below the dimensions specified in the ACP settings, it doesn't do anything. You can check it either by inserting a large image, or set the limits to something small in the ACP settings for the add-on to test it.

Greight 02 Apr 2010 20:43

Nice mod, but when the image enlarges in the blog entry, it goes behind the blog side bar. So I have to either check the option to open the image in a new tab or open it separately. Can this be fixed?

sticky 03 Apr 2010 09:02

Does this work on attachments and linked images?

sisterhood 03 Apr 2010 11:07

How can delete this:

Click this bar to view the full image

The_Hawk 03 Apr 2010 21:35

Fantastic little mod, just what I needed. I can't wait till it works on the CMS side of things too :D

nul7 05 Apr 2010 00:37

so I take it this doesn't scale images that use the [img] bbc code function correct?

customcolor 05 Apr 2010 14:03

installed and works great!

i use photobucket to host my photos and i posted a fyi to my members and they love this mod!!!

image fyi

osayidan 05 Apr 2010 22:26

This appears to be the best of the image resizers working for 4.x, but does it work in the CMS? And if not is there an edit we can do ourselves to make it work in CMS?

The images posted in articles in the CMS sometimes are too big, and not only does it look ugly but there is no scroll bar or any way of seeing the full image. I don't think I'm the only one with this problem, a solution would be very nice.

Edit: nevermind, found one that does the CMS, and pretty much anywhere else on the site.

meissenation 07 Apr 2010 23:49

Is there any way to make it so that if you click the bar to expand the image and then click the image (not the bar) again it will open in a new window?

osayidan 09 Apr 2010 17:34

So in the end this is actually the best and simplest image resizer. I've now tried all of them, and played around with the code on each, and this one is the winner.

I managed to create a very crude fix for enabling CMS resizing on this one. Problem with it is that the warning bar on top becomes over-sized, probably some CSS issue. Here is an example:
https://www.vbulletin.org/forum/external/2010/04/65.png

If you do not mind this, do not want to wait for a new hack or update to this one, and understand that you are doing this at your own risk, then here is how I did this:

Open: product-sevenskins_imageresizer-v1.0.0.xml

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Bellow this, and above "</plugins>, add:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save as a NEW file, this way you have the original to go back to if needed.
Uninstal/delete the old hack, you do not need to delete the contents of "upload" folder.
Import the edited one, you do not need to reupload the "upload" folder.

Check if it works for you.

If not, to revert to the old version, uninstal/delete this one. Import the original.


This is likely a very crude method of accomplishing this, and I'm only sharing this for those desperate for a good resizer that works on CMS. For me this is a temporary fix until the author of this hack releases something better.

Note: this was done on 4.0.2, I have no idea how it will behave on any other variation, or if any other mods will interfere.

murekhalir 09 Apr 2010 18:12

Does this work on the CMS?

osayidan 09 Apr 2010 18:32

Quote:

Originally Posted by murekhalir (Post 2018458)
Does this work on the CMS?

Not by default but see my post right above yours and see if that helps you.

Morsolo 12 Apr 2010 04:00

I have always been a fan of the nCode resizer, primarily because of the bar above the image, which allows users to wrap [URL] around the image. Most - if not, all - resizers make the image clickable to enlarge, so wrapping [URL] has no effect; and a lot of my members do that.

I'd like to see multiple inputs on the AdminCP with multiple locations of images. (For example, being able to set a different max width for CMS, Blog, Posts, PM's, etc.)... Also, I've noticed that it doesn't resize [SIGPIC], which is a minor annoyance.

Also, any know how to set a different width if an image is quoted? My forum is fixed at 900px wide, so my images are resized down to 500px, but then if quoted, they stick out, so I make them set at about 460px... I'd like to be able to utilize max available area.

Even better, is it at all possible to just make max width "100%", so that it'll just resize down to the available area?

...But I'm just nitpicking here, brilliant mod :)

Alucard^ 14 Apr 2010 06:54

Best image resizer!

But i have a suggestion (that i need) so if you can add it, would be really cool.

I want to use the plugin for signatures too, but with another width and height max.

Sry for my english.

Installed, ofcourse.

sticky 14 Apr 2010 08:14

Anyone? Does it resize attachments and links?

Does it work with the CMS?

Morsolo 14 Apr 2010 11:59

Quote:

Originally Posted by sticky (Post 2020948)
Anyone? Does it resize attachments and links?

Does it work with the CMS?

Osayidan added to the code to allow it to function with the CMS, seen only a few posts above...
http://www.vbulletin.org/forum/showp...8&postcount=46

vBulletin resizes attachments itself and ... how can you resize a link?

mofeu 17 Apr 2010 16:15

how is this image resizer work?

djbaxter 17 Apr 2010 16:27

Quote:

Originally Posted by mofeu (Post 2022696)
how is this image resizer work?

It works well. :)

sticky 21 Apr 2010 09:04

Quote:

Originally Posted by Morsolo (Post 2021067)
Osayidan added to the code to allow it to function with the CMS, seen only a few posts above...
http://www.vbulletin.org/forum/showp...8&postcount=46

vBulletin resizes attachments itself and ... how can you resize a link?

I meant resizing linked images.

Big_Jason 23 Apr 2010 20:35

Quote:

Originally Posted by Alucard^ (Post 2020922)
Best image resizer!

But i have a suggestion (that i need) so if you can add it, would be really cool.

I want to use the plugin for signatures too, but with another width and height max.

Sry for my english.

Installed, ofcourse.

x2 on that request. You'd solve my #1 headache if this could independently resize signatures to a different size than posts in images and blogs.

Any thoughts on making that a reality? Pretty please?

Oh and installed :)

MikeWarner 24 Apr 2010 08:49

I love this hack - other resizers make something that should be simple into something complicated. This hack keeps it nice and simple!

Quick question though - on trying to improve my YSlow score, it is saying that the ncode js file reference should be moved to the footer. How can I do this?

Sworm 26 Apr 2010 10:00

anybody has tried to use it on 4.0.3?

djbaxter 26 Apr 2010 10:16

Quote:

Originally Posted by Sworm (Post 2027481)
anybody has tried to use it on 4.0.3?

Yep. Working fine for me on 4.03.

[email protected] 26 Apr 2010 15:30

Working fine on 4.0.3 here as well

ps2wiz 26 Apr 2010 22:23

Has anyone else experienced this problem?

After I move a thread that has a resized image, the image appears in its original size. Almost like after moving any thread, this mod excludes it... Any help please?

Manoel Júnior 27 Apr 2010 01:16

VERY, VERY Thanks!!!!!

Great bro!

ps2wiz 27 Apr 2010 03:05

Quote:

Originally Posted by ps2wiz (Post 2027811)
Has anyone else experienced this problem?

After I move a thread that has a resized image, the image appears in its original size. Almost like after moving any thread, this mod excludes it... Any help please?

In addition to this, if a user edits their post and adds a new image, that new image will not be resiszed.

Manoel Júnior 27 Apr 2010 03:44

Would not add to the bar the original image size and for how much it was resized?

cvn 27 Apr 2010 05:54

Seven Skins made another mod named "Image Resizer - CMS | Blogs | Posts | Signatures | Albums | VM's | PM's" that resizes images in CMS, Blogs, posts... I installed it in 4.0.2 PL1 and it works well. But I'm not sure if it works with 4.0.3, any one knows?

The mod is already moved to the Modification Graveyard, do you know the reason?

edwinlar 27 Apr 2010 06:35

me funciono perfecto

Sworm 28 Apr 2010 13:36

Don't work for me is it not retroactive. Uninstalled

ToNetU 29 Apr 2010 01:27

thanks but what about profile? and why when i post a pic and then when i want to edit that post to add new picture or write something, the picture i have posted disappear?

any update for this?

installed..

nick682 03 May 2010 21:06

Is there any way I can use this mod to resize images in my VSa - ChatBox (AJAX) http://www.vbulletin.org/forum/showthread.php?t=235271 ?

doraj 04 May 2010 20:49

Hello,

is this Hack compatible also with vB CMS?

Thank you

Seven Skins 04 May 2010 21:35

Hack description is:

Quote:

This hack resizes images in posts, signatures, blog home page and blog entry page.

doraj 05 May 2010 21:26

I understand, Seven could you update the Hack and make it compatible also with vB CMS?
It's very used and will be a great news for all member that use it.
Thank you :)

sticky 05 May 2010 23:09

Quote:

Originally Posted by doraj (Post 2032294)
I understand, Seven could you update the Hack and make it compatible also with vB CMS?
It's very used and will be a great news for all member that use it.
Thank you :)

Is there an image resizer that works with the CMS?

Manoel Júnior 05 May 2010 23:34

1 Attachment(s)
How to with information image real:

Attachment 116741

Xencored 07 May 2010 17:58

Quote:

Originally Posted by Seven Skins (Post 2001515)
I am making another hack and it seems to work on CMS and albums. I will post it when I complete the hack.
.

Hi mate cant wait for this but is that the one in the graveyard?

sticky 09 May 2010 08:53

Quote:

Originally Posted by Animemike (Post 2033251)
Hi mate cant wait for this but is that the one in the graveyard?

Same question.

Seven Skins 09 May 2010 17:00

No that is a different one.
I asked that to be moved to graveyard due to it was resizing all the images including banners etc.

Xencored 09 May 2010 17:11

Quote:

Originally Posted by Seven Skins (Post 2034168)
No that is a different one.
I asked that to be moved to graveyard due to it was resizing all the images including banners etc.

Ah right awesome mate when can we hope for the cms /album one :D

Group Messages
by janslu
10 May 2010 13:09

I think that's still the best image resizer. Thanks for your work.

Has anyone been able to enable this for group discussions? I've tried creating a plugin hooked to group_discussionbit_display_complete with the following code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but it doesn't seem to work. Any help will be appreciated.

murekhalir 11 May 2010 06:49

sexy

sticky 13 May 2010 03:03

When can we expect the new version that works with the CMS?

Alecsmith 13 May 2010 07:07

Working perfectly thanks :)

LHCGreg 14 May 2010 02:49

Resizing does not happen in post preview mode. Also, it would be great if you could choose the resize threshold separately for images in signatures. Otherwise, great mod.

ArminTECH 16 May 2010 04:00

Installed

puertoblack2003 18 May 2010 20:02

hello,

members that is using IE is getting program force close on my site homepage.I had to disable it and find another alternate solution.

Theater 24 May 2010 18:06

Quote:

Originally Posted by tuwebfacil (Post 1998771)
Hi, its there any way to make it work with vbadvanced?

thank you, great mod!!

2nd this ^^^

The original one had support to let it work for vBadvanced.
http://www.ncode.nl/vbulletinplugins/

Thank you for the mod as well. It works great for the forums part of my site. :)

neverstop 27 May 2010 18:21

anyone else having trouble with the css of the warning bar with this? I edit the table.ncode_imageresizer_warning css and it no changes get made?

KURTZ 30 May 2010 14:08

is there the possibility to put the resized images centered in the post by default?

djbaxter 30 May 2010 14:34

Quote:

Originally Posted by KURTZ (Post 2045511)
is there the possibility to put the resized images centered in the post by default?

I for one would not like it centered by default.

If you want the image centered, put center tags around it.

KURTZ 30 May 2010 14:36

Quote:

Originally Posted by djbaxter (Post 2045517)
I for one would not like it centered by default.

If you want the image centered, put center tags around it.

OK, but if i wanna do that? what is the way? :p

djbaxter 30 May 2010 14:47

Quote:

Originally Posted by KURTZ (Post 2045518)
OK, but if i wanna do that? what is the way? :p

  1. Insert image using any method you like.
  2. Highlight image.
  3. Click on center icon in edit bar above edit box.
There may well be others who would like the OPTION of having images centered by default. I'm just saying that I would personally NOT like that as the only option.

KURTZ 30 May 2010 15:27

Quote:

Originally Posted by djbaxter (Post 2045522)
  1. Insert image using any method you like.
  2. Highlight image.
  3. Click on center icon in edit bar above edit box.
There may well be others who would like the OPTION of having images centered by default. I'm just saying that I would personally NOT like that as the only option.

i know this mate, i'm wondering about if we can do this with some edits into the plug-in ... :)

djbaxter 30 May 2010 15:43

Oh.

I would start by trying various edits to the template: sevenskins_imageresizer

Big C 31 May 2010 04:21

Works great!! Thanks!

Marked as installed

Kolbi 01 Jun 2010 15:07

Why is the clientscript file not compressed?

samuelflo 02 Jun 2010 21:41

Works great. Looking forward to one that will do the Albums...that would be awesome. I love how simple this is.

Installed, and nominated.

stemmy 13 Jun 2010 18:45

Its been asked before but does this hack work with linked images ??

JAFRI 14 Jun 2010 05:15

nice ,,, Thanks

pant 14 Jun 2010 08:07

Quote:

Originally Posted by stemmy (Post 2053034)
Its been asked before but does this hack work with linked images ??

It's been answered before, yes. :D

BlackHoster 19 Jun 2010 10:16

Not working with 4.4 thank you :)


All times are GMT. The time now is 18:34.

Powered by vBulletin® Version 3.8.14
Copyright © 2023, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.