Member
Member
TheMCZombie   10-03-2020, 02:30
#1

After reading through multiple posts and reading through all the documentation, I've come to an impasse.

Here's a link to an example on my site : http://new.epsolephotography.com/Nature/2019/Norway/EPS00584.JPG

The current line I am using in my theme's php is as follow

But all that is displayed on the page is Download (0 Bytes) - 0 downloads
Upon clicking the link, a window appears displaying File "(filename)" was not found.

The image protection under Options>Image is set to unprotected. Any help would be appreciated.

PS, wonderful plugin, just not the smartest to understand it.

Administrator
Administrator
acrylian   10-03-2020, 20:33
#2

getFullImageURL() does not work because it returns a relative url. But the you need to use a serverpath url you have to build yourself:

On image.php try this instead:
$_zp_current_image->getFullImage(SERVERPATH)

EDIT: The plugin in the support build (1.5.7b) has now an extra function to make this easier called printFullImageDownloadURL('Download') for use in a theme's image.php.

Member
Member
TheMCZombie   11-03-2020, 00:01
#3

Thank you acrylian! Worked like a charm.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.