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

AAC Modern AAC - How to get Session Nickname.

roronoaBenny

New Member
Joined
Jul 25, 2018
Messages
1
Reaction score
0
Hello, before, sorry for the poor english, i'm a brazillian user.
Well, i'm trying to get Session Nickname in my custom Modern AAC template, but i still learning about web dev. So, im trying to do this:
HTML:
Hello, <?php echo $_SESSION['nickname'];?>
HTML:
Hello, <?php echo $_SESSION['nickname'];?>
Because i found this on account.php (page that shows user nickname).
PHP:
<?php
$GLOBALS['characters'] = $characters;
$ide = new IDE;
try { $ide->loadInjections("account"); } catch(Exception $e) { error($e->getMessage()); }
    echo "<h2>Hello <a href='".url('profile/view/'.$_SESSION['nickname'])."'>".ucfirst($_SESSION['nickname'])."</a>!</h2>";

So, i ask to a friend and her say that i need to define the variable in index.tpl.
So, how can i do this?
Thanks u all :)
 
Back
Top