How To Add A New Tab In The Navbar [Xenforo]

Discussion in 'Source Code & Tutorial Database' started by SubZero Sighlo, Feb 14, 2012 with 7 replies and 18,815 views.

  1. SubZero Sighlo

    SubZero Sighlo Zombie Slayer Premium

    Messages:
    169
    Ratings:
    33
    [Note: You need your own copy of Xenforo to do this.

    Here is the website:http://xenforo.com/]

    To do this little trick your going to need to navigate to:

    Admin Cp > Appearance > > templates > navigation

    Add this code (insert an appropriate link and tab label):
    Code:
    <!-- mytab -->
            <li class="navTab PopupClosed"><a href="[B]LINK HERE[/B]" class="navLink">[B]TAB LABEL HERE[/B]</a></li>
    ...as shown below:

    Code:
    <li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>
                        </ul>
                    </div>
                </li>
            </xen:if>
     
     
            <!-- mytab -->
            <li class="navTab PopupClosed"><a href="LINK HERE" class="navLink">TAB LABEL HERE</a></li>
     
     
            <!-- extra tabs -->
            <xen:if is="{$extraTabs}">
            <xen:foreach loop="$extraTabs" key="$extraTabId" value="$extraTab">
                <xen:if is="{$extraTab.linksTemplate}">
    If you wanted to do a link for account upgrades you'd do this:
    Code:
        <!-- mytab -->
            <li class="navTab PopupClosed"><a href="{xen:link account/upgrades}" class="navLink">{xen:phrase account_upgrades}</a></li>
    were i found tutorial from:
    http://www.xfteam.info/threads/how-to-add-a-new-tab-in-the-navbar.240/

    Thank you for your time
     
    • Like Like x 3
  2. Surv

    Surv Banned

    Messages:
    53
    Ratings:
    14
  3. S7 Pro

    S7 Pro Member

    Messages:
    2,491
    Ratings:
    1,369
    Sorry for the misunderstanding. Nice tutorial.
     
  4. OP
    SubZero Sighlo

    SubZero Sighlo Zombie Slayer Premium

    Messages:
    169
    Ratings:
    33
    This is for people who have there own copy of xenforo
     
    • Like Like x 2
  5. S7 Pro

    S7 Pro Member

    Messages:
    2,491
    Ratings:
    1,369
    Well then sorry for the misunderstanding. I am glad that you responded so kindly, especially for a new member.
     
  6. OP
    SubZero Sighlo

    SubZero Sighlo Zombie Slayer Premium

    Messages:
    169
    Ratings:
    33
    No problem dude
     
    • Like Like x 1
  7. Faffy

    Faffy Enthusiast

    Messages:
    791
    Ratings:
    88
    Lol I find that funny

    Good tutorial though
     
  8. Poshnjari

    Poshnjari Newbie

    Messages:
    1
    Ratings:
    0
    how to edit header without plugins
     

Share This Page