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.

Betting Exchange Adding new filter

Discussion in 'Sportsbook Support' started by ArcheXerxes, Aug 28, 2016.

  1. ArcheXerxes

    ArcheXerxes New Member Sportsbook

    I have created some fields (xbox,playsation and nintendo) in the betex_create that now displays correctly on the betex_bet using datawriters and controllers (thanks to bob).

    I have displayed that additional information on the sportsbook_betex page by editing the bet_list_item page to include that data.

    I decided that it would be a good idea if users had the option to filter the bets by the fields that I implemented earlier. Does the filter system work the same way where I have to use datawriters to save it as a filter option? How would I go about adding new filters to the pre existing system?
  2. Bob

    Bob Developer Staff Member

    This one is much more complex. You really need to reverse engineer the filter system so that you have a full understanding of everything involved. That is what I had to do (I reverse engineered the XFRM filter system and then once I understood, I was able to build my own that was more complex than what the XFRM is doing). Sportsbook's is even more complex because there are several different filtering systems (not just ONE).
  3. ArcheXerxes

    ArcheXerxes New Member Sportsbook

    Where should I start researching this?

    This feature could do sportsbook/showcase wonders making it more dynamic. So I definitely need to learn how to set filters so members can find items easily.
  4. Bob

    Bob Developer Staff Member

    You start by first installing an IDE (like phpStorm or Zend Studio). If you are attempting to develop without an IDE, you are already doing things wrong. Once you have an IDE installed and configured, you spend time reverse engineering the entire XenForo architecture so you know how things flow (Controllers, Routing, Models, DataWriters, Handlers, fetching methods, permissions, options etc). Once you learn how certain things are done (fetching via prepared statements for example), then you can start reverse engineering addons to see how specific features or functions like the Betting Exchange Filter System works. The XenForo Resource Manager (XFRM) is one of the best learning tools as it is an official XenForo addon.

    Filters are not something that you just "SET". Each Filter has to be specifically programmed into the Addon. Programming Code will be added to multiple actions in multiple controllers, multiple methods in multiple models as well as template syntax in multiple templates. It is an Advanced Level Customization and you have to KNOW what you are doing (stuff like understanding how to assemble a dynamically generated prepared statement based on conditions and fetchOptions).
  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.