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:
Login form
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>
Question
Elendil
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:
I've think to add the account module in all pages, but I don't know how to make this.
PS: Sorry for my bad English.
Static menu and session variable.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts