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="<?php echo getBareImageTitle();?>"><?php printCustomSizedImageMaxSpace(getImageTitle(),600,900); ?>'
I tried:
'(($zpfocus_final_link)=='standard-new') { ?>
" title="<?php echo getBareImageTitle();?>"><?php printCustomSizedImageMaxSpace(getImageTitle(),600,900); ?>'
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:
'<?php echo htmlspecialchars(getFullImageURL());?>'
'<?php echo htmlspecialchars(getFullImageURL(), 'cache1');?>'
Comments
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