Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Maximum Embedded Image (File) Size Restriction by BOP5 Details »»
Maximum Embedded Image (File) Size Restriction by BOP5
Version: 1.5, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.x.x Rating:
Released: 04-15-2012 Last Update: 05-02-2012 Installs: 21
Supported Uses Plugins
Translations  

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. :up:
Nominate MOTM if you LOVE it!

Download Now

File Type: zip Max Image Size Restriction by BOP5 v15.zip (4.9 KB, 73 views)

Screenshots

File Type: jpg max_img_size_post_vb3.jpg (140.8 KB, 0 views)
File Type: jpg max_img_size_post_vb4.jpg (85.2 KB, 0 views)
File Type: jpg max_img_size_settings.jpg (185.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-15-2012, 10:28 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
  #3  
Old 04-19-2012, 10:11 AM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the External Content?
Reply With Quote
Благодарность от:
BirdOPrey5
  #4  
Old 04-19-2012, 10:41 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #5  
Old 04-28-2012, 12:56 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.4 - Simplified code - should fix any remaining issues - suggest everyone upgrade.
Reply With Quote
  #6  
Old 05-03-2012, 07:54 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-04-2012, 02:46 AM
thecore762 thecore762 is offline
 
Join Date: Jul 2008
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome mod!
Reply With Quote
  #8  
Old 10-26-2012, 07:14 PM
Acido Acido is offline
 
Join Date: Apr 2003
Location: Argentina
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 10-29-2012, 03:18 PM
Acido Acido is offline
 
Join Date: Apr 2003
Location: Argentina
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 11-10-2012, 08:20 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could try changing the execution order, it shouldn't hurt anything- if it does just change it back.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04782 seconds
  • Memory Usage 2,321KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete