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
  #2  
Old 04-15-2012, 10:31 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-16-2012, 11:35 AM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

save bandwidth...thank you BOP5
Reply With Quote
Благодарность от:
BirdOPrey5
  #4  
Old 04-16-2012, 05:00 PM
Sayid Sayid is offline
 
Join Date: Jan 2009
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very brilliant and simple mod,
Reply With Quote
  #5  
Old 04-19-2012, 05:35 AM
home9000 home9000 is offline
 
Join Date: Aug 2005
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks BirdOPrey5 for your effort

I just try it but I get this error :


Fatal error: Cannot redeclare getsizefilebop() (previously declared in /home/dor/public_html/BB/includes/class_dm_threadpost.php(744) : eval()'d code:38) in /home/dor/public_html/BB/includes/class_dm_threadpost.php(744) : eval()'d code on line 4
Reply With Quote
  #6  
Old 04-19-2012, 10:37 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 home9000 View Post
Thanks BirdOPrey5 for your effort


I just try it but I get this error :


Fatal error: Cannot redeclare getsizefilebop() (previously declared in /home/dor/public_html/BB/includes/class_dm_threadpost.php(744) : eval()'d code:38) in /home/dor/public_html/BB/includes/class_dm_threadpost.php(744) : eval()'d code on line 4
There must be another mod reusing the same hook twice.

I added new code to prevent this error- please try version 1.2, just released.
Reply With Quote
  #7  
Old 04-19-2012, 03:28 PM
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does not work vB3.8.4
Reply With Quote
  #8  
Old 04-19-2012, 03:36 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 ricardoNJ View Post
It does not work vB3.8.4
Can I get a link to your forum? If the mod is enabled let me know what your size setting is as well.

Thanks.

I assume by "doesn't work" you mean the image just posts as normal? Or do you get an error message?
Reply With Quote
  #9  
Old 04-19-2012, 03:48 PM
ricardoNJ ricardoNJ is offline
 
Join Date: Sep 2008
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Can I get a link to your forum? If the mod is enabled let me know what your size setting is as well.

Thanks.

I assume by "doesn't work" you mean the image just posts as normal? Or do you get an error message?

http://www.arteforos.com/showthread.php?p=106#post106


it is enabled.

Update info:

Settings is similar to yours in the link
Reply With Quote
  #10  
Old 04-19-2012, 03: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

Sorry about that- try this new version, 1.3.
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 08:28 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.04419 seconds
  • Memory Usage 2,335KB
  • 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
  • (3)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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
  • 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