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

Discussion in 'Sportsbook Support' started by EasyEazy, Sep 17, 2020.

  1. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem 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.
     

    Attached Files:

  2. Bob

    Bob Developer Staff Member

    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
     
    HammerDown, colcar and EasyEazy like this.
  3. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook

    Worked a treat @Bob. Ill keep this thread handy for when I move to XF 2.2
     
    Bob 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.