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

Resolved Place Wager Link

EasyEazy

Member
CAS Premium
RMS Premium
UBS Premium
Pick'em
Sportsbook
Bob

Is there a way to add a button to the "Place Wager" link? I have added a screenshot as an example. Id like to make it the same as the "Add Outcome" or "Watch" buttons.
 

Attachments

  • placewager.png
    placewager.png
    7.1 KB · Views: 3
You'd have to edit template(s) and add the CSS class 'button' to the a href tag for those links and then wrap the text output part of the a href in a span with the CSS class 'button-text'

Something like this might work (might not).

Find this block of template syntax (appx lines 99-103) in the template: xa_sb_outcome_macros

Code:
                                    <xf:if is="$outcome.canPlaceWager()">
                                        <a href="{{ link('sportsbook/outcome/place-wager', $outcome) }}"
                                            class="actionBar-action actionBar-action--wager"
                                            data-xf-click="overlay">{{ phrase('xa_sb_place_wager') }}</a>
                                    </xf:if>


Replace that block of template syntax with this block of template syntax:

Code:
                                    <xf:if is="$outcome.canPlaceWager()">
                                        <a href="{{ link('sportsbook/outcome/place-wager', $outcome) }}"
                                            class="actionBar-action actionBar-action--wager button"
                                            data-xf-click="overlay"><span class="button-text">{{ phrase('xa_sb_place_wager') }}</span></a>
                                    </xf:if>

If done correctly, it should look like this...

Selection_484.png
 
Back
Top