Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Number format for counter

I think like the date and time format there is also a setting needed for the number format.
My counter shows 1,000,000 (Anglo America notation), but I want it European style notation like so: 1.000.000

Quick fix:
Open \includes\theme_functions_include.php and find around line 427
CodeDownload  
function showcounter() {
 global $locale, $settings;
 if ($settings['visitorcounter_enabled']) {
 return "<!--counter-->".number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['global_170'] : $locale['global_171']);
 } else {
 return "";
 }
}



Change to:
CodeDownload  
function showcounter() {
 global $locale, $settings;
 if ($settings['visitorcounter_enabled']) {
 return "<!--counter-->".number_format($settings['counter'],0,",",".")." ".($settings['counter'] == 1 ? $locale['global_170'] : $locale['global_171']);
 } else {
 return "";
 }
}



Please add this option.
Added Issue: https://github.com/php-fusion/PHP-Fusion/issues/2238
Any chance this will be available for v8 as well?
Label added for 8 aswell.
Thread Information
Author
Replies
4 posts
Views
445 times
Last Post
Last updated on 4 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Wanabo, Chan