Member
Member
reneesanguinetti   2013-02-25, 21:01
#1

Hello,
I'm using Zenphoto version 1.4.4.1 [596740f651] (Official build)
Current gallery theme: zpFocus_ v1.4.4.
I am trying to use the funtion getFullImageURL to access the Full-size image from a protected folder (cache1) instead of the cache folder.
In order to use a 3rd party
script for user to have access to this image.
I have set the image options to protected view and to cache the full image. I know this seems unnecessary, but on my live site I have all images loaded at a very small thumb size. On a test site they are cached at the actual full-size. So instead of re-uploading them to the live site, I would just move them to the cache1 folder because I realize if I protect the original cache folder nothing will be visible without a user logging in.
This is how the original function is set up:
'(($zpfocus_final_link)=='standard-new') { ?>" title="">'
I tried:
'(($zpfocus_final_link)=='standard-new') { ?>" title="">'

and Many other combinations, but just can't seem to get it to work. I'm sure it is a simple solution, but just can't seem to get it. Any suggestions? Thank-you for your time! Renee

The full code won't show up: This is what I tried:
''
''

Administrator
Administrator
acrylian   2013-02-25, 21:18
#2

Did you ´look at the documentation of the function?:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetFullImageURL

As it is named it does not get the url to a /cache image but the full (original) one in /albums. Also it does not have a 2nd parameter like you tried.

To get the one in the cache you need to use the custom sized functions with the same dimensions as the original one. Additionally there is a variant to override the protected view for the original:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetUnprotectedImageURL

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