Jump to content
  • 0

[Flux CP Renewal] Login and Account Menu in all pages


Question

Posted (edited)

Hello everyone!

I'm in an integration of one of my themes in Flux CP, but, this theme have a connection form in all pages.
When the player is connected, I've a menu in all pages too to access to account management pages, obviously, I want to show the account name in all pages.

Screenshots of what I want to integrate:


User menu:

fRuBzmUwhI.png
 
Login form
LrwoiOk7BG.png
 
Do u have any solution to this?

I've think to add the account module in all pages, but I don't know how to make this.
 
Thank you!

PS: Sorry for my bad English.
 
 
Edit: I've found a solution for the second problem: 
          <div id="connectbox">
            <img class="avatar" src="<?php echo $this->themePath('') ?>/template/images/top/sampleavatar.png"/>
            <a id="showusermenu">Bienvenue, <?php echo htmlspecialchars($session->account->userid) ?> !</a>
          </div>
          <div style="display: none;" class="connect content">
            <ul>
              <li><a href="?module=account&action=view">Mon compte</a></li>
              <li><a href="?module=account&action=changepass">Changer de mot de passe</a></li>
              <li><a href="?module=account&action=changemail">Changer de mail</a></li>
              <li class="deco"><a href="?module=account&action=logout">Déconnexion</a></li>
            </ul>
          </div>

Static menu and session variable.

Edited by Elendil

3 answers to this question

Recommended Posts

Posted

This question was asked in frathena (French eathena support board) by Keyworld:
 

 

 

Logically, require/include(_once) directly in the templates which include the wished module.
(templates/default/footer.php - templates/default/header.php - templates/default/main/*.php) 

 

That's actualy what I've done for the status & the connection panel, it works like a charm!

Posted

I don't quite understand what you're asking..

If you want to display the account name, you'd echo $session->account->userid where you want it to be displayed.

Posted

Hello,

 

Yep, for the account name, I've found that yesterday (5min after post my problem...), thank you.

But, no, in fact, I want to load a module in all pages.
Exemple: to show the number of connected players, the server status, or something like that (Top 5 PVP... etc)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...