Author Topic: Number format {total_hits}  (Read 3643 times)

0 Members and 1 Guest are viewing this topic.

Offline IndoX

  • Pre-Newbie
  • Posts: 9
    • View Profile
Number format {total_hits}
« on: January 01, 2016, 08:03:15 PM »
Using mod more statistics for users.

Wondering if we can make {total_hits} number format. IE. XX,XXX not XXXXXX.

Big thanks.

EDIT: Figured it out on my own.

In stats.php find:
  $total_hits "".$lang['total_hits']."<B> ".$row['sum']."</B>\n";

Replace with:
  $total_hits "".$lang['total_hits']."<B> ".number_format($row['sum'])."</B>\n";