Admin menu v6.2.0

7

Hi,


I just updated to WackoWiki 6.2.0 and found that the Admin menu is hidden and only two options appear: changes and my favorites. What happened to the general menu for the Admin? Other users can see it without any problems.


regards

Comments

  1. Re: Admin menu v6.2.0

    I'm not sure what is not as expected. Does the installer have purged or jammed your menu, what does the menu table says?
    What you mean with 'general menu for the Admin', your personal bookmarks / menu?
    Is there something with the new 'WhatsNew' page and bookmark?
    • WikiAdmin
    • 11/25/2025 22:24 edited
  2. Re: Admin menu v6.2.0

    The news page was automatically added to the menu, but I removed it from my main menu.

    Guides | Library | Programs | Teams | Projects | Forum

    The administrator only sees the news and favorites, but the one I have configured is not displayed in this profile.

    Changes |
    • ascrsoft
    • 11/25/2025 22:40 edited
  3. Re: Admin menu v6.2.0

    but the one I have configured is not displayed in this profile


    You configured what and where for whom (... in menu table)? When it is gone, where is it now and why it showed it before.
    Your menu is loaded into the session when you login as user.

    {{menu}}
    {{menu system=1}}
    • WikiAdmin
    • 11/25/2025 22:43 edited
  4. Re: Admin menu v6.2.0

    Update the previous post so you can see the menu.
    The menu was always public for everyone, I don't know why it now disappears for the administrator. :S
  5. Re: Admin menu v6.2.0

    The switch happens probably because you haven't set any bookmarks before, and when there are no bookmarks set it takes the default menu. The very moment you set your own bookmarks, or the installer sets one for you it no longer loads the default bookmarks because you have set your own. You can delete all your bookmarks and than it will show you again the default bookmarks. You can of course set in your theme that it should show you the default bookmarks as well your personal bookmarks, but this is not the default behavior in the default theme, it shows you either one or the other.

    The installer sets now the bookmarks for the admin account in advance, because it adds now the new tools page in the bookmarks for the admin with the {{admincache}} and {{admin_recovery}} action.
    • WikiAdmin
    • 11/25/2025 23:58 edited
  6. Re: Admin menu v6.2.0

    I have never used bookmarks; I only configured the main menu from the administration section, which is for all users and the public website.
    From what I understand, it is now possible to customize the menu per user, and this is done from the administration section? I checked and did not see any option for this.
  7. Re: Admin menu v6.2.0

    It was always possible to set your own bookmarks, new is that the installer pre-sets bookmarks for the admin.

    setup/insert_pages.php
    <?php
    
    $admin_menu_item    =
        "INSERT INTO " . $prefix . "menu (
            user_id,
            page_id,
            menu_lang,
            menu_title,
            menu_position
        )
        VALUES (
            (" . $q_admin_id . "),
            (" . $q_page_id . "),
            '" . _q($lang) . "',
            '" . _q($menu_title) . "',
            '" . (int) $menu_position . "'
        )" .
        (in_array($config_global['db_driver'], ['sqlite', 'sqlite_pdo'])
            ? "ON CONFLICT(user_id, page_id, menu_lang) DO UPDATE SET
                menu_title = excluded.menu_title;"
            : "ON DUPLICATE KEY UPDATE
                menu_title = '" . _q($menu_title) . "'"
            );
    
    if ($set_menu)
    {
        $insert_data[]    = [$admin_menu_item,    _t('ErrorInsertDefaultMenuItem')];
    }


    In the set_menu() function in the Wacko class it does the following:
    <?php
    
    if (isset($user['user_id']) && $set != MENU_DEFAULT)
    {
        $menu = $this->get_user_menu($user['user_id']);
        $this->sess->menu_default = false;
    }
    
    if (!$menu)
    {
        $menu = $this->get_default_menu();
        $this->sess->menu_default = true;
    }
    • WikiAdmin
    • 11/25/2025 23:37 edited
Log in or create an account to post a comment.