Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

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: 3.8.x Rating:
Released: 04-15-2012 Last Update: 05-02-2012 Installs: 20
Supported Uses Plugins
Translations  

Brought to you by BirdOPrey5
www.Qapla.com


Version 1,5 - Fixed new bugs - Added yes/no 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 - Fixes "Cannot Re-declare function" error with some mods
Version 1.1 - Better support for CKEDITOR in VB4
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 3.6.x +

Please Mark as Installed if you use this.
Donations Always Appreciated. :up:

Download Now

File Type: zip Max Image Size Restriction by BOP5 v15.zip (4.9 KB, 69 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.
2 благодарности(ей) от:
home9000, Sayid

Comments
  #22  
Old 04-20-2012, 06:01 AM
home9000 home9000 is offline
 
Join Date: Aug 2005
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear BirdOPrey5

I test it with new large image but nothing happen
It's ignore the hack and insert the images as image not link
Reply With Quote
  #23  
Old 04-20-2012, 03:47 PM
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 home9000 View Post
Dear BirdOPrey5

I test it with new large image but nothing happen
It's ignore the hack and insert the images as image not link
And you are sure you enabled the mod in settings?

I don't know what the issue is- if you want to give me temporary admin access PM me and I will take a look and figure out the problem.
Reply With Quote
  #24  
Old 04-26-2012, 06:11 AM
home9000 home9000 is offline
 
Join Date: Aug 2005
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
And you are sure you enabled the mod in settings?

I don't know what the issue is- if you want to give me temporary admin access PM me and I will take a look and figure out the problem.
Yes I am sure this the mod is enabled

I can't give you access because this forum owned by a company I am just a worker with them
Reply With Quote
  #25  
Old 04-26-2012, 12:52 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you use a lot of other mods? Can you go to product manger and paste a list of the mods installed here?

Maybe something will stick out.
Reply With Quote
  #26  
Old 04-28-2012, 12:55 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.4 - simplified code - suggest everyone upgrade. Anyone who was having problems, please try this new version.
Reply With Quote
  #27  
Old 05-03-2012, 07:57 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
  #28  
Old 11-05-2012, 08:45 PM
home9000 home9000 is offline
 
Join Date: Aug 2005
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BirdOPrey5

I use the following hack :
https://vborg.vbsupport.ru/showthread.php?t=123338

but desent work if the file size rech the maximum size

Can I make the following order :

1- if there is any image first Image Cache hack will run
2- after that Maximum Embedded Image will run

now what is happen is opposite Maximum Embedded Image run then Image Cache hack
Reply With Quote
  #29  
Old 11-10-2012, 08:09 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 can do whatever you want if you can figure it out- I'm sorry I don't have time to look into how the image cache hack works.
Reply With Quote
  #30  
Old 11-13-2012, 06:36 AM
al2thero al2thero is offline
 
Join Date: Aug 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot
Reply With Quote
  #31  
Old 04-01-2013, 10:43 PM
Dwarden Dwarden is offline
 
Join Date: Nov 2011
Location: Czech Republic, EU
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there known issue on 4.2.x with this plugin ? I tried use your example picture and it fails to be replaced , yet on some other hosting it is replaced ....
Reply With Quote
Reply


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 02:51 PM.


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.05488 seconds
  • Memory Usage 2,339KB
  • Queries Executed 26 (?)
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
  • (2)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • 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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete