vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Maximum Embedded Image (File) Size Restriction by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=281600)

BirdOPrey5 04-15-2012 10:00 PM

Maximum Embedded Image (File) Size Restriction by BOP5
 
1 Attachment(s)
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! ;)

BirdOPrey5 04-15-2012 10:28 PM

Reserved.

Mr_Running 04-19-2012 10:11 AM

What is the External Content?

BirdOPrey5 04-19-2012 10:41 AM

Quote:

Originally Posted by Mr_Running (Post 2321532)
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.

BirdOPrey5 04-28-2012 12:56 PM

Version 1.4 - Simplified code - should fix any remaining issues - suggest everyone upgrade.

BirdOPrey5 05-03-2012 07:54 PM

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.

thecore762 05-04-2012 02:46 AM

Awesome mod!

Acido 10-26-2012 07:14 PM

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 ?

Acido 10-29-2012 03:18 PM

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.

BirdOPrey5 11-10-2012 08:20 PM

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


All times are GMT. The time now is 09:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01066 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete