Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
The most simple image resizer Details »»
The most simple image resizer
Mod Version: 1.00, by Frosty (Contributor) Frosty is offline
Developer Last Online: Dec 2011 I like it Show Printable Version Email this Page

vB Version: 3.8.7 Rating: (5 votes - 4.60 average) Installs: 22
Released: 06 Aug 2011 Last Update: Never Downloads: 0
Not Supported Code Changes  

If you're sick of all those JS based image resizers, you can use this simple code modification to resize high resolution images everywhere.

Go to: /includes/class_bbcode.php (Line 1987)

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.

Depending on your post table width, you might change "700px" to some other value, e.g. "800px". It will only resize images that are wider than 700px, which will make them fit to the post table.

There are no other edits required, if user wants to see the full image he'll have to go right click and then view image. Which is in my opinion way better than that fancy "Click to see it in full resolution".

Simple but effective!

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
Image resizer Spleasure vBulletin 3.6 Add-ons 847 23 Jun 2011 18:07

Comments
  #2  
Old 07 Aug 2011, 12:24
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Very interesting simple edit...

If you changed it to this:


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

That would make each image a link to the full size image, like here on vbulletin.org.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #3  
Old 08 Aug 2011, 07:19
Frosty Frosty is offline
 
Join Date: Apr 2011
Yup, that's also good. Even though you could add target="_blank" to open in a new window, to make it easier if there are many images in the thread.
Reply With Quote
  #4  
Old 12 Aug 2011, 13:01
zekiturk zekiturk is offline
 
Join Date: Mar 2007
hoe can we doing " alt="thema title" "
Reply With Quote
  #5  
Old 17 Aug 2011, 21:22
el-q6ri el-q6ri is offline
 
Join Date: Jan 2008
hi thanks for the mode

I use it like this


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

but the problem

if the image is has a link for a post or any url it will not lead to the link I want to for example


__________________
www.souqaldoha.com
Reply With Quote
  #6  
Old 25 Dec 2011, 02:24
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
Ist here any way to set an if for the image size ?

I mean if the image size was bigger than 600px it makes it like this

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

but if it was smaller than 600px it makes it like this one :


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

??

any help is really appreciated ...
Reply With Quote
  #7  
Old 25 Dec 2011, 17:13
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Yes and no...

You could test for it but it would require custom php code and you would need to download a copy of every image, at least temporarily, to you server so you could read the size- this would be a relatively slow process but possible, yes.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #8  
Old 25 Dec 2011, 18:06
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
thanks for the reply,

got it, so I think I am gonna leave it for now
Reply With Quote
  #9  
Old 25 Dec 2011, 18:19
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Simple and elegant solution. The BOP5 boost to it really helps too.
Reply With Quote
  #10  
Old 25 Dec 2011, 18:24
A.Chakery's Avatar
A.Chakery A.Chakery is offline
 
Join Date: Jul 2007
Real name: Ali Chakery
unfortunately if I add <a href="'. $link .'"> before the image links in class_bbcode.php, all of images will be linked to themselves so they won't accept URLs anymore.Its a big problem for my website.
Reply With Quote
  #11  
Old 12 Jan 2012, 13:54
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Real name: Valdet
Needless to say that if you just add a simple text like Image: on top of embedded images, you will prevent invisible/transparent images, used as links.


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

We had an interesting situation where one spammer was inserting 1x1 px. images and linking them to his site.

With that single code hack, I was able to find in which posts he dropped his link, clear them off and ban him instantly.
Reply With Quote
  #12  
Old 10 Apr 2012, 18:42
Fivestones's Avatar
Fivestones Fivestones is offline
 
Join Date: Jan 2009
i added it and works great thanks ...
Reply With Quote
  #13  
Old 11 Apr 2012, 00:49
blind-eddie's Avatar
blind-eddie blind-eddie is online now
 
Join Date: Apr 2006
Real name: Tim McGraw
Nice edit...Thanks
Reply With Quote
  #14  
Old 11 Aug 2012, 02:42
RFViet RFViet is offline
 
Join Date: Jan 2006
thank you
Reply With Quote
  #15  
Old 13 Aug 2012, 23:35
tehPARADOX tehPARADOX is offline
 
Join Date: Feb 2007
Thanks, might ditch the other mod with bloated features.
__________________
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 19:58.

Layout Options | Width: Wide Color: