• 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!

[Znote AAC] Guilcera Layout

Peonso

Godly Member
Joined
Jan 14, 2008
Messages
1,752
Solutions
30
Reaction score
1,541
How to install:
  1. You need Znote AAC 1.5, [Get it HERE].
  2. Download the layout.
  3. Enter Znote AAC directory, and delete (or rename) layout folder.
  4. Extract .zip into Znote AAC directory.
  5. It will ask to substitute characterprophile.php, do so if you want your character page to be the same as the image above.

Adding Title Image to your pages:
Open the page .php file and search for this line of code:
Code:
include 'layout/overall/header.php';
after that add this:
Code:
?>
<img src="layout/images/titles/t_DESIREDTITLE.png"/><p>
<?php
Remember to change t_DESIREDTITLE.png for your desired image name, you can see the ones available at .../layout/images/titles/
The code should be like this:
Code:
include 'layout/overall/header.php';
?>
<img src="layout/images/titles/t_DESIREDTITLE.png"/><p>
<?php

Any problem or questions, just ask.
 

Attachments

Last edited by a moderator:
I developed a layout for Znote AAC, I tested it with version 1.5, don't know if it works with 1.4.

View attachment 26212


Download:
Guilcera Layout by Peonso for ZnoteAAC 1.5

How to install:
  1. You need Znote AAC 1.5, [Get it HERE].
  2. Download the layout.
  3. Enter Znote AAC directory, and delete (or rename) layout folder.
  4. Extract .zip into Znote AAC directory.
  5. It will ask to substitute characterprophile.php, do so if you want your character page to be the same as the image above.

Adding Title Image to your pages:
Open the page .php file and search for this line of code:
Code:
include 'layout/overall/header.php';
after that add this:
Code:
?>
<img src="layout/images/titles/t_DESIREDTITLE.png"/><p>
<?php
Remember to change t_DESIREDTITLE.png for your desired image name, you can see the ones available at .../layout/images/titles/
The code should be like this:
Code:
include 'layout/overall/header.php';
?>
<img src="layout/images/titles/t_DESIREDTITLE.png"/><p>
<?php

Any problem or questions, just ask.

Thanks for sharing. Looks a bit like the dwarf layout.
 
I got some elements from it, left menu, title font, some other little things.

Alright. Well, I never been a fan of the dwarf layout but you really created something good out of it. Nice :)
 
I uploaded the wrong screenshot ;/ Actually I added a texture to the menu.04.png
 
@Peonso
Thanks for your contribution! :D
Znote AAC got a sub system that loads from the layout folder. This allows you to override default pages like characterprofile.php without making the user need to change any of the original files.
If you look at my tibiacom layout you see me using the sub system as a replacement for widgets and news/index.php. :)
Check the file at /layout/sub.php and the folder at /layout/sub/
 
hello I get this error when I give online players:

string (62) "SELECT * FROM` ORDER BY `record` server_record` DESC LIMIT 20;"
(query - SQL error)
Type: select_multi (select multiple rows from database)

Table 'forgotten.server_record' does not exist

error layout.png


with original layout if that came out right, which may be the reason, I need the query db table forgotten_server ??

Greetings and thanks for reading
 
@Peonso
Thanks for your contribution! :D
Znote AAC got a sub system that loads from the layout folder. This allows you to override default pages like characterprofile.php without making the user need to change any of the original files.
If you look at my tibiacom layout you see me using the sub system as a replacement for widgets and news/index.php. :)
Check the file at /layout/sub.php and the folder at /layout/sub/

How would it work with all the other pages with links for characterprofile.php? I added some sub pages, but had no idea as how to actually replace a page.

hello I get this error when I give online players:

string (62) "SELECT * FROM` ORDER BY `record` server_record` DESC LIMIT 20;"
(query - SQL error)
Type: select_multi (select multiple rows from database)

Table 'forgotten.server_record' does not exist

View attachment 26669

with original layout if that came out right, which may be the reason, I need the query db table forgotten_server ??

Greetings and thanks for reading

You can run
Code:
CREATE TABLE `server_record` (
  `record` int(11) NOT NULL,
  `timestamp` bigint(20) NOT NULL,
  UNIQUE KEY `record` (`record`,`timestamp`)
)
and it might fix the error. But what version are you using? Do you know if its stores records of players online at the database at all?
 
hi @Peonso
I use TFS 1.0 and Znote 1.5 SVN
I added the db table and I get this error now:




Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\layout\sub\whoisonline.php on line 4
t_plaonline.png



Server Status
Forgotten Znote AAC record of players online:
Notice: Undefined variable: data in C:\xampp\htdocs\layout\sub\whoisonline.php on line 11
on
Notice: Undefined variable: data in C:\xampp\htdocs\layout\sub\whoisonline.php on line 11
Jan 1 1970.
 
this is what it says on line 11 whoisonline.php

Code:
<tr><td><b><?php echo $config['site_title'] ?></b> record of players online: <?php echo $data[0]['record'] ?> on <?php echo date("M j Y", $data[0]['timestamp']) ?>.</td></tr>
 
this is what it says on line 11 whoisonline.php

Code:
<tr><td><b><?php echo $config['site_title'] ?></b> record of players online: <?php echo $data[0]['record'] ?> on <?php echo date("M j Y", $data[0]['timestamp']) ?>.</td></tr>

try this as /layout/subs/whoisonline.php

Code:
<?php require_once 'engine/init.php';

$records = mysql_select_single('SELECT `value` FROM `server_config` WHERE `config` = `players_record`');
?>
<img src="layout/images/titles/t_plaonline.png"/><p>
<table>
<tr class="yellow"><th>Server Status</th></tr>
<tr><td><b><?php echo $config['site_title'] ?></b> record of players online: <?php echo $records['value'] ?>.</td></tr>
<tr><td><?php
                                $status = true;
                                if ($config['status']['status_check']) {
                                    @$sock = fsockopen ($config['status']['status_ip'], $config['status']['status_port'], $errno, $errstr, 1);
                                    if(!$sock) {
                                        echo '<b>';
                                        echo $config['site_title'];
                                        echo '</b> is currently offline.';
                                        $status = false;
                                    }
                                    else {
                                        $info = chr(6).chr(0).chr(255).chr(255).'info';
                                        fwrite($sock, $info);
                                        $data='';
                                        while (!feof($sock))$data .= fgets($sock, 1024);
                                        fclose($sock);
                                        echo 'Currently ';
                                        echo user_count_online();
                                        echo ' players are online.';
                                    }
                                }
?></td></tr>
</table>
<?php
$array = online_list();
if ($array) {
    ?>
   
    <table id="onlinelistTable" class="table table-striped table-hover">
        <tr class="yellow">
            <th>Name</th>
            <th>Level</th>
            <th>Vocation</th>
        </tr>
            <?php
            foreach ($array as $value) {
            echo '<tr>';
            echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
            echo '<td>'. $value['level'] .'</td>';
            echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
            echo '</tr>';
            }
            ?>
    </table>

    <?php
}
?>
 
now get this error:

string(69) "SELECT `value` FROM `server_config` WHERE `config` = `players_record`"
(query - SQL error)
Type: select_single (select single row from database)

Unknown column 'players_record' in 'where clause'
 
I don't have a TFS 1.0 database to test, so I'm making some mistakes ;/

try this

Code:
<?php require_once 'engine/init.php';

$records = mysql_select_single("SELECT `value` FROM `server_config` WHERE `config` = 'players_record'");
?>
<img src="layout/images/titles/t_plaonline.png"/><p>
<table>
<tr class="yellow"><th>Server Status</th></tr>
<tr><td><b><?php echo $config['site_title'] ?></b> record of players online: <?php echo $records['value'] ?>.</td></tr>
<tr><td><?php
$status = true;
if ($config['status']['status_check']) {
@$sock = fsockopen ($config['status']['status_ip'], $config['status']['status_port'], $errno, $errstr, 1);
if(!$sock) {
echo '<b>';
echo $config['site_title'];
echo '</b> is currently offline.';
$status = false;
}
else {
$info = chr(6).chr(0).chr(255).chr(255).'info';
fwrite($sock, $info);
$data='';
while (!feof($sock))$data .= fgets($sock, 1024);
fclose($sock);
echo 'Currently ';
echo user_count_online();
echo ' players are online.';
}
}
?></td></tr>
</table>
<?php
$array = online_list();
if ($array) {
?>

<table id="onlinelistTable" class="table table-striped table-hover">
<tr class="yellow">
<th>Name</th>
<th>Level</th>
<th>Vocation</th>
</tr>
<?php
foreach ($array as $value) {
echo '<tr>';
echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
echo '<td>'. $value['level'] .'</td>';
echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
echo '</tr>';
}
?>
</table>

<?php
}
?>
 
I don't have a TFS 1.0 database to test, so I'm making some mistakes ;/

try this

Code:
<?php require_once 'engine/init.php';

$records = mysql_select_single("SELECT `value` FROM `server_config` WHERE `config` = 'players_record'");
?>
<img src="layout/images/titles/t_plaonline.png"/><p>
<table>
<tr class="yellow"><th>Server Status</th></tr>
<tr><td><b><?php echo $config['site_title'] ?></b> record of players online: <?php echo $records['value'] ?>.</td></tr>
<tr><td><?php
$status = true;
if ($config['status']['status_check']) {
@$sock = fsockopen ($config['status']['status_ip'], $config['status']['status_port'], $errno, $errstr, 1);
if(!$sock) {
echo '<b>';
echo $config['site_title'];
echo '</b> is currently offline.';
$status = false;
}
else {
$info = chr(6).chr(0).chr(255).chr(255).'info';
fwrite($sock, $info);
$data='';
while (!feof($sock))$data .= fgets($sock, 1024);
fclose($sock);
echo 'Currently ';
echo user_count_online();
echo ' players are online.';
}
}
?></td></tr>
</table>
<?php
$array = online_list();
if ($array) {
?>

<table id="onlinelistTable" class="table table-striped table-hover">
<tr class="yellow">
<th>Name</th>
<th>Level</th>
<th>Vocation</th>
</tr>
<?php
foreach ($array as $value) {
echo '<tr>';
echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
echo '<td>'. $value['level'] .'</td>';
echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
echo '</tr>';
}
?>
</table>

<?php
}
?>

thanx.jpg
Greetings and thank you for your effort, you're a very good.
 
How would it work with all the other pages with links for characterprofile.php? I added some sub pages, but had no idea as how to actually replace a page.

Ahh yeah, didnt think about that. :/ Will have to figure something out regarding linking to original pages. I will add it to Znote AAC 1.5 milestone.
 
Back
Top