[pmwiki-users] totalcounter recipe

adam overton a at plus1plus1plus.org
Tue May 12 16:14:35 CDT 2009


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 <dso at moosoft.com>
> Subject: [pmwiki-users] totalcounter recipe
> To: pmwiki-users at pmichaud.com
> Message-ID: <4A091C9B.4000204 at moosoft.com>
> 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
> dso at moosoft.com
> http://www.moosoft.com
> MooSoft Development LLC
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090512/1ccd31bc/attachment.html 


More information about the pmwiki-users mailing list