Jump to content
  • 0

FluxCP Admin menu wont show up.


AsuraBro

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  74
  • Reputation:   3
  • Joined:  07/12/14
  • Last Seen:  

Hello there, 

 

i just installed my flux cp and added a theme.

 

But when i log into my admin account i cant see the admin menu, Normal players menu shows up.

 

here is my files and settings,

 

Header.php

                    <div id="container">    
                        <?php if ( $params->get('module') == 'main' AND $params->get('action') == 'index' ): ?>                        </div>
                        <?php endif; ?>
                        <div class="container<?php if( $params->get('module') == 'main' AND $params->get('action') == 'index' ) echo ""; else echo "Right"; ?>">
                            <?php if ($message=$session->getMessage()): ?>
                            <p class="message"><?php echo htmlspecialchars($message) ?></p>
                            <?php endif ?>
                            <?php include 'main/submenu.php'; ?>
                            <?php include 'main/pagemenu.php' ?>
                            <?php if (in_array($params->get('module'), array('donate', 'purchase'))) include 'main/balance.php' ?>    
                    </div>

Main/submenu.php

<?php if (!defined('FLUX_ROOT')) exit; ?>
<?php $subMenuItems = $this->getSubMenuItems(); $menus = array() ?>
<?php if (!empty($subMenuItems)): ?>
    <div id="submenu">Menu:
    <?php foreach ($subMenuItems as $menuItem): ?>
        <?php $menus[] = sprintf('<a href="%s" class="sub-menu-item%s">%s</a>',
            $this->url($menuItem['module'], $menuItem['action']),
            $params->get('module') == $menuItem['module'] && $params->get('action') == $menuItem['action'] ? ' current-sub-menu' : '',
            htmlspecialchars($menuItem['name'])) ?>
    <?php endforeach ?>
    <?php echo implode(' / ', $menus) ?>
    </div>
<?php endif ?>

:/

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

did you adjust your account group id to admin group ?

Link to comment
Share on other sites

×
×
  • Create New...