Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mparker

Pages: [1]
1
Thanks Jan, this works great.

2
Quote from: Jan
Try this in download.php (not tested):

Add
Code: [Select]
ereg("(.+)\.(.+)", $file['file_path'], $regs);
$file['file_path'] = $regs[1].'.pdf';

below
Code: [Select]
if (!empty($file['file_path'])) {
Jan


Hell Jan,

Thanks a bunch for your help. This doesn't seem to work. If I am reading the code correctly and it is very possible that I am not I need to have the pdf file in the media folder in place of the jpg file, is this correct? If I do this something downloads but it is just an error code file named with the file name I attempted to download. What I would like to do is have a thumbnail on the thumbnail page and then on the detail page have a larger preview appear but the download button will download a pdf file of the image. Maybe this isn't possible and I need to do it by hand.

Thanks again for your help.

Matt

3
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. I knew I could this for each individual image but I want to make this change system wide. 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

4
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

5
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

6
Hello,

I have been trying to use this mod to make it so that if someone clicks on the download link it will download a PDF file. 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?

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.

I have also posted this in a new thread.

Thanks for your help.

Matt

Pages: [1]