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

[MyAAC] Aldora Template

slaw

Software Developer
Joined
Aug 27, 2007
Messages
3,663
Solutions
125
Reaction score
1,109
Location
Germany
GitHub
slawkens
This is Aldora template for MyAAC. Have fun with it!

NOTE: MyAAC version 0.7.0 is required for this to work.

Demo: http://demo.my-aac.org/?template=aldora

Installation:

Go to Admin Panel, select 'Plugins', and then select myaac-aldora-template.zip and click upload. That's all!

In config.local.php set:
Code:
$config['template'] = 'aldora';

Screens:
myaac_aldora_1.jpg
myaac_aldora_2.jpg
 

Attachments

  • myaac-aldora-template.zip
    1.6 MB · Views: 529 · VirusTotal
Last edited:
Nice Work!

Enjoying the topic, i don't see button to add players on guild, maybe is bug? I'm using last version of myaac with OTHIRE.
 

Attachments

hello good job, do you know where to change the color of account creation captions? because you can't see anything and it merges ;/
 
I have Acc 0.8.2 (latest version) i dont have in admin panel "plugins"... how to instal this layout ? can i simply replace all needed files in folder ?

Also i have this error : Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\layout\widgets\charactersearch.php on line 22
in right colum "character search"
 
I have Acc 0.8.2 (latest version) i dont have in admin panel "plugins"... how to instal this layout ? can i simply replace all needed files in folder ?

Also i have this error : Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\layout\widgets\charactersearch.php on line 22
in right colum "character search"
Just place the layout folder in templates and edit layout name in config.php (must be the same name as layout folder)
 
I have Acc 0.8.2 (latest version) i dont have in admin panel "plugins"... how to instal this layout ? can i simply replace all needed files in folder ?

Also i have this error : Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\layout\widgets\charactersearch.php on line 22
in right colum "character search"

It doesn't look like MyAAC in the path you posted.
 
Good morning. I'm using this one. Extremely beautiful. However I could notice that even though my server has for example 6 players online, in Server Status it is always saying that it has only 1. It does not change. Would anyone know how to tell me how to get it fixed? Thank you!

Server status​

Status:Online
Server Save:05:00
1 Player Online


I also modified Logo.png and Logo2.png and played in the correct folder. And even though I already modified it, it still has the original logo. Does it really take time for the change to take effect?

Thank you. I am learning all this now, and I am very happy with my studies.
 
Good morning. I'm using this one. Extremely beautiful. However I could notice that even though my server has for example 6 players online, in Server Status it is always saying that it has only 1. It does not change. Would anyone know how to tell me how to get it fixed? Thank you!

Server status​

Status:Online
Server Save:05:00
1 Player Online


I also modified Logo.png and Logo2.png and played in the correct folder. And even though I already modified it, it still has the original logo. Does it really take time for the change to take effect?

Thank you. I am learning all this now, and I am very happy with my studies.
Clear cache in admin panel
 
Good morning. I'm using this one. Extremely beautiful. However I could notice that even though my server has for example 6 players online, in Server Status it is always saying that it has only 1. It does not change. Would anyone know how to tell me how to get it fixed? Thank you!

Server status​

Status:Online
Server Save:05:00
1 Player Online


I also modified Logo.png and Logo2.png and played in the correct folder. And even though I already modified it, it still has the original logo. Does it really take time for the change to take effect?

Thank you. I am learning all this now, and I am very happy with my studies.

You are absolutely right! It's a bug. It shows always 1 Player Online. I will fix it when I'm back home.
 
You are absolutely right! It's a bug. It shows always 1 Player Online. I will fix it when I'm back home.

I'm waiting. And I am very grateful for that.

If possible let me know

Lua:
<tr>
                                    <?php if($status['online']) : ?>
                                    <td><a href="<?= getLink('online') ?>"><?= $status['online']; ?> player<?= ($status['online'] > 1 ? 's' : ''); ?> online</a></td><td></td>
                                    <?php endif; ?>
                                </tr>
 
Last edited:
I'm waiting. And I am very grateful for that.

If possible let me know

Lua:
<tr>
                                    <?php if($status['online']) : ?>
                                    <td><a href="<?= getLink('online') ?>"><?= $status['online']; ?> player<?= ($status['online'] > 1 ? 's' : ''); ?> online</a></td><td></td>
                                    <?php endif; ?>
                                </tr>

Change this line:
PHP:
<td><a href="<?= getLink('online') ?>"><?= $status['online']; ?> player<?= ($status['online'] > 1 ? 's' : ''); ?> online</a></td><td></td>

To this:
PHP:
<td><a href="<?= getLink('online') ?>"><?= $status['players']; ?> player<?= ($status['players'] > 1 ? 's' : ''); ?> online</a></td><td></td>
 
Change this line:
PHP:
<td><a href="<?= getLink('online') ?>"><?= $status['online']; ?> player<?= ($status['online'] > 1 ? 's' : ''); ?> online</a></td><td></td>

To this:
PHP:
<td><a href="<?= getLink('online') ?>"><?= $status['players']; ?> player<?= ($status['players'] > 1 ? 's' : ''); ?> online</a></td><td></td>

Great. You are awesome. I have a doubt. In creating an account that is an important part, I believe it is somewhat unreadable. How to change the color of the words:

Account Number:
nok.gif
Please enter account number.
Email Address:
nok.gif
Invalid e-mail format.
Country:
Password:
Repeat password:
nok.gif
Please enter the password again!


Character Name:
Sex:
male female
Vocation:
None Sorcerer Druid Paladin Knight


Please select the following check box:
I agree to the Rulles.


Another thing ... How to safely remove the " Vocation "? I don't want to give the player a choice of vocation when creating the account.
 
I tried to add a new article, and I succeeded. However it did not appear on the site. Is there no Articles for this template? Thanks.
 
I want to thank you for this template. it suits me perfectly.
I have a few questions.
1. how can I change the color scheme of these buttons? (can't find it anywhere)
Скриншот 01-03-2021 170535.jpg
2. How do I delete my character creation during account registration.
3. how to create a character without: choosing a profession and choosing a city. (and character creation with level 1)

thank you in advance
Post automatically merged:

1 more question. where can i change the language of the pop-ups?

Скриншот 01-03-2021 172009.jpg
 
Change this line:
PHP:
<td><a href="<?= getLink('online') ?>"><?= $status['online']; ?> player<?= ($status['online'] > 1 ? 's' : ''); ?> online</a></td><td></td>

To this:
PHP:
<td><a href="<?= getLink('online') ?>"><?= $status['players']; ?> player<?= ($status['players'] > 1 ? 's' : ''); ?> online</a></td><td></td>

Excuse me. I ended up forgetting where I can make this change. Where is? And what's the name?
 
How can I remove this from player afk? I want you to count all the players online. I see the file: Online.html.twing

Lua:
<table border="0" cellspacing="1" cellpadding="4" width="100%">
    <tr bgcolor="{{ config.vdarkborder }}">
        <td class="white"><b>Server Status</b></td>
    </tr>
{% if players|length == 0 %}
    <tr bgcolor="{{ config.darkborder }}"><td>Currently no one is playing on {{ config.lua.serverName }}.</td></tr></table>
{% else %}
    <tr bgcolor="{{ config.darkborder }}">
        <td>
            {% if not status.online %}
            Server is offline.<br/>
            {% else %}
                {% if config.online_afk %}
                    {% set players_count = players|length %}
                    {% set afk = players_count - status.players %}
                    {% if afk < 0 %}
                        {% set players_count = players_count + afk|abs %}
                        {% set afk = 0 %}
                    {% endif %}
                    Currently there are <b>{{ status.players }}</b> active and <b>{{ afk }}</b> AFK players.<br/>
                    Total number of players: <b>{{ players_count }}</b>.<br/>
                {% else %}
                    Currently {{ players|length }} players are online.<br/>
                {% endif %}
            {% endif %}
        </td>
    </tr>
</table>
<br/>
    {# vocation statistics #}
    {% if config.online_vocations %}
<br/>
        {% if config.online_vocations_images %}
    <table width="200" cellspacing="1" cellpadding="0" border="0" align="center">
        <tr bgcolor="{{ config.darkborder }}">
            <td><img src="images/sorcerer.png" /></td>
            <td><img src="images/druid.png" /></td>
            <td><img src="images/paladin.png" /></td>
            <td><img src="images/knight.png" /></td>
        </tr>
        <tr bgcolor="{{ config.vdarkborder }}">
            <td class="white" style="text-align: center;"><strong>Sorcerers</strong></td>
            <td class="white" style="text-align: center;"><strong>Druids</strong></td>
            <td class="white" style="text-align: center;"><strong>Paladins</strong></td>
            <td class="white" style="text-align: center;"><strong>Knights</strong></td>
        </tr>
        <tr bgcolor="{{ config.lightborder }}">
            <td style="text-align: center;">{{ vocs[1] }}</td>
            <td style="text-align: center;">{{ vocs[2] }}</td>
            <td style="text-align: center;">{{ vocs[3] }}</td>
            <td style="text-align: center;">{{ vocs[4] }}</td>
        </tr>
    </table>
    <div style="text-align: center;">&nbsp;</div>
        {% else %}
    <table border="0" cellspacing="1" cellpadding="4" width="100%">
        <tr bgcolor="{{ config.vdarkborder }}">
            <td class="white" colspan="2"><b>Vocation statistics</b></td>
        </tr>

        {% for i in 1..config.vocations_amount %}
        <tr bgcolor="{{ getStyle(i) }}">
            <td width="25%">{{ config.vocations[i] }}</td>
            <td width="75%">{{ vocs[i] }}</td>
        </tr>
        {% endfor %}
    </table>
<br/>
        {% endif %}
    {% endif %}

    {# show skulls #}
    {% if config.online_skulls %}
<table width="100%" cellspacing="1">
    <tr>
        <td style="background: {{ config.darkborder }};" align="center">
            <img src="images/white_skull.gif"/> - 1 - 6 Frags<br/>
            <img src="images/red_skull.gif"/> - 6+ Frags or Red Skull<br/>
            <img src="images/black_skull.gif"/> - 10+ Frags or Black Skull
        </td>
    </tr>
</table>
    {% endif %}

<table border="0" cellspacing="1" cellpadding="4" width="100%">
    <tr bgcolor="{{ config.vdarkborder }}">
        {% if config.account_country %}
        <td width="11px"><a href="?subtopic=online&order=country" class="white">#</A></td>
        {% endif %}
        {% if config.online_outfit %}
        <td class="white"><b>Outfit</b></td>
        {% endif %}
        <td width="60%"><a href="?subtopic=online&order=name" class="white">Name</A></td>
        <td width="20%"><a href="?subtopic=online&order=level" class="white">Level</A></td>
        <td width="20%"><a href="?subtopic=online&order=vocation" class="white">Vocation</td>
    </tr>
    {% set i = 0 %}
    {% for player in players %}
        {% set i = i + 1 %}
        <tr bgcolor="{{ getStyle(i) }}">
        {% if config.account_country %}
            <td>{{ player.country_image|raw }}</td>
        {% endif %}
        {% if config.online_outfit %}
            <td width="5%"><img style="position:absolute;margin-top:{% if player.player.looktype in [75, 266, 302] %}-20px;margin-left:-0px;{% else %}-45px;margin-left:-25px;{%  endif %}" src="{{ player.outfit }}" alt="player outfit"/></td>
        {% endif %}
            <td>{{ player.name|raw }}{{ player.skull }}</td>
            <td>{{ player.level }}</td>
            <td>{{ player.vocation }}</td>
        </tr>
    {% endfor %}
</table>
{% endif %}
 
Back
Top