1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

Implemented Betting Exchange: Own Route and Own Navigation Tab

Discussion in 'Sportsbook Closed Suggestions' started by Bob, May 14, 2016.

  1. Bob

    Bob Developer Staff Member

    As per title, Add a new Route and Add a new Navigation Tab for the Betting Exchange.

    Route: betting-exchange (instead of using sportsbook route with a sub route of betting-exchange). This is needed for some planned (and currently being developed) enhancements (comments, inline comment moderation etc).

    The new Betting Exchange Navigation Tab allows for some future expansion like being able to have the new Bets item indicator on the Betting Exchange Tab.

    This also opens up the ability (not yet) to enable just the Betting Exchange without enabling Sportsbook (in case you only want to use the Betting Exchange).

    Selection_140.png


    The Sportsbook Nav Tab sub links will include links to the Betting Exchange (in case you want to hide the Betting Exchange tab).

    NOTE: To hide the Betting Exchange Tab, simply add this to Extra.css:
    HTML:
    .navTabs .navTab.betex {display: none !important;}

    Selection_265.png
     
  2. Bob

    Bob Developer Staff Member

    This has been fully implemented.

    route: betting-exchange replaces using the route: sportsbook with a sub route of betting-exchange ie, sportsbook/betting-exchange is no longer a valid route.

    An Event will be: sportsbook/event_title. event_id
    A Bet will be: betting-exchange/bet_title.bet_id (not sportsbook/betting-exchange/bet_title.bet_id)
     
    Regs likes this.
  3. teflondon

    teflondon New Member Sportsbook

    @Bob

    I hid the Betting Exchange Tab, but now when you click on betting exchange you can't see the bar under the nav bar that has Your Bets, Most Active Users etc like in this picture:
    [​IMG]

    Is that a tradeoff with hiding it?
     
  4. Bob

    Bob Developer Staff Member

    Yes, that is expected behavior with Core XenForo. The SUB NAVIGATION menu is part of the TAB. So when you hide the TAB, you are also hiding everything associated with it. There is NO work around for this. You are not actually viewing a BLANK/EMPTY subnav, you are actually viewing the Core XF Navigation with NO TAB selected. This is how Core XenForo works.

    NOTE: The Sportsbook Tab does have all of the Betting Exchange Links, however, the Betting Exchange is its OWN area, so it doesn't fall under "Sporstbook", so the sportsbook Tab won't display just because you disable the Betting Exchange Tab.
     
    teflondon likes this.
  5. Bob

    Bob Developer Staff Member

    You can always RENAME than Tabs from Sportsbook to Bookie and Betting Exchanges to Bets. That might help space wise? The TABS have their own phrase for that specific purpose.
     
    teflondon likes this.
  6. teflondon

    teflondon New Member Sportsbook

    Oh ok, gotcha.
    Hmmm, that might not be a bad idea. Thanks!
     
  7. andrewkm

    andrewkm Member Showcase Sportsbook

    Was going to use the extra.css you provided, but I think I'll opt for this route. Will def be renaming to simply "Bets". :)
     
  8. andrewkm

    andrewkm Member Showcase Sportsbook

    @Bob probably a very newbie question, but what is the phrase names to change Sportsbook, Stock Trader, and (eventually once I update) Betting Exchange tab names?

    Edit: Assuming Sportsbook and Stock Trader is:
    nflj_sportsbook
    nflj_stocktrader
     
  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.