[MOD-phpLD]Small Hack: 404 error page for phpLD 2.1.2 -Dir.vc-msolution

Discussion in 'Directories' started by msolution, Aug 22, 2007.

  1. #1
    [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.
     
    msolution, Aug 22, 2007 IP
    onlinedude and emon3y like this.
  2. dynn

    dynn Notable Member

    Messages:
    5,047
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    253
    #2
    very useful mod...thank you for sharing
     
    dynn, Aug 22, 2007 IP
  3. smub

    smub Notable Member

    Messages:
    3,443
    Likes Received:
    375
    Best Answers:
    0
    Trophy Points:
    230
    #3
    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 :)
     
    smub, Aug 22, 2007 IP
  4. msolution

    msolution Well-Known Member

    Messages:
    1,182
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    175
    #4
    that would be gr8 Smub!

    Thanx
    M.
     
    msolution, Aug 22, 2007 IP
  5. mywebsearches

    mywebsearches Peon

    Messages:
    764
    Likes Received:
    116
    Best Answers:
    0
    Trophy Points:
    0
    #5
    How many mods you have by now, msolution?

    I will add it to my list.
     
    mywebsearches, Aug 22, 2007 IP
  6. msolution

    msolution Well-Known Member

    Messages:
    1,182
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    175
    #6
    :D sit tight and Enjoy! :D

    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.
     
    msolution, Aug 23, 2007 IP
  7. Masti

    Masti Active Member

    Messages:
    82
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    98
    #7
    can modify the code for version 2.0, i tried the the code provided in blog, but it is not working.

    Thanks
     
    Masti, Aug 23, 2007 IP
  8. Badlands07

    Badlands07 Well-Known Member

    Messages:
    2,471
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    155
    #8
    This is great, please keep up the great work!!!!
     
    Badlands07, Aug 23, 2007 IP
  9. msolution

    msolution Well-Known Member

    Messages:
    1,182
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    175
    #9
    @Masti, i dont have a 2.0 script,
    perhaps if you drop me your index.php file i can help you,
    PM me :)

    M.
     
    msolution, Aug 23, 2007 IP
    Masti likes this.
  10. Masti

    Masti Active Member

    Messages:
    82
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    98
    #10
    Thank you, sent you a PM with my index.php code
     
    Masti, Aug 23, 2007 IP
  11. msolution

    msolution Well-Known Member

    Messages:
    1,182
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    175
    #11
    For people who used this mod,
    there was a tiny bug i overlooked,:eek:

    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.
     
    msolution, Aug 24, 2007 IP