• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Move visitor tabs to modbar

Dynamic

Well-known member
#1
Hello,

On xf 1.x I used this tutorial to move my visitor tabs to the modbar. I have now upgraded to xf1.2 and this is buggy.

Most things work normally with the exception of two things.

1) Alerts show up in both the normal alerts tab, but also near the username.

2) Secondary navigation moves to the modbar when you are in your conversation page. This is annoying as it breaks the design.

Does anyone know how to fix this?

EDIT: I still want the visitor tabs in the moderator bar.

Thanks.
 

Forsaken

Well-known member
#3
Re-do the steps and check if you missed anything; this works fine in my framework, and that isn't much different than what I used in the tutorial.
 

Dynamic

Well-known member
#4
Hey @Forsaken,

Thanks for the reply. I checked everything and still the same thing. The navigation moves to the modbar without a problem, but when in the 'conversations' page, the secondary navigation also moves to the modbar :/ It seems to be the only page that does it.

Any ideas?
 
Last edited:

Dynamic

Well-known member
#6
Okay, I figured it out. Just for anyone else who may be having the same issue.

navigation_visitor_tab

Select this code.
Code:
<xen:if is="{$tabs.inbox.selected}">
    <li class="navTab selected">
        <div class="tabLinks">
            <ul class="secondaryContent blockLinksList">
                <li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li>
                <li><a href="{xen:link conversations/starred}">{xen:phrase starred_conversations}</a></li>
                <li><a href="{xen:link conversations/yours}">{xen:phrase conversations_you_started}</a></li>
            </ul>
        </div>
    </li>
    </xen:if>


Then comment it out.
Code:
<xen:comment>
<xen:if is="{$tabs.inbox.selected}">
    <li class="navTab selected">
        <div class="tabLinks">
            <ul class="secondaryContent blockLinksList">
                <li><a href="{xen:link conversations}">{xen:phrase conversations}</a></li>
                <li><a href="{xen:link conversations/starred}">{xen:phrase starred_conversations}</a></li>
                <li><a href="{xen:link conversations/yours}">{xen:phrase conversations_you_started}</a></li>
            </ul>
        </div>
    </li>
    </xen:if>
</xen:comment>