Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Maximum Embedded Image (File) Size Restriction by BOP5 Details »»
Maximum Embedded Image (File) Size Restriction by BOP5
Mod Version: 1.5, by BirdOPrey5 (Moderator) BirdOPrey5 is offline
Developer Last Online: Aug 2014 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (4 votes - 5.00 average) Installs: 18
Released: 15 Apr 2012 Last Update: 03 May 2012 Downloads: 75
Supported Uses Plugins Translations External Content  

Brought to you by BirdOPrey5
www.Qapla.com


Version 1.5 - Fixed new bugs - Added new option for edits
Version 1.4 - Simplified code - should fix any remaining issues
Version 1.3 - Fixes big with WYSIWYG Editor on New Threads in VB 4.1.4 and lower (Including 3.x)
Version 1.2 - Fixed error with some other mods
Version 1.1 - Better Support for CKEDITOR
Version 1.0 - Initial Release

Live Demo:Max Image Size Restrictions Demo at Qapla.com

The purpose of this mod is to make forum pages load faster. Too often users don't care how big (in bytes) the images they link to are. If you have an image resizer all they care about is that it fits on the page but not how long it may take to download. If you have a post with several or even dozens of these images you can quickly create a slow loading page. Search Engines give priority to faster loading pages so it could even be damaging SEO.

This mod will automatically check every image being embedded via [IMG] BBCode. If the file size is over a value you specify the mod will automatically change the [IMG] code to a [url] link instead. You can choose to include the file size (in kB) next to the link and you can specify the text of link as well- or simply use the URL as the link text. Go to the mod settings after installation to set these options.

Note- Changes are made at the time the post is submitted or edited so it will not change existing posts.

Should be compatible with all VB's since VB 3.6. Tested and confirmed working on VB 3.8.7, 4.0.8, 4.1.10, 4.1.12 and 4.2.1.

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

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Download Now

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

Screenshots

Click image for larger version

Name:	max_img_size_post_vb3.jpg
Views:	251
Size:	140.8 KB
ID:	137797Click image for larger version

Name:	max_img_size_post_vb4.jpg
Views:	204
Size:	85.2 KB
ID:	137798Click image for larger version

Name:	max_img_size_settings.jpg
Views:	121
Size:	185.5 KB
ID:	137799

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.
Comments
  #2  
Old 15 Apr 2012, 23:28
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Reserved.
__________________
-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 19 Apr 2012, 11:11
Mr_Running Mr_Running is offline
 
Join Date: May 2010
What is the External Content?
Reply With Quote
  #4  
Old 19 Apr 2012, 11:41
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Mr_Running View Post
What is the External Content?
I was back and forth on whether this mod needs that "notice" but I figured why not...

The "external content" is the external image someone is linking to- since this mod doesn't work without such a link I figured the notice was appropriate.

Don't worry, there isn't any other external content.


ALSO - FYI - Released version 1.2. This isn't a necessary upgrade unless you were getting an error on the earlier version- the error only comes when used in combination with some other unknown (to me) mods though.
__________________
-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
  #5  
Old 28 Apr 2012, 13:56
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Version 1.4 - Simplified code - should fix any remaining issues - suggest everyone upgrade.
__________________
-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
  #6  
Old 03 May 2012, 20:54
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Updated to 1.5 - Fixed a bug where the mod wouldn't disable on new threads even on forums listed as disabled.

Added new Yes/No option to enable on post edits or not.
__________________
-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
  #7  
Old 04 May 2012, 03:46
thecore762 thecore762 is offline
 
Join Date: Jul 2008
Awesome mod!
__________________
www.47r-squad.com BF3|CS:S|TF2|L4D2 Gaming community
Reply With Quote
  #8  
Old 26 Oct 2012, 20:14
Acido Acido is offline
 
Join Date: Apr 2003
Some images are passing the mod in my board, and are still published in the posts. I set a max of 250Kb. Do you know if there are a conflict with other mod or what can be happening ?
Reply With Quote
  #9  
Old 29 Oct 2012, 15:18
Acido Acido is offline
 
Join Date: Apr 2003
I found that the mod Double Post Prevention is giving conflict with your mod of size restriction for images. May be by set up another execution order for the plugin will solve the issue? Hope you can help.

Thank you.
Reply With Quote
  #10  
Old 10 Nov 2012, 20:20
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
You could try changing the execution order, it shouldn't hurt anything- if it does just change it back.
__________________
-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
  #11  
Old 19 Nov 2012, 16:56
Acido Acido is offline
 
Join Date: Apr 2003
I'm not sure why, but the function that you are using doesn't work right on my server.

I solve the issue changing the function getSizeFileBOP by this one:


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

It's also posted on http://php.net/manual/en/function.filesize.php

Using that function this add-on works perfect on my installation. Hope it help.
Reply With Quote
  #12  
Old 22 Jul 2013, 15:04
datoneer's Avatar
datoneer datoneer is offline
 
Join Date: Jul 2011
Thanks BOP5 you're the best
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 09:05.

Layout Options | Width: Wide Color: