<div class="gmail_quote">On Tue, May 12, 2009 at 8:52 AM, Daniel Otis <span dir="ltr">&lt;<a href="mailto:dso@moosoft.com">dso@moosoft.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to change the output of {$TotalCount} from 1889312 to<br>
1,889,312 using number_format($var) but I can&#39;t see where to change it<br>
in the source.  Any help appreciated!<br>
<br>
link to the recipe: <a href="http://www.pmwiki.org/wiki/Cookbook/TotalCounter" target="_blank">http://www.pmwiki.org/wiki/Cookbook/TotalCounter</a><br>
</blockquote><div><br>Rather than changing the source itself I would suggest 1 of 2 alternatives:<br><br>(1) Define your own {(number_format ...)} markup expression and then use {(number_format {$TotalCount} format)}<br>
(2) Redefine the markup of {$TotalCount} either before or after totalcounter.php is included (I forget if early wins or late wins when a markup is re-defined.  You can see the original markup on line 472 (at least in my version).<br>
<br>-Peter<br></div></div>