Member
Member
cbxwebde   2008-03-10, 18:20
#1

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

Administrator
Administrator
acrylian   2008-03-10, 19:13
#2

The link works fine for me and it's the correct one by the way. There should be no "albums" inbetween.

Member
Member
sbillard   2008-03-10, 19:59
#3

The error you are getting (the requested object was not found. ) would indicate that the file zenphoto/zp-core/full-image.php was not found. Please check to see if it is on your server.

Member
Member
cbxwebde   2008-03-11, 01:42
#4

@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

Member
Member
sbillard   2008-03-11, 02:03
#5

Well, full-image.php is the script that serves up the bigger picture image when you click on the image. It is part of the zenphoto install and belongs in the zp-core.php folder. So, again, please see if that file is in the zp-core folder.

Member
Member
cbxwebde   2008-03-11, 02:40
#6

Thanks sbillard,

Yes, full-image.php is within the zp-core directory.

Member
Member
sbillard   2008-03-11, 03:16
#7

OK. Then the problem is something else. Have you tried turning mod_rewrite off? Perhaps it is a mod_rewrite issue.

Member
Member
cbxwebde   2008-03-13, 15:51
#8

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.

Member
Member
sbillard   2008-03-13, 17:26
#9

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.

Member
Member
cbxwebde   2008-03-13, 21:23
#10

Yes this did work. What do you need to know about my server setup?

Member
Member
sbillard   2008-03-13, 22:03
#11

Actually, I need jsummers to notice this thread and figure out what to do. He is the implementor of the code you just deleted.

Member
Member
cbxwebde   2008-03-13, 22:50
#12

Ok. Well thank you for your help. I'm full steam ahead with 1.1.5

Member
Member
jsumners   2008-03-14, 01:01
#13

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.

Member
Member
jsumners   2008-03-14, 03:54
#14

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?

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