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

Fixed Recent Wagers Profile Tab not displaying PUSH results

Status
Not open for further replies.

imthebest

Member
Showcase
Sportsbook
Hi Bob,

I have just settled the event by checking all the three checkboxes corresponding to "Push". Yet when I check the profile of a member that placed a wager of $30 to the outcome "Team B", under the "Sportsbook" tab I still see:

Team B
Team A vs Team B
Event settled 5 minutes ago

Staked: $30
Odds: 13/10 (2.30)
Lost: -$30

Shouldn't it be "Push: +$30"?

That would be my only observation because the push itself went through just fine and the member who had $20 of cash now have $50 (so indeed his $30 were returned).

Thanks,
imthebest
 
Last edited:
No, it should say Push: Stake returned.

A Push should look like this (which is what it looks like on the "Your Wagers" page).

Selection_416.png

This is nothing more than a missing if statement in the 'nflj_sportsbook_profile_tab_content' template. This is not a PROGRAMMING issue, nor is this a critical bug on any level.

This is something you'll need to fix on your own until the next maintenance release is pushed out.

Edit Template: nflj_sportsbook_profile_tab_content

Replace the entire template with this template: (NOTE: you need to do this for each of your styles)
HTML:
<xen:require css="nflj_sportsbook_member.css" />

<div class="profileContent sportsbookWagerList">
    <ol>
        <xen:if is="{$wagers}">
            <xen:foreach loop="$wagers" value="$wager">
                <li class="sportsbookWagerListItem" id="wager-{$wager.wager_id}">
                    <div class="listBlock main">
                        <div class="listBlockInner">
                            <span class="status">
                                <xen:if is="{$wager.event_status} == 'open' ">
                                    <span class="{$wager.event_status}">{xen:phrase nflj_sportsbook_status_open}</span>
                                <xen:elseif is="{$wager.event_status} == 'closed' " />   
                                    <span class="{$wager.event_status}">{xen:phrase nflj_sportsbook_status_closed}</span>
                                <xen:elseif is="{$wager.event_status} == 'awaiting_settlement' " />   
                                    <span class="{$wager.event_status}">{xen:phrase nflj_sportsbook_status_awaiting}</span>
                                <xen:elseif is="{$wager.event_status} == 'settled' " />   
                                    <xen:if is="{$wager.outcome_pays} == 'Y' ">
                                        <span class="{$wager.event_status}">{xen:phrase nflj_sportsbook_paid_out}</span>
                                    <xen:elseif is="{$wager.outcome_pays} == 'P' " />
                                        <span class="{$wager.event_status}">{xen:phrase nflj_sportsbook_push}</span>
                                    </xen:if>
                                    <span class="{$wager.event_status}">{xen:phrase nflj_sportsbook_status_settled}</span>
                                <xen:else />   
                                    <span style="color:red;">{xen:phrase nflj_sportsbook_status_abandoned}</span>
                                </xen:if>                       
                            </span>
                            <h3 class="title">
                                <a href="{xen:link sportsbook/outcome, $wager}" class="overlayScroll OverlayTrigger">{xen:helper snippet, $wager.outcome_title, 40}</a>
                                <xen:if is="{$event.category_abbr}"><span class="categoryAbbr">{$event.category_abbr}</span></xen:if>
                            </h3>
                            <div class="eventDetails muted">
                                <a href="{xen:link sportsbook, $wager}">{$wager.title}</a>
                            </div>                               
                            <div class="statusDate muted">
                                <xen:if is="{$wager.event_status} == 'open' ">                               
                                    <span class="open">{xen:phrase nflj_sportsbook_event_closes} <xen:datetime time="$wager.date_close" /></span>
                                <xen:elseif is="{$wager.event_status} == 'closed' " />
                                    <span class="closed">{xen:phrase nflj_sportsbook_event_currently_not_taking_wagers}</span>
                                <xen:elseif is="{$wager.event_status} == 'awaiting_settlement' " />
                                    <span class="">{xen:phrase nflj_sportsbook_event_closed} <xen:datetime time="$wager.date_close" /></span>
                                <xen:elseif is="{$wager.event_status} == 'settled' " />
                                    <span class="settled">{xen:phrase nflj_sportsbook_event_settled} <xen:datetime time="$wager.date_settle" /></span>
                                <xen:else />
                                    <span style="color:red;">{xen:phrase nflj_sportsbook_status_abandoned}</span>
                                </xen:if>                           
                            </div>                       

                        </div>
                    </div>
                    <div class="listBlock wagerStats">
                        <div class="listBlockInner">
                            <div class="pairsJustified">
                                <dl class="wagerStaked">
                                    <dt>{xen:phrase nflj_sportsbook_staked}:</dt>
                                    <dd>{$xenOptions.sbCurrencySymbol}{$wager.wager_amount_placed}</dd>
                                </dl>
                                <dl class="wagerOdds">
                                    <dt>{xen:phrase nflj_sportsbook_wagered_odds}:</dt>
                                    <dd>{$wager.wager_odds_against}/{$wager.wager_odds_for}  {xen:if '{$wager.wager_odds_decimal}', '({$wager.wager_odds_decimal})', ''}</dd>
                                </dl>

                                <xen:if is="{$wager.event_status} == 'settled' ">
                                    <dl class="wagerWinLossAmount">
                                        <xen:if is="{$wager.outcome_pays} == 'Y' ">
                                            <dt>{xen:phrase nflj_sportsbook_won}:</dt>
                                            <dd><span class="win">{$xenOptions.sbCurrencySymbol}{xen:number $wager.wager_amount_won, 2}</span></dd>
                                        <xen:elseif is="{$wager.outcome_pays} == 'P' " />
                                            <dt>{xen:phrase nflj_sportsbook_push}:</dt>
                                            <dd><span class="push">{xen:phrase nflj_sportsbook_stake_returned}</span></dd>   
                                        <xen:else />
                                            <dt>{xen:phrase nflj_sportsbook_lost}:</dt>
                                            <dd><span class="loss">-{$xenOptions.sbCurrencySymbol}{xen:number $wager.wager_amount_placed}</span></dd>
                                        </xen:if>   
                                    </dl>
                                </xen:if>
                            </div>
                        </div>
                    </div>
                </li>
            </xen:foreach>

            <div class="sectionFooter">
                <ul class="listInline bulletImplode">
                    <li><a href="{xen:link sportsbook/member, $wager}" rel="nofollow">{xen:phrase nflj_sportsbook_find_all_wagers_by_x, 'name={$wager.username}'}</a></li>
                </ul>
            </div>
        <xen:else />
            <li class="sportsbookWagerListItem">
                {xen:phrase nflj_sportsbook_no_viewable_wagers}
            </li>
        </xen:if>   
    </ol>
</div>

And this is what it will look like after you've edit the template and replaced it with the new template.

Selection_417.png
 
Status
Not open for further replies.
Back
Top