Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Changing 404 Page For TWG https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=684 |
Page 1 of 1 |
Author: | van [ 12. Dec 2006, 17:52 ] |
Post subject: | Changing 404 Page For TWG |
Hello Michael, Can you tell me where I can change the default missing album message. This is the default message: The album 'XXXXX' cannot be found and is maybe not available anymore. Please close the browser to delete the session because TWG is caching the direcotry infomation there. If you came with a direct link please check the directory name. Please go back the the main page and navigate to the album you are looking for. Can I simply do a re-direct from this page to the main page of the gallery? Thanks as always for your help and the great software. It is running perfect Regards |
Author: | TinyWebGallery [ 12. Dec 2006, 17:57 ] |
Post subject: | |
Hi, it's in the language file. but this is maybe a good idea with the redirect - you could do this by yourself by adding some Javascript code that redirects to the main page. Simply put this in the language string. /Michael |
Author: | van [ 12. Dec 2006, 20:55 ] |
Post subject: | |
Hello Michael, Thanks for the quick answer. I am going to try it and I will let you know how it goes. Thanks again Regards |
Author: | van [ 12. Dec 2006, 21:20 ] |
Post subject: | |
Hello Michael, I cannot seem to find the text string n the language file. I am looking in "language/language_en.php" I also looked in "admin/_lang/en.php" Obviously I am not looking in the right place. Can you help. Thanks for your time. Regards |
Author: | TinyWebGallery [ 12. Dec 2006, 21:29 ] |
Post subject: | |
right - it most likley thonly thing that is not in the language file . It's in filefunctions.inc.php /Michael |
Author: | van [ 12. Dec 2006, 22:11 ] |
Post subject: | |
Hello Michael, Thanks I found it I will let you know how it goes. Regards |
Author: | van [ 12. Dec 2006, 22:21 ] |
Post subject: | |
Hello Michael, Well it did not take too long. Simply inserting some jave to redirect to the main page kills the rest of the php page. I do belive it can work it's just that I am a real amateur when it come to coding. Can you give me some suggestions on how to insert this code into the php code? Here are the snipets: The Java: <script type="text/javascript"> <!-- window.location = "http://www.google.com/" //--> </script> The php: } else { $output = substr($localdir, strlen($basedir) + 1); echo "The album '" . $output . "' cannot be found and is maybe not available anymore." ; echo "<br />Please close the browser to delete the session because TWG is caching the direcotry infomation there."; echo "<p>If you came with a direct link please check the directory name.<br>Please go back the the main page and navigate to the album you are looking for.</p>"; set_error_handler("on_error_no_output"); // @ does not work! @unlink($xmldir . "/" . $output . "_kommentar_text.xml"); @unlink($xmldir . "/" . $output . "_image_text.xml"); set_error_handler("on_error"); } return null; } Thanks for looking at it. Any help is always appreciated. Regards |
Author: | TinyWebGallery [ 13. Dec 2006, 11:49 ] |
Post subject: | |
you should use window.location.href it should be possilbe to simply add the js there. you just have to add the Javascript! (not Java!) in the php with an echo echo '<script type="text/javascript">window.location.href = "http://www.google.com/"</script> '; /Michael |
Author: | van [ 13. Dec 2006, 17:07 ] |
Post subject: | |
Hello Michael, It works excellent Thank you very much for your time and help. Regards |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |