1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Remove Navigation Tab?

Discussion in 'Pickem Support' started by RobParker, Aug 14, 2012.

  1. RobParker

    RobParker Member SC Premium Pickem Sportsbook

    Our problem is that we have too many tabs in our navigation bar and I was wondering what the easiest way to remove the tab would be?

    Even better would be to have one tab for both the Sortsbook and the Pick'em addons but I suspect we're in the minority wanting that.
     
  2. Bob

    Bob Developer Staff Member

    The easiest is to disable the Code Event Listener for the specific tab.

    Steps:

    1. Put your site into debug mode.

    2. Click on the Development Tab

    3. Click on Code Event Listeners

    This will list ALL code event listeners for Addons that you've added. What you want to do is disable the navigation_tabs listener for Pickem. To disable, simply uncheck the box for that specific listener. If you ever want to enable it again, you simply check the box. You can do this for ANY addon that has a navigations_tab listener.
     
  3. RobParker

    RobParker Member SC Premium Pickem Sportsbook

    I never realised it was that easy, that's a huge help :)

    It sounds like I should be able to disable the tab for both sportsbook and Pickem and then use a page node as a "landing page" for both of them.

    Cheers
     
  4. Bob

    Bob Developer Staff Member

    yuppers... you should be able to do that :) You'll need create sub navigation links tho so that people can get to specific areas like the leaderboard and the My Picks page..
     
  5. Sheldon

    Sheldon Active Member Pickem Sportsbook Survivor

    I think when you disable them that way, you will also lose the breadcrumb on them. At least it happened for me. Then the members complained about the breadcrumb not being there. Meh. Just can't win. Hah.
     
  6. Sheldon

    Sheldon Active Member Pickem Sportsbook Survivor

    Here was one I created combining Sportsbook and Stock Trader. I am sure you can replace whatever is needed for PickEm as well.

    Code:
    <ul class="secondaryContent blockLinksList">
            <div class="primaryContent menuHeader muted"><a href="/sportsbook/">Sportsbook</a></div>
        <li><a href="{xen:link 'sportsbook-events'}">{xen:phrase xi_sportsbook_menu_item_events}</a></li>
        <li><a href="{xen:link 'sportsbook-events/archive'}">{xen:phrase xi_sportsbook_menu_item_events_archive}</a></li>   
        <li><a href="{xen:link 'sportsbook-wagers'}">{xen:phrase xi_sportsbook_menu_item_my_wagers}</a></li>
        <li><a href="{xen:link 'sportsbook-stats'}">{xen:phrase xi_sportsbook_menu_item_statistics}</a></li>
        <xen:if is="{$visitor.permissions.xisportsbook.createEvent}">
            <li><a href="{xen:link 'sportsbook-bookiecp'}">{xen:phrase xi_sportsbook_menu_item_bookiecp}</a></li>
        </xen:if>
        <div class="primaryContent menuHeader muted"><a href="/stocktrader/">Stock Trader</a></div>
        <li><a href="{xen:link 'stocktrader/top-portfolios'}">Top Portfolios</a></li>
        <li><a href="{xen:link 'stocktrader/popular-stocks'}">Popular Stocks</a></li>
        <li><a href="{xen:link 'stocktrader'}">My Portfolio</a></li>
    </ul>
     
  7. Bob

    Bob Developer Staff Member

    You can get away with that as long as all the URLs are static (which all of those are). If there are any variables involved used to create dynamic URLs(which pickem will have), that are passed via listeners or controllers, then you will have a problem.
     
  8. Sheldon

    Sheldon Active Member Pickem Sportsbook Survivor

    Completely forgot about the fact there would be dynamic URLs.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.