We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: MX Zip ( EE1 / EE2 )

Development and Programming

Brooks Seymore's avatar
Brooks Seymore
106 posts
about 16 years ago
Brooks Seymore's avatar Brooks Seymore

And that works perfectly… I thought I’d tried every combination in my tests of but must have missed this one. Thanks for your help!

       
Brooks Seymore's avatar
Brooks Seymore
106 posts
15 years ago
Brooks Seymore's avatar Brooks Seymore

One more question… I’m taking advantage of the direct_output=”no” setting to have the .zip files saved to a directory, partly for populating a download link but also for cacheing purposes. I understand from one of Max’s earlier posts that caching is coming, someday.

In the meantime, is there a way I can check to see if the .zip file already exists and only if it doesn’t create the .zip file?

I see from an earlier comment that Paales created forked version which includes a check_exists function, but that doesn’t seem to have been incorporated into the official release which includes the vital files openable under Mac OS X fix.

http://ellislab.com/forums/viewreply/688168/

I found a plugin, BN Check File Exists, which does as it’s name suggests but it doesn’t include any sort of if the file doesn’t exist option.

http://barrettnewton.com/site/products/check_files_exists/

Much thanks, in advance, for any and all suggestions.

       
Richard Frank's avatar
Richard Frank
200 posts
15 years ago
Richard Frank's avatar Richard Frank

Same question as above. How can we cache the resulting zip file so it doesn’t get rezipped every time?

       
Max Lazar's avatar
Max Lazar
341 posts
15 years ago
Max Lazar's avatar Max Lazar

Brooks, Richard - I open for changes but I still can’t choose the best way for checking - is it the same file or not. So, do we need to look only for the same filename?

p.s. + do we need the cache for files which push direct to users?

       
Richard Frank's avatar
Richard Frank
200 posts
15 years ago
Richard Frank's avatar Richard Frank

Hi Max

Thanks for replying and thanks for all your addons - how do you find all the time?!

yes, it would be test to check whether the same file is in the directory specified. {url_title}{edit_date}.zip would be a good strategy.

Of course caching the directly pushed files would be great as well, but i’m more interested in the above.

       
Brooks Seymore's avatar
Brooks Seymore
106 posts
15 years ago
Brooks Seymore's avatar Brooks Seymore

Same filename would work for the project I’ve used it on. We went with a slightly different implementation – where the archives are only built when certain member groups access the page. The creators of the site get the slow loading page (we’re building probably 10 to 20 .zip archives per page) while visitors get a quick loading version. It’s not 100% ideal from certain angles, but it gets the page loading quickly for the visitor.

       
Max Lazar's avatar
Max Lazar
341 posts
15 years ago
Max Lazar's avatar Max Lazar

Sorry for delay - to tell the truth the time question was a really critical for me in the last 2 month. But now I’m return to developing.

New version is ready.

       
Est. Studio's avatar
Est. Studio
6 posts
12 years ago
Est. Studio's avatar Est. Studio

I am having a problem where my ZIPs and empty, i’ve tried hardcoding a file into the {zip:files} tag pair to no joy.

Is this plugin working with 2.5.2?

       
Max Lazar's avatar
Max Lazar
341 posts
12 years ago
Max Lazar's avatar Max Lazar

yes, it works fine with 2.4+. show me your template code.

p.s. you can also try a new version from attachment (it is future release).

       
First 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.