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

How to fix Menu issue

Discussion in 'XenForo Questions and Support' started by iTuN3r, Dec 5, 2010.

  1. iTuN3r

    iTuN3r Well-Known Member

    Recently i installed Event Add-on everything looks good so far in default template i can see (event) option in menu in default one but i noticed this issue in another template :

    example.jpg

    Am i missing something ? Probably someone can help me to fix this issue :(

    Thank you
     
  2. Russ

    Russ Well-Known Member

    Will you post your navigation template here?
     
  3. iTuN3r

    iTuN3r Well-Known Member

    You mean this one ?

    Code:
    <xen:edithint template="navigation.css" />
    
    <div id="navigation" class="pageWidth">
        <div class="pageContent">
            <nav>
    
    <div class="navTabs">
        <ul class="publicTabs">
    
            <!-- home -->
            <li class="navTab home PopupClosed"><a href="{$homeLink}" class="navLink">{xen:phrase home}</a></li>
     
            <!-- forums -->
            <xen:if is="{$tabs.forums}">
                <li class="navTab forums {xen:if $tabs.forums.selected, 'selected', 'Popup PopupControl PopupClosed'}">
    
                    <a href="{$tabs.forums.href}" class="navLink">{$tabs.forums.title}</a>
                    <a href="{$tabs.forums.href}" class="SplitCtrl" rel="Menu"></a>
    
                    <div class="{xen:if {$tabs.forums.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">
                        <div class="primaryContent menuHeader">
                            <h3>{$tabs.forums.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <ul class="secondaryContent blockLinksList">
                            <xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'forums/-/mark-read', '', 'date={$serverTime}'}" class="OverlayTrigger">{xen:phrase mark_all_forums_read}</a></li></xen:if>
                            <xen:if is="{$canSearch}"><li><a href="{xen:link search, '', 'type=post'}">{xen:phrase search_forums}</a></li></xen:if>
                            <xen:if is="{$visitor.user_id}"><li><a href="{xen:link 'watched/threads'}">{xen:phrase watched_threads}</a></li></xen:if>
                            <li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>
                        </ul>
                    </div>
                </li>
            </xen:if>
     
            <!-- extra tabs -->
            <xen:if is="{$extraTabs}">
            <xen:foreach loop="$extraTabs" key="$extraTabId" value="$extraTab">
                <xen:if is="{$extraTab.linksTemplate}">
                    <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
    
                    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a>
                    <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
    
                    <div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">
                        <div class="primaryContent menuHeader">
                            <h3>{$extraTab.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        {xen:raw $extraTab.linksTemplate}
                    </div>
                </li>
                <xen:else />
                    <li class="navTab PopupClosed"><a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a></li>
                </xen:if>
            </xen:foreach>
            </xen:if>
     
            <!-- members -->
            <xen:if is="{$tabs.members}">
                <li class="navTab members {xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}">
    
                    <a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>
                    <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
    
                    <div class="{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">
                        <div class="primaryContent menuHeader">
                            <h3>{$tabs.members.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <ul class="secondaryContent blockLinksList">
                            <li><a href="{xen:link members}">{xen:phrase registered_members}</a></li>
                            <li><a href="{xen:link online}">{xen:phrase current_visitors}</a></li>
                            <li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li>
                        </ul>
                    </div>
                </li>
            </xen:if>
    
            <!-- help -->
            <xen:if is="{$tabs.help}">
                <li class="navTab help {xen:if $tabs.help.selected, 'selected', 'Popup PopupControl PopupClosed'}">
    
                    <a href="{$tabs.help.href}" class="navLink" rel="help">{$tabs.help.title}</a>
                    <a href="{$tabs.help.href}" class="SplitCtrl" rel="Menu"></a>
    
                    <div class="{xen:if {$tabs.help.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">
                        <div class="primaryContent menuHeader">
                            <h3>{$tabs.help.title}</h3>
                            <div class="muted">{xen:phrase quick_links}</div>
                        </div>
                        <ul class="secondaryContent blockLinksList">
                            <li><a href="{xen:link help/smilies}">{xen:phrase smilies}</a></li>
                            <li><a href="{xen:link help/bb-codes}">{xen:phrase bb_codes}</a></li>
                            <li><a href="{xen:link help/trophies}">{xen:phrase trophies}</a></li>
                        </ul>
                    </div>
                </li>
            </xen:if>
     
            <!-- no selection -->
            <xen:if is="!{$selectedTab}">
                <li class="navTab selected"><div class="tabLinks"></div></li>
            </xen:if>
    
        </ul>
    
        <xen:if is="{$visitor.user_id}"><xen:include template="navigation_visitor_tab" /></xen:if>
    </div>
    
            </nav>
        </div>
    </div>
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    iTuN3r likes this.
  5. iTuN3r

    iTuN3r Well-Known Member

    Thanks figured out :) this will be pain for a while when i need to revert and change things again :p

    Everything is working with default theme's probably templates were untouched :)
     
  6. Russ

    Russ Well-Known Member

    I use Notepad++

    It's a great tool to compare new and old files :) as well as a good editor overall
     
    iTuN3r likes this.
  7. iTuN3r

    iTuN3r Well-Known Member

    Thanks :) Will give that a try and see how helpful it will be for me :p
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    Another plug for Notepad++

    A great free editor which I've used for years.
     

Share This Page