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.

Sportsbook day/days

Discussion in 'Sportsbook Support' started by Robert9, May 9, 2019.

  1. Robert9

    Robert9 Member AMS Showcase Sportsbook

    {value} days from now is solved for 1 day also?
  2. Bob

    Bob Developer Staff Member

    The phrase 'xa_sb_x_days_from_now' is designed as a plural (for passing in a value larger than 1) and is only used in Sportsbook when the time remaining is greater than 48 hours. Once the time remaining hits 48 hours or less, I only display the Date (which uses the XF date helper for displaying more detailed TIME related display text).
    <xf:if is="$event.getTimeRemainingHours() >= 48">
        - {{ phrase('xa_sb_x_days_from_now', {'value': {$event.getTimeRemainingDays()} }) }}
    There are no use cases in Sportsbook that would require a phrase "1 day from now" as XenForo automatically starts including the time once the date is less than 48 hours eg. Event closes Tomorrow at 11: AM.... Event closes Later today at 11:00 AM... Event closes In 36 minutes

    If you have a specific need (for customization purposes), then I'd suggest creating a custom phrase 'rb9_1_day_from_now' => "! day from now".
  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.