Author Topic: download function  (Read 7306 times)

0 Members and 1 Guest are viewing this topic.

Offline edu

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
download function
« on: May 23, 2005, 11:51:47 PM »
 is possible to deactivate the normal download ? I only want that zip download works.

Regards ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: download function
« Reply #1 on: May 24, 2005, 12:36:36 AM »
remove the button (details.html template)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline edu

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: download function
« Reply #2 on: May 24, 2005, 10:01:49 AM »
Thanks V@no, but I want to avoid the download when a user writes: www.mydomain.com/download.php?image_id=820

Regards.

Offline edu

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: download function
« Reply #3 on: June 13, 2005, 02:06:24 PM »
nobody can help me ?
 :?
I want to disable the normal download

www.example.com/gallery/download.php?image_id=4413

... but I want that the "zip download" works.

www.example.com/download.php?action=zip&id=4413


what part of code in download.php I must eliminate ?

Regards..

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: download function
« Reply #4 on: June 13, 2005, 02:41:11 PM »
lets see...try insert in download.php below:
Code: [Select]
elseif ($image_id) {this line:
Code: [Select]
$action = "zip";it will force download .zip file even by www.example.com/gallery/download.php?image_id=4413
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline edu

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: download function
« Reply #5 on: June 13, 2005, 05:59:51 PM »
I will try this.

Thank you V@no. :lol:


Offline mitchell

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: download function
« Reply #6 on: June 29, 2005, 07:32:55 PM »
Is it possible to disable downloads all together? (Is removing the button images enough?)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: download function
« Reply #7 on: June 30, 2005, 12:51:53 AM »
Is removing the button images enough?
yes, and delete download.php file as well.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline mitchell

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: download function
« Reply #8 on: June 30, 2005, 07:50:21 PM »
Perfect, thanks for the help.