Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Image Resizer Javascript Details »
Image Resizer Javascript
Mod Version: 1.00, by yoyoyoyo (Member) yoyoyoyo is offline
Developer Last Online: Sep 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (2 votes - 5.00 average) Installs: 54
Released: 08 Nov 2007 Last Update: Never Downloads: 565
Not Supported Template Edits Auto-Template Re-usable Code Translations  

Image Resizer Javascript

With this simple javascript, if an image posted in your forum in a thread has a width that is larger then 80% of your browser resolution, it will be automagically resized. The image will also resize as you increase or decrease your browser size, so it is great for fluid styles. This javascript only affects images that are shown when viewing showthread.

NOTE: This is only a simple javascript to resize the image, there is no option to view the image at it's original size, etc., if you want to do that all you need to do is right-click on the image and choose "View Image." It does not do server side resizing of images, since everything is done client side. It also does not prevent long loading times, since the images have to be downloaded by the user before the script can resize them. If a user does not have javascript enabled then the image will not be resized - however if a person is browsing the internet, and do not have javascript enabled then an image that is too large will be the least of their worries.

This should work with all versions of vbulletin

Unlike other image resizing mods, this mod only requires one simple template edit, and no additional files , plugins, database changes or file edits.

DEMO LINK: CLICK HERE

Screenshots:
Imagine a picture that is too large, now imagine it smaller.

Installation:
If you have TMS (Template Modification System) installed, then download the templateedits-resizeimage.xml and upload it via TMS, and it will automatically edit the template.

If you do not have TMS installed, then download the image_resizer.txt file and follow the directions.

If you find this useful, please click install.
If you REALLY like it then please nominate it as Mod of the Month.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 08 Nov 2007, 05:20
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
HERE IS A DEMO LINK

PLEASE NOTE: the XML included in the first post is NOT a product! It is a TMS file, for use with the Template Modification System.

If you do not have TMS installed, then you will need to do the template edit manually (which is not really a big deal - it is only one very simple template edit).

If you do have TMS installed, then it is even easier! Simply go to the "Template-Modifications Manager" and click on [Up-/Download Template-Modifications] and then browse to the XML on your hard drive, and set "Allow Overwrite" to "Yes" and click on the "Import" button. If you are not using vb 3.6.8 then set the "Ignore File Version" to "Yes."

Last edited by yoyoyoyo; 10 Nov 2007 at 23:29.
Reply With Quote
  #3  
Old 08 Nov 2007, 05:40
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Real name: allan
No demo ?
__________________
-------------------------------------------------------------------------------------------
Administrator vBulletin-Ressources.com, French vBulletin Resources.
Reply With Quote
  #4  
Old 08 Nov 2007, 05:41
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
nice one yoyo
Reply With Quote
  #5  
Old 08 Nov 2007, 06:50
Karline's Avatar
Karline Karline is offline
 
Join Date: Feb 2007
Thumbs up superbe!

Thank you yoyoyoyo

Installed & Nominated for MotM
Reply With Quote
  #6  
Old 08 Nov 2007, 11:11
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Thanks for the installs and for the nominations

HERE IS A DEMO LINK

If anyone else wants to post a demo link I will add it to the first post.

Last edited by yoyoyoyo; 10 Nov 2007 at 23:29.
Reply With Quote
  #7  
Old 08 Nov 2007, 11:20
youradhere4222 youradhere4222 is offline
 
Join Date: Sep 2007
It says "Invalid File Specified" when uploading the XML.
Reply With Quote
  #8  
Old 08 Nov 2007, 12:45
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Originally Posted by youradhere4222 View Post
It says "Invalid File Specified" when uploading the XML.
are you uploading the xml via TMS? it is not a product - it can only be used with TMS, otherwise you will need to do the edit manually (which is no big deal - it is very simple). If you are using TMS, then re-download it, because I just tried again and it works fine.
Reply With Quote
  #9  
Old 08 Nov 2007, 18:18
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
/me clicks install
__________________
Reply With Quote
  #10  
Old 09 Nov 2007, 00:33
Sunsetdriver Sunsetdriver is offline
 
Join Date: Mar 2007
It doesn't work when I edit/quote posts with huge images.
Reply With Quote
  #11  
Old 09 Nov 2007, 00:34
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Originally Posted by Sunsetdriver View Post
It doesn't work when I edit/quote posts with huge images.
there's no reason it shouldn't - clear your web cache and try again. I just tried doing it and it works the same with edited posts as it does with freshly posted images. If you clear your web cache and are still having problems, then please PM me a URL of your site so I can take a look at what you are referring to.

You can see an example of a resized image in a quote HERE

Last edited by yoyoyoyo; 10 Nov 2007 at 23:32.
Reply With Quote
  #12  
Old 09 Nov 2007, 03:33
testebr testebr is offline
 
Join Date: Jan 2004
Live demo?
Reply With Quote
  #13  
Old 09 Nov 2007, 12:39
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
the mod takes a few seconds to install, and will not break your site - install it, then upload a large image to your forums. If you do not like it uninstall it.

HERE IS A DEMO LINK

Last edited by yoyoyoyo; 10 Nov 2007 at 23:28.
Reply With Quote
  #14  
Old 10 Nov 2007, 19:25
edenx edenx is offline
 
Join Date: Nov 2006
Does this resize big signatures?
Reply With Quote
  #15  
Old 10 Nov 2007, 19:45
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
yes, but only if the signatures contain images that are wider than the screen.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

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

Layout Options | Width: Wide Color: