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.

Amount shown in Sportsbook

Discussion in 'Sportsbook Support' started by EasyEazy, Aug 3, 2018.

  1. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook

    @Bob

    Is there a way to remove the decimal at the end of an amount in Sportsbook? The majority of values we deal in is in the millions. As you see below the stake so far is 15,150,000.00

    Is there a way to remove the .00?
     
  2. Bob

    Bob Developer Staff Member

    All financial outputs in sportsbook use the XF2 |currency helper which in turn formats the data to the Currency Format for the language.

    Example of just a FEW of the 100's that are used throughout sportsbook.

    {$content.amount_paidout|currency}
    {$event.amount_staked|currency}
    {$event.amount_paidout|currency}
    {$outcome.amount_staked|currency}

    You'd have to convert all of them to |number format as shown below (which would be one hell of a task to do).

    {$outcome.wager_count|number}
     
  3. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook

    I leave it as it is then. Thanks for letting me know.
     
  4. Bob

    Bob Developer Staff Member

    Can you post some screen shots where its causing display issues?
     
  5. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook


    Sure I can. See below. Like you said its on every page and looks like way to much work. Just one of member members asked me today why he placed 10 million on a bet that was set as a 2 million max but it wasn't 10 million it was 10 shown as 10,000.00 and clearly he couldn't count the zeros anyway. Just a bit confusing.

    bet2.jpg bet3.jpg bets1.jpg
     
  6. Bob

    Bob Developer Staff Member

    I don't see anything in those screenshots that is effecting the layout in any way (which would be a display issue). Still plenty of space left for even larger insane numbers. If there are some layout issues going on because of excessively large financial numbers being displayed, that might be something I could maybe handle in a different way in a future redesign.
     
  7. EasyEazy

    EasyEazy Member CAS Premium RMS Premium UBS Premium Pickem Sportsbook

    Its fine Bob they were just questioning how many zeros do we have on display. Coming from vBulletin it handled it differently but nothing the members can get used too.
     
    Bob likes this.
  8. Bob

    Bob Developer Staff Member

    Im sure they will get used to it :)
     
    EasyEazy 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.