Znote aac troubles

Chubby Bunny

Member
Joined
Mar 25, 2018
Messages
63
Best answers
0
Reaction score
0
I just added a new layout on my webpage and updated some files, but login, characters, highscores and login and those links doesnt work anymore. it says "sub page not recognized". Anyone know how to fix it?
Swevreborn
there is the link to the webpage
 
Last edited:

Jacobs

Webdev, mapper
Joined
Jun 22, 2014
Messages
403
Best answers
2
Reaction score
275
Location
Slovakia
From what it looks like to me the way your previous layout worked is in conflict with the new layout.

As the code below suggests, your sub pages should be located inside the layout/sub/ folder (this is from my website files, your might differ)
PHP:
<?php require_once 'engine/init.php'; require_once 'layout/overall/header.php';
if ($config['allowSubPages']) {
    $page = (isset($_GET['page']) && !empty($_GET['page'])) ? getValue($_GET['page']) : '';
    if (isset($subpages[$page]['file'])) require_once 'layout/sub/'.$subpages[$page]['file'];
    else {
        if (isset($subpages)) echo '<h2>Sub page not recognized.</h2><p>The sub page you requested is not recognized.</p>';
    }
}
else echo '<h2>System disabled.</h2><p>The sub page system is disabled.</p>';
require_once 'layout/overall/footer.php'; ?>
And so I either suggest you to move those pages there, or, update your menu,php file to not use subpages but refer to actual php files in your website root.
 
OP
C

Chubby Bunny

Member
Joined
Mar 25, 2018
Messages
63
Best answers
0
Reaction score
0
From what it looks like to me the way your previous layout worked is in conflict with the new layout.

As the code below suggests, your sub pages should be located inside the layout/sub/ folder (this is from my website files, your might differ)
PHP:
<?php require_once 'engine/init.php'; require_once 'layout/overall/header.php';
if ($config['allowSubPages']) {
    $page = (isset($_GET['page']) && !empty($_GET['page'])) ? getValue($_GET['page']) : '';
    if (isset($subpages[$page]['file'])) require_once 'layout/sub/'.$subpages[$page]['file'];
    else {
        if (isset($subpages)) echo '<h2>Sub page not recognized.</h2><p>The sub page you requested is not recognized.</p>';
    }
}
else echo '<h2>System disabled.</h2><p>The sub page system is disabled.</p>';
require_once 'layout/overall/footer.php'; ?>
And so I either suggest you to move those pages there, or, update your menu,php file to not use subpages but refer to actual php files in your website root.
i dont quite understand :/ what files should i move where?
 
Top