![]() |
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. |
can you make for 3.8.x
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=275577 |
Awesome! I was waiting for this.
|
ooh <3
Is it possible to compress forum avatars? |
Quote:
|
Excellent mod tagged for now :D
|
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. |
Quote:
|
This messes up my error_reporting setting... Could you change it to this?
PHP Code:
@see http://de3.php.net/manual/en/functio...-reporting.php |
Quote:
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. Quote:
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. |
It would be nice if it could smush all incoming avatars as well
|
Quote:
edit: Would it be possible for this to have the option to skip over GIF files? |
Quote:
|
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" :-) |
Quote:
Theres also a typo in the uninstall code, you will need to change the first line from: PHP Code:
PHP Code:
|
i got this error
Quote:
|
Uploaded a new one, please download and verify the problem is gone.
|
Is there anyway to smush attachments that are already in the file system? One at a time is fine from the attachment menu in the control panel would be fine.
|
Quote:
|
1 Attachment(s)
I like the idea of this plug in. I use it but have zero way to verify if it works and how much images get compressed. I use a similar plugin for wordpress and I get good feedback from it.
The WP plug in also lets you do a Bulk image compression against all images in the library. |
I installed this yesterday and when people go to upload files they get a message
Warning: mkdir() [function.mkdir]: Permission denied in [path]/newattachment.php(344) : eval()'d code on line 7 Warning rmdir ([path]/tmp/smush1369) [function.rmdir]: No such file or directory in [path]/newattachment.php(344_ : eval()'d code on line 74. Which directory is it trying to write to and what permissions are needed for that directory? if I disable the plugin things upload fine. Thanks! |
|
He posted the fix for uninstalling or did you apply that already?
|
Quote:
|
Quote:
Code:
Warning: mkdir(): Permission denied in [path]/newattachment.php(552) : eval()'d code on line 7 |
Well you see what that error message is trying to tell you? It's saying that it can't find the table "smushed". If that's the case, try adding a table named "smushed" and see if it helps.
Quote:
|
Good call there, does adding the 'forumdb.vb_filedata' help with anything?
|
Sorry about the troubles this is giving you guys at the moment but I am working on a new version now that I have time, this will be better supported and contain less bugs.
V2 features:
I hope to have this updated by saturday latest. |
Sounds great. I look forward to checking it out.
|
Does this work with 4.2.2? Or can it be updated to work?
I installed but get an error when uploading an attachment...I get a pop up that has this on it: Code:
The following errors occurred: |
Check your server error logs for the error, or perhaps the email you set up in config.php to get technical emails.
|
Here's the error:
Code:
SELECT attachment.*, filedata.* |
Can someone confirm it on vB 4.2.2?
|
I did get it to work on 4.2.2 after paying to have it fixed. However, for some odd reason, the images do not show up on Internet Explorer...they did work on other browsers. Not sure if anyone else has seen this issue with images processed by smush.it?
|
All times are GMT. The time now is 06:02 PM. |
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:
|