• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved [Znote AAC 1.5] TibiaCOM Layout problem

SunMage

New Member
Joined
Jun 1, 2013
Messages
58
Reaction score
4
dTFvT7l.jpg


"Sub page not recognized.
The sub page you requested is not recognized."

Why would this occur?
Everything else seems to work as intended except for the Login button, which is a problem obviously.
Any help would be appreciated, trying to puzzle together a decent server here.



FIXED!
Solution:

Added login.php to the list in sub.php! Since I noticed different types of sub.php's were sent to me and they both had different effects on the website I slowly but surely noticed just now that one of them had all of the functions working except login, and started to analyze both scripts and came to the logical conclusion that one file was missing on the list, and that's what it was. Shoutout to me.
 
Last edited:
Do you have this file > layout\sub.php

Becouse in that file you find this text:
Code:
/* Znote AAC Sub System
    -    Used to create custom pages
    -    Place the contents of the page in /layout/sub/ folder.
        : You don't need to include init, header or footer.
        Its already taken care of, just write the contents you want.

    Then add that page to the configuration below. Config syntax:
    'PAGENAME' => array(
        'file' => 'fileName.php',
        'override' => false
    ),
    ................
    There are 2 ways to view your page, by using sub.php file, or by overriding an existing default page.
    1: yourwebiste.com/sub.php?page=PAGENAME
    2: By having override => true, then it will load your sub file instead of the default znote aac file.

*/
I cant realy tell you exactly what to do becouse i dont have the files for the website infront of me
 
Last edited:
@Himii

Yes this is what I have in www\layout\sub.php

PHP:
<?php
/* Znote AAC Sub System
- Used to create custom pages
- Place the contents of the page in /layout/sub/ folder.
: You don't need to include init, header or footer.
Its already taken care of, just write the contents you want.
Then add that page to the configuration below. Config syntax:
'PAGENAME' => array(
'file' => 'fileName.php',
'override' => false
),
................
There are 2 ways to view your page, by using sub.php file, or by overriding an existing default page.
1: yourwebiste.com/sub.php?page=PAGENAME
2: By having override => true, then it will load your sub file instead of the default znote aac file.
*/
$subpages = array(
// website.com/sub.php?page=blank
'blank' => array(
// layout/sub/blank.php
'file' => 'blank.php',
// false means don't run this file instead of the regular file at website.com/blank.php
'override' => false
),
'houses' => array(
'file' => 'houses.php',
'override' => false
),
'downloads' => array(
'file' => 'downloads.php',
'override' => false
),
'highscore' => array(
'file' => 'highscore.php',
'override' => false
),
'news' => array(
'file' => 'index.php',
'override' => false
),
'charactersearch' => array(
'file' => 'charactersearch.php',
'override' => false
),
'recover' => array(
'file' => 'recover.php',
'override' => false
),
'loggedin' => array(
'file' => 'loggedin.php',
'override' => false
),
);
?>
 
FIXED!
Solution:

Added login.php to the list in sub.php! Since I noticed different types of sub.php's were sent to me and they both had different effects on the website I slowly but surely noticed just now that one of them had all of the functions working except login, and started to analyze both scripts and came to the logical conclusion that one file was missing on the list, and that's what it was. Shoutout to me.
 
Back
Top