Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Quote Originally Posted by 2fast2kwl View Post
    try again
    Yeah it's there now, now try putting my correction in the code in again and it should work.
    Free Online Games And Videos:
    http://www.vincesgames.com



  2. #12
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    ok will do

    edit:

    didnt work
    Last edited by Jack!; 15-09-2009 at 03:26 PM.

  3. #13
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Quote Originally Posted by 2fast2kwl View Post
    ok will do
    I can see that the error is still coming up, perhaps you have the permissions set incorrectly in the file? I'm sure it is going to the correct page, yet it is still saying it cannot open it. Do you know how to change permissions? Make sure they're set to 0644. Perhaps you have it so world can't read it or something.
    Free Online Games And Videos:
    http://www.vincesgames.com



  4. #14
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    my pages are in

    /site/pages

    my 404.php is in

    /site

    and

    /site/pages

  5. #15
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Edit: Scratch this.
    Last edited by ThisNameWillDo!; 15-09-2009 at 03:38 PM.
    Free Online Games And Videos:
    http://www.vincesgames.com



  6. #16
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    but what about when the other pages load?

  7. #17
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Quote Originally Posted by 2fast2kwl View Post
    but what about when the other pages load?
    I'm very confused. If the directory & pages are there, then it should be able to display the home.php page. Are you sure the permissions are set correctly. I'm not a PHP expert or anything, but I'm pretty sure.
    Free Online Games And Videos:
    http://www.vincesgames.com



  8. #18
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    what im trying to say is, the code i currently have lets me load the pages, but it wont load home.php when you go onto the site

    My pages are in /pages and they work fine i dont need to touch that big just where it is ment to load home

  9. #19
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    PHP Code:
    <?php 
    // File include by Blob off of HabboxForum 
    $config = array("default" => "home"// Default Page
                    
    "directory" => "pages/"// Directory where files are held (with trailing slash) 
                    
    "restricted" => array( "index" ), // Restricted pages 
                    
    "404" => "404.php" // Error Page (with trailing .php) 
                    
    );
    $page = ( ( $_GET["page"] ) === null ) ? $config["default"] : ( str_replace("/""", ( ( ( in_array$_GET["page"], $config["restricted"] ) ) !== false ) ? $config["default"] : $_GET["page"] ) ) );
    file_exists$config["directory"] . $page ".php" ) !== false ) ? include( $config["directory"] . $page ".php" ) : include( $config["directory"] . $config["404"] );  
    ?>

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •