Member
Member
eddiejanzer   2008-05-07, 14:09
#1

Is there a way of styling this? If a gallery is no longer available but shows up in web searches, is there a way to syle this more like a custom 404 page so that when someone ends up on my site, they can navigate to somewhere else?

Member
Member
sbillard   2008-05-07, 15:10
#2

This processing is done in the function zp_load_request() of functions-controller.php. You could add the output of a 404 header there.

Member
Member
eddiejanzer   2008-05-08, 00:41
#3

That's what I thought, I had found that file but don't know php. Your saying I can point it to a 404 header? Or just add a 404 heading? I figure I can't just write straight html here. Can anyone give me an example? I'd like to be able to style it a bit, so I'm hoping I can "direct to a friendly 404 page".

Member
Member
sbillard   2008-05-08, 17:25
#4

adding header("HTTP/1.0 404 Page not found"); to the code where the error is handled will probably work. Haven't tried it. You might also need echo " 404 - Page not found "; before the echo of the zenphoto error message.

Let us know how it works out.

Member
Member
eddiejanzer   2008-05-11, 22:31
#5

well, I could not get it to work, but I noticed that when you just remove the code for the error, zenphoto just loads the gallery page. To me this is better than getting a white error page with no navigation to anywhere... I'm wondering if it's "bad" to do without the zen error by deleting 'echo "\n[b]".gettext(" Error:[/b] the requested object was not found. Please go back and try again.");

    '`echo "\n";

    exit();`'
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.