Page 1 of 1

Commas

Posted: Sat Apr 21, 2007 7:26 am
by Leprakawn
Does anyone know how we can format the display id #s to include commas, such as ###,###,###?

If so, do you mind sharing that info?

Posted: Sat Apr 21, 2007 5:06 pm
by Klemen
Not sure what you are trying to achieve here?

Posted: Sun Apr 22, 2007 8:59 pm
by Leprakawn
Instead of saying something has had 2455 clicks, I want it to display 2,455 clicks.

I looked at display.php, but I have no idea what to do. Image

Posted: Sun Apr 22, 2007 11:11 pm
by Klemen
Ah, now I understand. Try this:
- open display.php in Notepad
- find this line:

Code: Select all

echo "ccount_link[$id]=$count;\n";
- change it to:

Code: Select all

echo "ccount_link[$id]='".number_format($count)."';\n";
Haven't tested it though, let me know if it works.

Posted: Mon Apr 23, 2007 2:53 pm
by Leprakawn
Klemen Stirn wrote:Haven't tested it though, let me know if it works.
Will do that as soon as I can. Thanks! Image

Posted: Tue Apr 24, 2007 3:33 pm
by Leprakawn
w00t!!!