![]() |
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 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: |
Reserved.
|
save bandwidth...thank you BOP5 :)
|
Very brilliant and simple mod,
|
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 |
Quote:
I added new code to prevent this error- please try version 1.2, just released. :) |
It does not work vB3.8.4
|
Quote:
Thanks. I assume by "doesn't work" you mean the image just posts as normal? Or do you get an error message? |
Quote:
http://www.arteforos.com/showthread.php?p=106#post106 it is enabled. Update info: Settings is similar to yours in the link |
Sorry about that- try this new version, 1.3.
|
All times are GMT. The time now is 05:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|