PDA

View Full Version : Adding comma's to post counts (1,000 instead of 1000)


Unknown553
09-17-2002, 06:28 PM
I searched and attempted this on my own, but failed in both aspects. It's a simple idea and I'm not sure why it hasn't been done yet, but I think the title explains it clearly. I just want comma's added to post counts to make it "proper." Like 1,000 and 10,000 and whatnot. I want it parsed this way everywhere though, not just in the postbit or memberlist or anything, so I don't know how much more that will complicate things but it's worth a try. Thanks in advance.

Xenon
09-17-2002, 06:40 PM
you have to use php-function number_format:
http://www.php.net/manual/en/function.number-format.php

but you have to apply it into every file where it shows the post count, so that's the real work for that hack ^^

Unknown553
09-17-2002, 08:09 PM
Awww, well thanks for the link! I'll get to work now ;)