My album works fine, but when I get to the image.php page and click on the image for the bigger picture, the photo does not show up. I did notice that the paths were incorrect. Within the URL the /albums/ is not displaying.
For example:
Here is a broken url:
http://nezik.com/boudyphotos/zenphoto/niagra_falls/2007_0714ConferencePhotos20086.JPG
It should be:
http://nezik.com/boudyphotos/zenphoto/[b]albums[/b]/niagra_falls/2007_0714ConferencePhotos20086.JPG
I tried to go to the image.php page, but I could not edit it because the url is pulled from
Is there a way I can fix this?
Thank You
@acrylian,
I'm sorry, I was referring to when you click the picture on that page. You get this link: http://nezik.com/boudyphotos/zenphoto/niagra_falls/index.php?album=niagra_falls&image=2007_0714ConferencePhotos20086.JPG
@sbillard,
I don't think full-image.php would be under the zp-core folder. I have the newest default template that came with 1.1.5. So this should be pulling from image.php within zenphoto > themes > default
When I turned off mod_rewrite I was not able to get the "bigger" picture. For example, when I'm on the page where the image displays with the comment box, the page just refresh it I were to click on the image. (See link: boudyphotos.com) Go to any one of the galleries and then try to click on the picture to get the big picture.
Please delete the following lines in the file zp-core/full-image.php"
`/ Prevent hotlinking to the full image from other servers. /
$server = $_SERVER['SERVER_NAME'];
$test = strpos($_SERVER['HTTP_REFERER'], $server);
if ( $test == FALSE ) { / It seems they are directly requesting the full image. /
$image = 'index.php?album='.$_zp_current_album->name . '&image=' . $_zp_current_image->name;
header("Location: {$image}");
exit();
}`
and try to access the bigger picture. If this works, we will need to know about the server setup. These lines, as the comment says, are testing to see if someone is trying to link your image from a place different from zenphoto.
What web browser are you using to view your gallery? The code mentioned relies on the user agent (web browser) sending the HTTP_REFERER header. If the client either A) does not send the header, or B) the header is from a web domain other than the gallery's, the user is forwarded to the "small" image.
Also, I am not having any problems accessing the full image on your site. Do you still have the anti-hotlinking code in place? Or has it been removed?
The odd thing is that sbillard, using IE7, is having the same problem on your server, but not on his own. So I am wondering about your server configuration. Are you using IIS or Apache? Is the server behind a firewall or proxy?