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.

Updated Display Profile Tab only when member has content

Discussion in 'Sportsbook Closed Suggestions' started by mauzao9, Aug 22, 2016.

  1. mauzao9

    mauzao9 Member Showcase Sportsbook

    Hello there,

    This is quite a tweak, Sportsbook is showing an empty profile tab on every member of the forum.

    Wouldn't the behavior of Showcase of only showing the tab if there's any content to show be more intended here?
  2. Bob

    Bob Developer Staff Member

    Its not possible at the moment because individual member wager totals are not tracked/stored in the xf_user table (only Sportsbook Event Counts for bookies are), so there is nothing to base a conditional off of at the point of rendering (as content is fetched via AJAX when clicking on a tab). The next version will display a message stating that the user currently does not have any visible content to display.

    I'll move this to future consideration for XF 2.0
  3. Bob

    Bob Developer Staff Member

    I had a need to track counts for wagers, so I've added a new field to the xf_user table 'sportsbook_wager_count' which stores the total amount of wagers a user has placed.

    With that said, I can now use that data as a conditional on the TM (template modification) that adds the "Recent Wagers" tab to the member profile. The "Recent Wagers" tab will no only ever display IF the member has made any wagers.
    andrewkm likes this.
  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.