Author Topic: Modify download link to download PDF file.  (Read 5066 times)

0 Members and 1 Guest are viewing this topic.

Offline mparker

  • Pre-Newbie
  • Posts: 6
    • View Profile
Modify download link to download PDF file.
« on: March 12, 2003, 01:53:32 AM »
Hello,

I have been trying to use other mods on the forums to make it so that if someone clicks on the download link it will download a PDF file. I cannont seem to get them to work. The PDF file will reside in a folder named PDF and have the same name as the image except .jpg will be replaced with .pdf. Is this something that is possible? I know it is possible to change each image but I want every image to do this.

Could someone point me in the right direction on how to get this done?

I am sorry if this is a stupid question but my php skills are lacking.

Thanks for your help.

Matt

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Modify download link to download PDF file.
« Reply #1 on: March 12, 2003, 03:37:39 AM »
Why not just set the download URL to the location of your pdf file?  No mod is needed.

Quote
Download URL
If you fill out this field, the download button will point to the URL you entered, otherwise it will point directly to the image file.

taken from the upload image page.

Offline mparker

  • Pre-Newbie
  • Posts: 6
    • View Profile
Modify download link to download PDF file.
« Reply #2 on: March 12, 2003, 03:46:08 AM »
Quote from: Chris
Why not just set the download URL to the location of your pdf file?  No mod is needed.

Quote
Download URL
If you fill out this field, the download button will point to the URL you entered, otherwise it will point directly to the image file.

taken from the upload image page.


Chris,

Thanks for your help. Like I said in my post I know that I can change the download link on a case by case basis but I want to download the PDF for every case. It would be a whole lot easier to mod it somehow than to have to do this to hundreds of images. I have tried everything I can think of to try and get it to work. Thanks in advance if anyone can help with this.

Matt

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Modify download link to download PDF file.
« Reply #3 on: March 12, 2003, 02:32:31 PM »
Sorry, I guess I either missed that or didn't understand your question.