hi daniel
this is the line in totalcounter that spits out the {$TotalCount}:
Markup('{$TotalCount}', '<{$var}', '/\\{\\$TotalCount\\}/e',
$TotalCount);
to get commas, i think you can change it to:
Markup('{$TotalCount}', '<{$var}', '/\\{\\$TotalCount\\}/e',
"'".number_format($TotalCount)."'");
and as Peter suggested, i'm guessing you could probably declare in
your config.php after the recipe has been included...
best,
adam
Message: 5
Date: Tue, 12 May 2009 00:52:11 -0600
From: Daniel Otis <[email protected]>
Subject: [pmwiki-users] totalcounter recipe
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I would like to change the output of {$TotalCount} from 1889312 to
1,889,312 using number_format($var) but I can't see where to change it
in the source. Any help appreciated!
link to the recipe: http://www.pmwiki.org/wiki/Cookbook/TotalCounter
--
Daniel Otis
[email protected]
http://www.moosoft.com
MooSoft Development LLC
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users