| PHP-Web-Stat Support Forum | |
|
https://www.php-web-statistik.de/cgi-bin/yabb/YaBB.pl
Board (English) >> English board >> How can I change the delimiter in counter.php https://www.php-web-statistik.de/cgi-bin/yabb/YaBB.pl?num=1765335525 Beitrag begonnen von John Motyer am 10.12.25 um 03:58:45 |
|
|
Titel: How can I change the delimiter in counter.php Beitrag von John Motyer am 10.12.25 um 03:58:45
Hello, Holger,
Last year I had asked in THIS post about changing the delimiter (thousands separator) from a "." (dot) to a "," (comma), and you replied with the code for me to change in order to accomplish that. Thank you again, it worked great. With your new v25, we can set the separator ourselves now, thank you. I am inquiring at this time what file/code I would need to modify, in order to change the delimiter (thousands separator) for the counter.php file, from a dot to a comma. Thank you in advance, and thank you for v25. Tschüss, John |
|
Titel: Re: How can I change the delimiter in counter.php Beitrag von Holger am 14.12.25 um 14:52:21
Hi John,
We probably should have included the counter in that 😉 Open counter.php in an editor and find lines 134-141. search for: Code (php):
replace with: Code (php):
In the next update, we could also link this to the Admin Center. * |
|
Titel: Re: How can I change the delimiter in counter.php Beitrag von Holger am 14.12.25 um 15:14:16
Option 2
search line 127 Code (php):
add new line 128 Code (php):
edit lines 135 – 142 Code (php):
replace with: Code (php):
The counter is set according to the settings in the Admin Center. * |
|
Titel: SOLVED: How can I change the delimiter in counter. Beitrag von John Motyer am 15.12.25 um 11:42:42
Hello again, Holger, that worked perfectly, thank you. Although at first I used a hard-coded comma (,), I changed all my sites to instead use $delimiter.
If anyone else wishes to change their own Counters to use commas, in addition to Holger's option 2 above, you can change the Page Impressions value on your ticker to also use commas, with this code change in that same counter.php file: search for: Code (php):
replace with: Code (php):
Thanks again, Holger, and have a great day. Regards, John |
|
PHP-Web-Stat Support Forum » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2012. Alle Rechte vorbehalten. |