The simpler media website CMS
Is there a simple function to download the image being viewed?
The usual type of download that drops the downloaded file into a folder on your computer?
The ZPBase theme I am using has a Download written in to the image.php but all you get if you click on this link is a fullpage view of the file (from which you can indeed download the image by right clicking) - but I would like a download button which would download the file to the viewer's computer.
I have found this function:
function printDownloadURL($file, $linktext = NULL)
531: * Prints a download link for a file, depending on the plugin options including the downloadcount and filesize
532: * @param string $file the path to a file to print a download link.
533: * @param string $linktext Optionally how you wish to call the link. Set/leave to NULL to use the filename.
but it doesn't seem to work - what would I insert as the $file parameter?