Author Topic: How to Download another zipped file instead of the Picture?  (Read 10121 times)

0 Members and 1 Guest are viewing this topic.

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
How to Download another zipped file instead of the Picture?
« on: March 17, 2005, 05:52:33 AM »
Salam Guyz

I have a Strange question didnt find an answer for it ! i'll explain step by step to make it easier :)


I have a web design templates , I made a 4images gallery to show them

http://www.d6b.net/44

its clear that when I add an image , it will make a thumbnail images directly

like these :

http://www.d6b.net/44/categories.php?cat_id=13&sessionid=69a4aa3df37eabfe5ad563f876c6695b

click at any image :

http://www.d6b.net/44/details.php?image_id=14

see the download links below : download & download zipped

assume that the picture for a template file

I want to create a new folder contain all templates zipped with names like that images names !!

so the picture will only show the template demo , and when I click the "download zipped" button , it downloads the zipped file that contains the whole template


I hope the idea is clear now , if there is any thing unclear plz let me now and i'll clarify it again


Best regards


Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #1 on: March 17, 2005, 06:49:29 PM »
You don't need a mod.  Just zip your template files, upload the zip using FTP to some place on your server, then use the download URL setting for the image.  The download button for the image will then deliver the ZIP file to the visitor

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #2 on: March 18, 2005, 03:41:20 PM »
Thx man

this is the code to download the zipped file

Code: [Select]
{download_zip_button}
assume for example that i'll have the image in :

data\media\1\123.jpg

and the zipped template file in :

data\zipped\1\123.zip



What shall I modify this way?


regards

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #3 on: March 18, 2005, 04:09:40 PM »
No, it's just the
Code: [Select]
{download_button}  You don't modify anything.  You just edit the image and set the DOWNLOAD URL to http://www.example.com/4images/data/zipped/1/123.zip

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #4 on: March 18, 2005, 05:17:52 PM »
Man , thx for being helpful

I need that to be automated !

Since i'll add almost 2000 templates by FTP

So any idea now?

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #5 on: March 19, 2005, 08:31:57 AM »
Any Idea?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #6 on: March 19, 2005, 07:44:56 PM »
Offer to hire a consultant to write some PHP/SQL to batch edit your database.  This process is very detailed, very prone to error and way more than I have time to post.  Post your request either here or in the Chit Chat forum.  I think I recall some people offering their services there

Offline naif824

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #7 on: March 24, 2005, 12:39:20 AM »
Ppl , It's an OFFER !

Any PHP Experts , wanna modify this issue



How much that would cost me?



regards

Offline sniz

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #8 on: March 25, 2005, 08:06:39 PM »
I second the motion. I am looking for the same functionality.

Offline sniz

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #9 on: March 29, 2005, 06:45:58 PM »
It seems there was a mod for this at one time called "download high-res" that was lost in the hacker attack. Does anyone have the original mod that they can re-post or is there anyone out there that can recreate the mod? After searching through the forums, it looks like there are several people out there in need of this.

Offline xxx007xxx

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: How to Download another zipped file instead of the Picture?
« Reply #10 on: April 01, 2005, 01:11:04 AM »
I second the motion. I am looking for the same functionality.