[MOD-phpLD]Small Hack: 404 error page for phpLD 2.1.2 -Dir.vc-msolution Hello, A few days ago Smub from IDK.in published a article on how to create 404 pages for phpLD 3.x version, Getting inspired, i sat down today to write a small snippet on how to create a 404 page with phpLD 2.1.2! hope this helps someone! Regards, M.
glad that you expand it good work i will post it on my blog if it is ok with you and i have your permission
sit tight and Enjoy! im working on a new feature that sure to get many eyes! maybe if asked for ill release a mod for it too,.... stay tuned! M.
can modify the code for version 2.0, i tried the the code provided in blog, but it is not working. Thanks
@Masti, i dont have a 2.0 script, perhaps if you drop me your index.php file i can help you, PM me M.
For people who used this mod, there was a tiny bug i overlooked, if people search for anything which is less than 2 chars they were going to the 404 page, the code has been updated on the blog, the line to change is : if($id==0 && strlen($_SERVER['REQUEST_URI']) > 2) { Code (markup): TO: if($id==0 && strlen(request_uri()) > 2 && !isset($_REQUEST['q'])) { Code (markup): Regards, M.