Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Auto Resize images when Quoted Details »
Auto Resize images when Quoted
Mod Version: 1.00, by rokked (Member) rokked is offline
Developer Last Online: Apr 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: 20
Released: 25 Apr 2007 Last Update: Never Downloads: 94
Not Supported Code Changes Re-usable Code  

Auto Resize Images when they're Quoted
Test with: 3.6.5

This is a pretty basic add on and also my first add on. If you see anything messed up in the code or something that could be done better, please comment and I'll fix it. I'm relatively new to the add-on scene, so there could be better ways to do this.

What does this mod do?
images that get posted within the QUOTE tag will be resized to a width of 100.
thumbnails will link to the url of the actual image.

Installation:
open includes/class_bbcode.php

find:

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.

find:

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

underneath that paste the following:

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

Save & Upload.

That should be it. Hopefully it works for you!

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 10:04
Forum Display Enhancements Auto Resize large images in an IMG tag mr.gamesbay vBulletin 3.6 Add-ons 145 13 Feb 2009 16:04
auto resize huge images Tradjick vBulletin 3.0 Template Modifications 34 12 Jun 2008 15:02
Auto Resize Your Images 3.52 compliant ggiersdorf vBulletin 3.5 Add-ons 155 19 Jan 2008 16:20

Comments
  #2  
Old 25 Apr 2007, 23:52
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Real name: Shawn
Nice thought, Creative idea, Ill try it on my test site
Reply With Quote
  #3  
Old 26 Apr 2007, 05:12
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Sounds interesting.

I'll try it on my test server.
Reply With Quote
  #4  
Old 26 Apr 2007, 20:41
dope15gd's Avatar
dope15gd dope15gd is offline
 
Join Date: Jan 2006
working perfectly for me. thanks
Reply With Quote
  #5  
Old 27 Apr 2007, 03:51
Get Shorty's Avatar
Get Shorty Get Shorty is offline
 
Join Date: Jun 2006
Real name: Nick
Works flawlessly... Installed!
Reply With Quote
  #6  
Old 29 Apr 2007, 21:35
letsjoy's Avatar
letsjoy letsjoy is offline
 
Join Date: Jul 2006
Nice one thanks
__________________
"Everything you can imagine is real"
-Pablo Picasso

Pakistan - Ahmad
Reply With Quote
  #7  
Old 30 Apr 2007, 05:37
Get Shorty's Avatar
Get Shorty Get Shorty is offline
 
Join Date: Jun 2006
Real name: Nick
I changed this to resize to 200 pixels...

It would be great if it didn't increase the size of small images.
Reply With Quote
  #8  
Old 12 May 2007, 23:32
hippiesimz hippiesimz is offline
 
Join Date: Oct 2006
works for 3.65
Reply With Quote
  #9  
Old 13 May 2007, 03:03
arco arco is offline
 
Join Date: Apr 2007
Originally Posted by Get Shorty View Post
It would be great if it didn't increase the size of small images.
I'll second that. Looks kinda silly.
Reply With Quote
  #10  
Old 30 May 2007, 00:44
dope15gd's Avatar
dope15gd dope15gd is offline
 
Join Date: Jan 2006
I have a question regarding this and another hack.

I'm running the Nested Quotes hack and it seems to have killed this hack. I'm not good with the code or I'd fix it myself. Anyway if you feel it's worth your time I'd appreciate it.

thanks

edit// solved my problem. somewhere along the line the file got replaced so I just had to reapply the hack.

Last edited by dope15gd; 18 Jun 2007 at 07:53.
Reply With Quote
  #11  
Old 13 Apr 2008, 03:38
JKatz JKatz is offline
 
Join Date: Nov 2007
Will this work with 3.6.9?
Reply With Quote
  #12  
Old 13 Apr 2008, 09:38
mahsazn mahsazn is offline
 
Join Date: Feb 2008
what a good idea! i'll try it too...
Reply With Quote
  #13  
Old 31 Jan 2010, 03:14
pablete pablete is offline
 
Join Date: Feb 2009
This mod work for vb4?

Thank's
Reply With Quote
  #14  
Old 05 Jun 2012, 23:35
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Originally Posted by Get Shorty View Post
I changed this to resize to 200 pixels...

It would be great if it didn't increase the size of small images.
Originally Posted by arco View Post
I'll second that. Looks kinda silly.

I think changing to a link would be better, this way no small images are enlarged and saves even more space.

In the last code box find:

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.

Not tested but should work
Reply With Quote
  #15  
Old 23 Jun 2012, 11:44
Crimdog Crimdog is offline
 
Join Date: Dec 2007
Originally Posted by PinkMilk View Post
I think changing to a link would be better, this way no small images are enlarged and saves even more space.

In the last code box find:

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.

Not tested but should work
PinkMilk -

Is there any way you could modify this to return an if/then statement? I am using your modification above, but users are complaining and want to have the first image or two displayed as images, and the rest displayed as links. Is this easily possible?
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 21:06.

Layout Options | Width: Wide Color: