Commas

Post your Click counter digestion problems here
Post Reply
Leprakawn
Posts: 5
Joined: Sat Apr 21, 2007 7:20 am

Commas

Post 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?
Like my spiffy, unique signature?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Not sure what you are trying to achieve here?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Leprakawn
Posts: 5
Joined: Sat Apr 21, 2007 7:20 am

Post 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
Like my spiffy, unique signature?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Leprakawn
Posts: 5
Joined: Sat Apr 21, 2007 7:20 am

Post 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
Like my spiffy, unique signature?
Leprakawn
Posts: 5
Joined: Sat Apr 21, 2007 7:20 am

Post by Leprakawn »

w00t!!!
Like my spiffy, unique signature?
Post Reply