Exiled Pain
Fervid Learner
- Joined
- Jan 8, 2008
- Messages
- 552
- Reaction score
- 4
How can I add have active the Wadmin.php file when using this as an admin, cause it's not showing for me and it was using the default layout.
Never mind, thanks anyway. It appeared after I fixed the loggedin subHow can I add have active the Wadmin.php file when using this as an admin, cause it's not showing for me and it was using the default layout.
Nevermind, thanks anyway, I solved it just by placing:One more thing... "and sorry for this might look like spam already 3 messages in a row =( "
I got everything that didn't work, working just by adding it to sub inside layout. But when ever I click on lattest news, I still get:
"Sub page not recognized.
The sub page you requested is not recognized."
Have tried several different ways but seems I'm stuck here, could someone help me figure out how to get this to work in this layout.
When the page starts just in my localhost, it does show the news, but when I click on Latest news or the tibia button on top, just get that Sub page not recognized message.
Thanks in advance. =)
FIXED! SorryI got this on my site:
Old layout!
The layout is running an outdated sub system which is not compatible with this version of Znote AAC.
The file /layout/sub.php is outdated.
Please update it to look like THIS.
I got the same thing how did u fix it????FIXED! Sorry
Can't edit my post :/
go to the layout folder and find sup.php start on line 20 delete what is there then copy paste thisI got the same thing how did u fix it????
<?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
),
);
?>
<?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
),
);
?>
add this instead if you want all the pages to work :3
Code:<?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 ...
sorry for tripple post but it might help some people out
Found this message when i copied your sub.php and reedit that one you made was outdatedA tibiacom inspired layout:
Download for Znote AAC 1.4:
Download from Znote.eu
Download for Znote AAC 1.5:
Download from Znote.eu
Installation Instructions:
- You need Znote AAC 1.4 or later version. [Get it HERE].
- Download file.
- Enter Znote AAC directory, and delete (or rename) layout folder.
- Extract .zip into Znote AAC directory.
Enjoy!
Yes, you might have to replace the sub.php file inside your layout folder.Does this work anymore?