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.
Wanabo

Number format for counter

by Wanabo, Last updated on 1 month ago in Site & Forum Issues - 8
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
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:
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.
www.probemyip.com/probe-my-ip-80x15.png

pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
You can view all discussion threads in this forum.
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.
Users who participated in discussion: Wanabo