Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Resize large [IMG] images and link them to original Details »
Resize large [IMG] images and link them to original
Mod Version: 1.01, by nsanden (Member) nsanden is offline
Developer Last Online: Aug 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.1 Rating: (4 votes - 5.00 average) Installs: 38
Released: 26 Sep 2006 Last Update: Never Downloads: 16
Not Supported Template Edits Code Changes Is in Beta Stage  

This mod should resize [IMG] images wider than 'max_width' and link them to their original size. Not very well tested, i'm hoping for some feedback/suggestions. I have tested in firefox/IE latest versions and it seems to work fine. Should be a pretty quick install.

INSTALL:

1) Edit /includes/class_bbcode.php around line 1879 for me.

Look for:

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

Change to:

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

2) Add the following to the headinclude template.


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

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.
  • 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 11:04
Forum Display Enhancements Auto Resize large images in an IMG tag mr.gamesbay vBulletin 3.6 Add-ons 145 13 Feb 2009 17:04
Auto Resize large images in an IMG tag mr.gamesbay vBulletin 3.5 Add-ons 39 16 Dec 2008 16:47

Comments
  #2  
Old 26 Sep 2006, 02:22
Comalies's Avatar
Comalies Comalies is offline
 
Join Date: Aug 2005
Demo/screenshot please.
Reply With Quote
  #3  
Old 26 Sep 2006, 02:42
teedizz teedizz is offline
 
Join Date: Jan 2004
will this also resize sigs in the [IMG] tags? if so can you prevent that. thanks.
Reply With Quote
  #4  
Old 26 Sep 2006, 03:56
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
Originally Posted by Comalies
Demo/screenshot please.
here:
his mod should resize [IMG] images and link them to their original size.
__________________
cobraws
Reply With Quote
  #5  
Old 26 Sep 2006, 04:45
nsanden nsanden is offline
 
Join Date: Nov 2003
You can demo it on http://www.timesharetrap.com/forums/...tyleid=1#post7

Last edited by nsanden; 26 Sep 2006 at 04:49.
Reply With Quote
  #6  
Old 26 Sep 2006, 04:52
nsanden nsanden is offline
 
Join Date: Nov 2003
Originally Posted by teedizz
will this also resize sigs in the [IMG] tags? if so can you prevent that. thanks.
I believe it would. Why wouldn't you want that though?
Reply With Quote
  #7  
Old 26 Sep 2006, 05:04
teedizz teedizz is offline
 
Join Date: Jan 2004
because some of my members use sigs like 650x650 & it still resizes those. I just want it for pictures in threads.
Reply With Quote
  #8  
Old 26 Sep 2006, 05:06
teedizz teedizz is offline
 
Join Date: Jan 2004
the other img hack wouldnt do that. I like this one alot better so hopefully you can add that as an option
Reply With Quote
  #9  
Old 26 Sep 2006, 05:45
nsanden nsanden is offline
 
Join Date: Nov 2003
Updated, so the images are hidden until the browser actually resizes them. (This way you don't see the page loading with big images and then all of a sudden shrink to the right size.)
Reply With Quote
  #10  
Old 26 Sep 2006, 05:46
nsanden nsanden is offline
 
Join Date: Nov 2003
Sorry teedizz i don't think i'm going to add that change. Doesn't make sense to me. No reason to resize images in the post if you aren't going to resize images in the signature as well. Whole point is to NOT break your design.
Reply With Quote
  #11  
Old 26 Sep 2006, 08:10
principino1984 principino1984 is offline
 
Join Date: Jul 2006
Real name: Marco Dominici
id doesn't work on my forum, as soon as I write down the headinclude text all the images in my forum won't show up anymore.

Marco
Reply With Quote
  #12  
Old 26 Sep 2006, 15:35
NeutralizeR NeutralizeR is offline
 
Join Date: Aug 2005
Hi,

I've almost tried all image resizing hacks and will install this one soon.

Note: You should also consider this adding for private messages, too: <if condition="THIS_SCRIPT == ''">
__________________
MsXLabs Forum
Reply With Quote
  #13  
Old 26 Sep 2006, 16:12
epicbear epicbear is offline
 
Join Date: May 2006
I tried it because an upgrade killed my old fix and I can't remember which version I had installed...but it wrote the dimensions into the html so that they were resized as they were downloading. I liked that better than a blank page till all are downloaded.

I also added a link target to your code so they don't open in the same browser.
Reply With Quote
  #14  
Old 26 Sep 2006, 18:39
nsanden nsanden is offline
 
Join Date: Nov 2003
Originally Posted by principino1984
id doesn't work on my forum, as soon as I write down the headinclude text all the images in my forum won't show up anymore.

Marco
What browser and OS are you using?
Reply With Quote
  #15  
Old 26 Sep 2006, 18:43
principino1984 principino1984 is offline
 
Join Date: Jul 2006
Real name: Marco Dominici
Originally Posted by nsanden
What browser and OS are you using?

firefox and winxp sp2

Marco
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 16:16.

Layout Options | Width: Wide Color: