Jump to content
  • 0

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


Elendil

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3124
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

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)

Link to comment
Share on other sites

×
×
  • Create New...