How to enable the menu on the top

poptastico

VIP Member
V.I.P Member
Registered
Joined
Sep 29, 2020
Messages
50
Points
18

Reputation:

Hi everyone

How can I enable and edit the menu on the top of page?

1603719231607.png
 

poptastico

VIP Member
V.I.P Member
Registered
Joined
Sep 29, 2020
Messages
50
Points
18

Reputation:

@zeus1971
I installed, did a link, saved and still cant see the menu
something missing?
could u plz gimme a light?

thx
 

zeus1971

SVIP Member
S.V.I.P Member
Registered
Joined
Apr 18, 2020
Messages
259
Points
63

Reputation:

Just in case ; are you using XF 2.1 or greater ?
Are these option ok ( and others too) ?
1603731108143.png
 

poptastico

VIP Member
V.I.P Member
Registered
Joined
Sep 29, 2020
Messages
50
Points
18

Reputation:

I am using XF 2.2
Yes the options are ok, but somehow still does not appear on top
hope @ENXF NET can help
 
View previous replies…

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
8,702
Points
698

Reputation:

@poptastico I don't have specific instructions, I usually do direct user support
 

poptastico

VIP Member
V.I.P Member
Registered
Joined
Sep 29, 2020
Messages
50
Points
18

Reputation:

My page container template seems to not have the code to call the plugin,
What should I write to call it?


XML:
<body data-template="{$template}">

<div class="p-pageWrapper" id="top">

<xf:if contentcheck="true">
    <div class="p-staffBar">
        <div class="p-staffBar-inner hScroller" data-xf-init="h-scroller">
            <div class="hScroller-scroll">
            <xf:contentcheck>
                <xf:if is="$xf.visitor.is_moderator && $xf.session.unapprovedCounts.total">
                    <a href="{{ link('approval-queue') }}" class="p-staffBar-link badgeContainer badgeContainer--highlighted" data-badge="{$xf.session.unapprovedCounts.total|number}">
                        <xf:fa icon="fa-check" /> {{ phrase('approval_queue') }}
                    </a>
                </xf:if>

                <xf:if is="$xf.visitor.is_moderator && !$xf.options.reportIntoForumId && $xf.session.reportCounts.total">
                    <a href="{{ link('reports') }}"
                        class="p-staffBar-link badgeContainer badgeContainer--visible {{ ($xf.session.reportCounts.total && ($xf.session.reportCounts.lastBuilt > $xf.session.reportLastRead) OR $xf.session.reportCounts.assigned) ? ' badgeContainer--highlighted' : '' }}"
                        data-badge="{{ $xf.session.reportCounts.assigned ? $xf.session.reportCounts.assigned|number . ' / ' . $xf.session.reportCounts.total|number : $xf.session.reportCounts.total|number }}"
                        title="{{ $xf.session.reportCounts.lastBuilt ? phrase('last_report_update:')|for_attr . ' ' . date_time($xf.session.reportCounts.lastBuilt) : '' }}">
                        <xf:fa icon="fa-file-alt" /> {{ phrase('reports') }}
                    </a>
                </xf:if>

                <xf:if contentcheck="true">
                    <a class="p-staffBar-link menuTrigger" data-xf-click="menu" data-xf-key="alt+m" role="button" tabindex="0" aria-expanded="false" aria-haspopup="true"><xf:fa icon="fa-gavel" /> {{ phrase('moderator') }}</a>
                    <div class="menu" data-menu="menu" aria-hidden="true">
                        <div class="menu-content">
                            <h4 class="menu-header">{{ phrase('moderator_tools') }}</h4>
                            <xf:contentcheck>
                            <!--[XF:mod_tools_menu:top]-->
                            <xf:if is="$xf.visitor.is_moderator">
                                <a href="{{ link('approval-queue') }}" class="menu-linkRow"><xf:fa icon="fa-check fa-fw" /> {{ phrase('approval_queue') }}</a>
                            </xf:if>
                            <xf:if is="$xf.visitor.is_moderator && !$xf.options.reportIntoForumId">
                                <a href="{{ link('reports') }}" class="menu-linkRow" title="{{ $xf.session.reportCounts.lastBuilt ? phrase('last_report_update:')|for_attr . ' ' . date_time($xf.session.reportCounts.lastBuilt) : '' }}"><xf:fa icon="fa-file-alt fa-fw" /> {{ phrase('reports') }}</a>
                            </xf:if>
                            <!--[XF:mod_tools_menu:bottom]-->
                            </xf:contentcheck>
                        </div>
                    </div>
                </xf:if>

                <xf:if is="$xf.visitor.is_admin">
                    <a href="{{ base_url('admin.php') }}" class="p-staffBar-link" target="_blank"><xf:fa icon="fa-lock" /> {{ phrase('admin') }}</a>
                </xf:if>
                
                <xf:if is="property('xtr_visitor_tabs_position') == 'staff'">
                    </div><xf:macro name="visitortabs" arg-searchConstraints="{$searchConstraints}" arg-navTree="{$navTree}" /><div>
                </xf:if>
                
            </xf:contentcheck>
            </div>
        </div>
    </div>
</xf:if>
 

poptastico

VIP Member
V.I.P Member
Registered
Joined
Sep 29, 2020
Messages
50
Points
18

Reputation:

@ENXF NET
Just checked now and the problem is the theme
I can see on default style but not on my theme
How do the information is inserted into page container? I couldnt find the code lines about it ....

The code seems to be in the header tag under page-container, but do not appear there
how is it placed?

XML:
<header class="p-header" id="header">
    <div class="p-header-inner">
        <div class="p-header-content">
            <div class="p-header-logo p-header-logo--image">
                <a href="{{ ($xf.options.logoLink && $xf.homePageUrl) ? $xf.homePageUrl : link('index') }}">
                    <img src="{{ base_url(property('publicLogoUrl')) }}" srcset="{$srcset}" alt="{$xf.options.boardTitle}"
                        width="{{ property('publicLogoWidth') ?: '' }}" height="{{ property('publicLogoHeight') ?: '' }}" />
                </a>
            </div>

            <xf:ad position="container_header" />
        </div>
    </div>
</header>
 
Top