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

Updated Display Profile Tab only when member has content

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?
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
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
 
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.
 
Back
Top