• 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.

Implemented Betting Exchange: Own Route and Own Navigation Tab

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
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
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)
 
@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:
selection_140-png.2785


Is that a tradeoff with hiding it?
 
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.
 
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.
 
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.
Oh ok, gotcha.
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.
Hmmm, that might not be a bad idea. Thanks!
 
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.
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". :)
 
@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
 
Back
Top