1 ) I'd love to target the same window over and over when you click on an image on image.php to display a full image.
I have zenphoto version 1.1.5 [1507] installed from the nightly builds and...
Options --> Image Display --> Full image protection: Download
With this setting above, when I click on an image to display the full image, I get a new window for each image that I click on when I display the full image. How can I target just ONE window? Normally I'd just name the target in a link, but I can't find where the new window is called in the script with "Full image protection: Download". Sorry if I've overlooked something obvious.
Thanks!
Options --> Image Display --> Full image protection: Download
the browser should not be displaying the image at all. It should be offering you a download dialog. What browser are you using?
getFullImageURL() returns. It looks more like what getImageLinkURL() returns.I'm using Safari in Mac OSX. And yes, when I test with Vista on a PC, I get a dialog box: "Open" or "Save". Regardless, when I open them, (and LEAVE them open), each image opens in a separate window... not in the same window.
More details on this issue... In the default theme, using image.php, with no changes, you are right... getFullImageURL() returns http://mydomain.com/gallery/08-15-2007/DSCI0002.JPG.php?p=*full-image ... in the same window. No popup... No problem. Now, let's say I take a javascript and put something like: onClick="return popImage(this.href,'Photo');" .... I'd expect that to call ... however, instead of calling the regular full image URL, it calls "/gallery/08-10-2007/index.php?album=08-10-2007&image=DSCF1180.JPG". Sorry if this is a simple coding mistake. I suspect not.
2)[i]onClick="return popImage(this.href,'Photo');" .[/i]
I am by no means a JS expert, but doesn't this.href call the current url your are viewing? This would then be the url getImageLinkURL()would print and notgetFullImageURL().
Okay. I need some education on this.... Here's the URL that I see for the full image:
http://domain.com/gallery/08-15-2007/DSCI0041.JPG.php?p=*full-image
Cutting and pasting this URL above into a NEW window's location field (or even the SAME window) displays:
http://domain.com/gallery/08-15-2007/index.php?album=08-15-2007&image=DSCI0041.JPG
with the error... Zenphoto Error: the requested object was not found. Please go back and try again.
This is the same problem I am running into when trying to use getFullImageURL() in a Javascript.
getFullImageURL() is working the way it's supposed to when it's here:
`
">[b][/b]
`
But when I try to reuse getFullImageURL() by adding some JS like:
onclick="MM_openBrWindow('','fullimagewin','toolbar=yes,scrollbars=yes,resizable=yes,width=800,height=800'); return false"
...in the same div..., I get the following again, instead of the full image URL:
http://domain.com/gallery/08-15-2007/index.php?album=08-15-2007&image=DSCI0041.JPG
with the error... Zenphoto Error: the requested object was not found. Please go back and try again.
What am I missing?
Okay. This issue above is related to the Full image protection being set to Protected View. When it IS, I can't get my javascript to return this: http://domain.com/gallery/08-15-2007/DSCI0041.JPG.php?p=*full-image ...even if I use getFullImageURL() in the javascript.
If anyone has any clues as to why this is, please let me know. I want to create a popup for the full image that's sized to the popup. I can do that elsewhere, but for some reason, can't get it to work inside of this:
`
">[b][/b]
`