Jump to content

displaying commas on large numbers (some minor code help)?


aelor

Recommended Posts

i'm using IPSDev's Member's Shop app and I wanted points to be displayed in posts without using the developer's other plugin (just not a fan of the look of it). so i messed around with some code and was able to get it to display using this:

Quote

{{if $comment->author()->shop_points}}
     
                <span class='euip_Content'>{$comment->author()->shop_points}</span>
          <span class='euip_Title'>points</span>
          {{endif}}

the only issue now is that points are displaying as 1200 vs 1,200. i have no clue how to go about getting commas to be displayed. i know next to nothing about coding. it's a miracle i was able to get points displayed in the first place. so if anyone can offer some help to me it'd be much appreciated!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...