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?
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".
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.
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".gettext(" Error: the requested object was not found. Please go back and try again.");
Comments
Let us know how it works out.
'`echo "\n";
exit();`'