Member
Member
djdevine   07-05-2008, 22:08
#1

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.

  1. The other related issue is " in image.php -- I tried messing with some javascript and used as the href in the scripts, but kept running into "/gallery/08-10-2007/index.php?album=08-10-2007&image=DSCF1180.JPG" (Zenphoto Error: the requested object was not found. Please go back and try again.), instead of the shorter URL that I see with the the simple click to see a full image.. All else is good except for when I try to add javascripts. Is this a cruft issue of some kind? What can I use besides in my scripts to point to the actual full image? Note that if issue #1 above is resolved, then issue #2 is irrelevant.

Thanks!

Member
Member
sbillard   07-05-2008, 22:34
#2

1: with the option setting:


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?

2: The url you show, "/gallery/08-10-2007/index.php?album=08-10-2007&image=DSCF1180.JPG" is not what getFullImageURL() returns. It looks more like what getImageLinkURL() returns.

Member
Member
djdevine   08-05-2008, 00:11
#3
  1. 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.

  2. 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.

Administrator
Administrator
acrylian   08-05-2008, 08:24
#4
  1. I am on Mac OS X with Safari 3.1, too, and download is working for me. At least in the latest nightly. Image protection set to "download" and "disable hotlinking".

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().

Member
Member
djdevine   08-05-2008, 23:34
#5

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?

Member
Member
djdevine   09-05-2008, 04:35
#6

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]

`

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