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)
-   -   Miscellaneous Hacks - Smush.it Attachment & Avatar (https://vborg.vbsupport.ru/showthread.php?t=275542)

EXIDE 12-14-2011 11:00 PM

Smush.it Attachment & Avatar
 
1 Attachment(s)
This sends your image attachments and avatars to smush.it for compression, if the image can be compressed it will download the newly compressed one and replace the attachment or avatar with it.

If you would like features added to it or you find any bugs or problems please let me know.

ACP->Settings->Options->Smush.it Attachment & Avatar Options

[Requirements]
You need to be using PHP 5.2.0 or greater.
You must be storing attachments and avatars in the filesystem.


3.8.x Version: https://vborg.vbsupport.ru/showthread.php?t=275577

http://www.smushit.com/ysmush.it/

[Updates]
16/12/11:
Fixed settings options not being added.

30/12/11:
Added option to smush user uploaded avatars.
Smarter way of fetching avatars and attachments.

24/3/12:
Added TABLE_PREFIX to install and uninstall code.
Fixed typo in uninstall code.

Remember to select "Allow Overwrite" when importing the product.

dothanhtrung 12-16-2011 01:11 AM

can you make for 3.8.x

EXIDE 12-16-2011 05:26 PM

Quote:

Originally Posted by dothanhtrung (Post 2278182)
can you make for 3.8.x

Done.
https://vborg.vbsupport.ru/showthread.php?t=275577

Alfa1 12-17-2011 02:33 AM

Awesome! I was waiting for this.

Sage Knight 12-17-2011 04:22 AM

ooh <3

Is it possible to compress forum avatars?

dothanhtrung 12-17-2011 03:33 PM

Quote:

Originally Posted by EXIDE (Post 2278374)

thank you very much:up:

Alecsmith 12-18-2011 11:46 AM

Excellent mod tagged for now :D

klaus 12-20-2011 11:05 PM

How do I know if it is working and/or what percentage the image got compressed.

I have a similar plugin in Wordpress and love it.

A future addition would be the ability to re-smush attachments already in the forum. Attachments that got uploaded prior to this plugin.

Alfa1 12-21-2011 07:33 AM

Quote:

Originally Posted by klaus (Post 2279569)
A future addition would be the ability to re-smush attachments already in the forum. Attachments that got uploaded prior to this plugin.

That would make a world of difference.

Disasterpiece 12-21-2011 09:20 AM

This messes up my error_reporting setting... Could you change it to this?

PHP Code:

            $err_old error_reporting(0);
            
            if (
file_exists($sattachment['attachment_folder_id']))
            {
...
            }
            
            
error_reporting($err_old); 

Did this by myself but maybe you might want to include this in the next update, since it's more generic and respects the administrator's own settings.

@see http://de3.php.net/manual/en/functio...-reporting.php


All times are GMT. The time now is 12:05 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
  • Page Generation 0.01337 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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