CMS 18.04.2016 2632 Support Status: Closed Solution: Yes bluesatkv
Hi Jerome,
Question. I have table with all files. File 'download.php'.
I would create a direct link to download the file ( in the right side 'download file').
Now we have links to other page 'downloadfile.php'.
I tested, but not works (code is from 'downloadfile.php'):
<a href="<?php echo $DL_LINK;?>"><?php echo $tld["dload"]["d2"];?></a>
Thanks
Thank you for opening a support ticket.
A direct download link would look like this:
That would be the correct way.
I understand.
I use in 'download.php' but not works.
links is same as has button in 'downloadfile.php' but not works.
You can't use use it somehwere else then the download page (security wise and for hot linking).
So it means people can't just link to the file (hotlink preventaion).
If you wan't to make this work you need to make more custom modifications. The only help I can give you here is to have a look into the download.php file from line 481.
It occurred to me another solution :-)
'download.php' with table
in row is only name of file without anchor and links to 'Show File'
in lang folder of download plugin I created new text
And works perfect.
Test link for download link removed
Many thanks for you, I love your work :-)
Glad you found a solution for your problem.
*** Ticket closed ***