Has anyone created a dynamic zip file from attached files stored in Links database?
May 20, 2013, 2:32 AM
Veteran / Moderator (18436 posts)
May 20, 2013, 2:32 AM
Post #2 of 13
Views: 8511
Hi,
You wanna create a ZIP file, based on a selection of files? Normally you would move them into a temp folder, then do a zip file from it:
Then you would either do a "location" redirect to this new file (and remove it after say 10 mins) ... or actually get the script to print out the contents itself (this means you can actually remove the file right after its been downloaded)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
You wanna create a ZIP file, based on a selection of files? Normally you would move them into a temp folder, then do a zip file from it:
Code:
zip files.zip *Then you would either do a "location" redirect to this new file (and remove it after say 10 mins) ... or actually get the script to print out the contents itself (this means you can actually remove the file right after its been downloaded)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
May 20, 2013, 2:55 AM
Enthusiast (567 posts)
May 20, 2013, 2:55 AM
Post #3 of 13
Views: 8458
Andy wrote:
Then you would either do a "location" redirect to this new file (and remove it after say 10 mins) ... or actually get the script to print out the contents itself (this means you can actually remove the file right after its been downloaded)Probably the latter. The filenames of files to be 'zipped' would relate directly to the Links IDs contained within the Category/sub category or the search results. ie: Link ID 300, filename 300.jpg and so on.
Therefore category 'hotels' would contain 20 links with 20 files and the generated zip file would contain the 20 files and be downloaded immediately. Because the site is dynamic, there may be 22 links 10 minutes later and then the zip file would contain all 22 files.
Similar with search results.
May 20, 2013, 2:57 AM
Veteran / Moderator (18436 posts)
May 20, 2013, 2:57 AM
Post #4 of 13
Views: 8487
Ok - are you asking me to code this for you? Sounds more like a custom job
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
May 20, 2013, 3:09 AM
Enthusiast (567 posts)
May 20, 2013, 3:09 AM
Post #5 of 13
Views: 8453
Andy wrote:
Ok - are you asking me to code this for you? Sounds more like a custom job
May 20, 2013, 3:13 AM
Veteran / Moderator (18436 posts)
May 20, 2013, 3:13 AM
Post #6 of 13
Views: 8484
Sure
As far as I know there is nothing like that that exists (at least I havn't written anything like that). I can't see it being too much work to do though.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

As far as I know there is nothing like that that exists (at least I havn't written anything like that). I can't see it being too much work to do though.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
May 20, 2013, 3:34 AM
Veteran / Moderator (18436 posts)
May 20, 2013, 3:34 AM
Post #8 of 13
Views: 8500
Hi,
The easiest way is just to use this plugin:
http://www.ultranerds.co.uk/..._0_x/ModuleEnv_L248/
Hope that helps
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
The easiest way is just to use this plugin:
http://www.ultranerds.co.uk/..._0_x/ModuleEnv_L248/
Hope that helps

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
May 20, 2013, 10:00 AM
Veteran / Moderator (18436 posts)
May 20, 2013, 10:00 AM
Post #11 of 13
Views: 8403
Alba wrote:
error 'Unable to load plugin 'ModuleEnv': No Install.pm file found in tar!'Sorry about that. We had some issues with corrupt files when moving to the .co.uk domain. I thought I'd fixed them up , but guess that one got through the net. It should work now

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
May 23, 2013, 9:14 AM
Veteran / Moderator (18436 posts)
May 23, 2013, 9:14 AM
Post #13 of 13
Views: 8292
Good to hear
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!