Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Smush.it Attachment & Avatar Details »
Smush.it Attachment & Avatar
Mod Version: 1.1, by EXIDE (Contributor) EXIDE is offline
Developer Last Online: Apr 2016 I like it Show Printable Version Email this Page

vB Version: 4.1.11 Rating: (3 votes - 4.67 average) Installs: 28
Released: 15 Dec 2011 Last Update: 11 May 2012 Downloads: 129
Not Supported DB Changes Uses Plugins External Content Is in Beta Stage  

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: http://www.vbulletin.org/forum/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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	settings.png
Views:	320
Size:	44.8 KB
ID:	135364  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 16 Dec 2011, 01:11
dothanhtrung dothanhtrung is offline
 
Join Date: May 2007
can you make for 3.8.x
Reply With Quote
  #3  
Old 16 Dec 2011, 17:26
EXIDE EXIDE is offline
 
Join Date: Feb 2009
Real name: Liam
Originally Posted by dothanhtrung View Post
can you make for 3.8.x
Done.
http://www.vbulletin.org/forum/showthread.php?t=275577
Reply With Quote
  #4  
Old 17 Dec 2011, 02:33
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Awesome! I was waiting for this.
Reply With Quote
  #5  
Old 17 Dec 2011, 04:22
Sage Knight's Avatar
Sage Knight Sage Knight is offline
 
Join Date: Apr 2011
ooh <3

Is it possible to compress forum avatars?
Reply With Quote
  #6  
Old 17 Dec 2011, 15:33
dothanhtrung dothanhtrung is offline
 
Join Date: May 2007
thank you very much
Reply With Quote
  #7  
Old 18 Dec 2011, 11:46
Alecsmith's Avatar
Alecsmith Alecsmith is offline
 
Join Date: Sep 2009
Real name: Nick
Excellent mod tagged for now
__________________

Reply With Quote
  #8  
Old 20 Dec 2011, 23:05
klaus's Avatar
klaus klaus is offline
 
Join Date: Mar 2002
Real name: Klaus
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.
Reply With Quote
  #9  
Old 21 Dec 2011, 07:33
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Originally Posted by klaus View Post
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.
Reply With Quote
  #10  
Old 21 Dec 2011, 09:20
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
This messes up my error_reporting setting... Could you change it to this?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #11  
Old 22 Dec 2011, 19:55
EXIDE EXIDE is offline
 
Join Date: Feb 2009
Real name: Liam
Originally Posted by klaus View Post
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.
At the moment you can check the image size by admincp or checking the attachment file directly, I'm also planning to add some stats data to the attachments displaybits.

Currently working on giving people the option to re-smush attachments at the moment, I expect to update this mod in the next 2-3 days.

Originally Posted by Disasterpiece View Post
This messes up my error_reporting setting... Could you change it to this?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
I don't plan too make this modifcation compatible with other mods at the moment, but your free to make that change for yourself. Although the next version will not require to disable error_reporting.

Also if you want to get the current error_reporting level for the script just remove the "0" from the function. As your way disables error_reporting for the rest of the script.
Reply With Quote
  #12  
Old 22 Dec 2011, 22:53
final kaoss final kaoss is offline
 
Join Date: Apr 2006
It would be nice if it could smush all incoming avatars as well
Reply With Quote
  #13  
Old 23 Dec 2011, 01:41
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.
Originally Posted by extreme-gaming View Post
It would be nice if it could smush all incoming avatars as well
I like this opinion. But it would have to have the option to turn that feature on or off. Some communities allow or have people who use animated GIF files and sadly, Yahoo's Smush It can and sometimes does remove that animation in its optimization process.

edit: Would it be possible for this to have the option to skip over GIF files?
Reply With Quote
  #14  
Old 30 Dec 2011, 18:31
EXIDE EXIDE is offline
 
Join Date: Feb 2009
Real name: Liam
Originally Posted by OldSchoolDSL View Post
I like this opinion. But it would have to have the option to turn that feature on or off. Some communities allow or have people who use animated GIF files and sadly, Yahoo's Smush It can and sometimes does remove that animation in its optimization process.

edit: Would it be possible for this to have the option to skip over GIF files?
Both features added, 3.8.x version updated aswell, next update will include the ability to smush already uploaded avatars and attachments.

Last edited by EXIDE; 31 Dec 2011 at 13:49.
Reply With Quote
  #15  
Old 23 Mar 2012, 21:06
billrini billrini is offline
 
Join Date: Aug 2009
It looks like the script does not use the table prefix. My tables are vb_* I get the error:

ALTER TABLE `filedata` ADD `smushed` VARCHAR( 3 ) NOT NULL DEFAULT 'no';

Any chance you could update this to use the table prefix? I can do it myself but I would imagine others are going to run into this same issue and it seems like it would reduce a lot of posts from people saying, "It won't install" :-)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 13:12.

Layout Options | Width: Wide Color: