Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Auto Resize large images in an IMG tag Details »
Auto Resize large images in an IMG tag
Mod Version: 1.00, by mr.gamesbay (Member) mr.gamesbay is offline
Developer Last Online: Dec 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.4 Rating: (16 votes - 4.50 average) Installs: 271
Released: 01 Sep 2006 Last Update: Never Downloads: 1194
Not Supported Template Edits Code Changes Additional Files  

First, sorry about my bad english

With this small hack, all large images in an IMG Tag will be resized after the site has loaded. With a click on the resized imge, it will open in an new window with the original size. Works in Firefox, Opera, IE and i think in all other browser.
Here is a Demo: Link

Work with vB 3.6.0 - 3.6.4

INSTALLATION:

--------------------------------

- Copy the file resizevbimg.js in the dir clientscript.

--------------------------------

Open the file includes/class_bbcode.php
Search the line(~line 1887 ):


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

and replace with:

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

Save and upload.

--------------------------------

Styles & Templates > Search the SHOWTHREAD Template
Seach:

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

Replace with:

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

Save the template.

--------------------------------

Styles & Templates > Search the NEWREPLY Template
Search:

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

Replace with:

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

Save the template.

--------------------------------

- Styles & Templates > Style Manager > Common Templates > headinclude
Search:

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

After, add:

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

Save the template.

--------------------------------

Styles & Templates > Style Manager > Main CSS > Additional CSS Definitions

After, add:

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

Save.
--------------------------------

Done

Download Now

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

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Show Thread Enhancements Auto Resize large images in an IMG tag mr.gamesbay vBulletin 3.7 Add-ons 38 28 Sep 2010 10:04
Auto Resize large images in an IMG tag mr.gamesbay vBulletin 3.5 Add-ons 39 16 Dec 2008 15:47
Auto-Resize Large Images - EASY Version paul41598 vBulletin 3.5 Add-ons 34 02 Aug 2007 20:20

Comments
  #2  
Old 01 Sep 2006, 13:40
Terminatoronly's Avatar
Terminatoronly Terminatoronly is offline
 
Join Date: Mar 2006
wow good hack installed
Reply With Quote
  #3  
Old 01 Sep 2006, 13:51
Kaezul Kaezul is offline
 
Join Date: Mar 2005
Real name: Jarin
Nice job. I've seen this done before, but never on [IMG] tags. Fantastic work.
__________________
I am currently MOVING and rarely have internet. Please forward all e-mail to my e-mail address and I will get back to you when I can!
Reply With Quote
  #4  
Old 01 Sep 2006, 14:24
principino1984 principino1984 is offline
 
Join Date: Jul 2006
Real name: Marco Dominici
I just installed this hack, but...how does it work? I tried to upload a new pic, but it doens't resize it..

Marco
Reply With Quote
  #5  
Old 01 Sep 2006, 14:59
thedvs thedvs is offline
 
Join Date: May 2002
that is one of the best mini hacks released for ages, many many thanks dude.
works in ie/firefox
Reply With Quote
  #6  
Old 01 Sep 2006, 15:38
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
I just came here to look for something like this after a member posted gigantic pictures! Thanks.
Reply With Quote
  #7  
Old 01 Sep 2006, 16:16
mr.gamesbay's Avatar
mr.gamesbay mr.gamesbay is offline
 
Join Date: Sep 2004
Originally Posted by principino1984
I just installed this hack, but...how does it work? I tried to upload a new pic, but it doens't resize it..

Marco
All large images in an IMG Tag will be resized like in the demo URL in my first post
Reply With Quote
  #8  
Old 01 Sep 2006, 17:27
spetactical spetactical is offline
 
Join Date: Aug 2005
Great work!
Reply With Quote
  #9  
Old 01 Sep 2006, 17:37
asj's Avatar
asj asj is offline
 
Join Date: Jul 2006
Thanks for man
Reply With Quote
  #10  
Old 01 Sep 2006, 17:54
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Real name: Colin
Thumbs up

Originally Posted by mr.gamesbay
All large images in an IMG Tag will be resized like in the demo URL in my first post
are the images physicaly resized or do they just display at a smaller size?
edit: looks like it loads the full image then resizes it on the fly

GREAT HACK! THANKS

update: installed and works perfectly!
__________________
-alkatraz
Northwest Nissans Classifeds

Last edited by alkatraz; 01 Sep 2006 at 18:35.
Reply With Quote
  #11  
Old 01 Sep 2006, 18:26
Get Shorty's Avatar
Get Shorty Get Shorty is offline
 
Join Date: Jun 2006
Real name: Nick
Originally Posted by Kaezul
Nice job. I've seen this done before, but never on [IMG] tags. Fantastic work.
This hack does the same thing...

http://www.vbulletin.org/forum/showthread.php?t=118048
Reply With Quote
  #12  
Old 01 Sep 2006, 20:08
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Mine is not resizing either... This should work for all usergroups, right?

It may be my work lapptop as I have to use an older Java because of some specific apps I need... I'll see later if it works on other machines?

Last edited by Quarterbore; 01 Sep 2006 at 20:10.
Reply With Quote
  #13  
Old 01 Sep 2006, 20:17
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
great u sexy piece of ass.
__________________
RaGEZONE
Reply With Quote
  #14  
Old 01 Sep 2006, 20:31
Alex_ Alex_ is offline
 
Join Date: Jan 2006
What happens with
[ url=blar ][ img ][ /img ][ /url ]
constructs? Which link will not work?

// Edit - hmhm url tags are converted within code boxes?!
Reply With Quote
  #15  
Old 02 Sep 2006, 00:01
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Do you have some kind of a screenshot or something?
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 06:36.

Layout Options | Width: Wide Color: