15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

How to remove the comma from views/replies etc.?

Author kuopassa
#1 | Posted: 12 Jun 2014 17:25 
I'd like to remove the comma that appears in certain parts of the forum. Like when searching for something the counter might say:


Or at the forum's index page might have:


I would like them to appear like this:

59 994

Because that's more grammatically corret in Finnish.

Author tom322
Active Member
#2 | Posted: 12 Jun 2014 18:24 
You can remove the parseStatsNum function from the files you don't want this comma number format.

Author kuopassa
#3 | Posted: 12 Jun 2014 20:39 
Oh right, thanks for the tip, tom322. :-)

Author Jaime
#4 | Posted: 14 Jun 2014 13:01 
Or at your own risk! Search in bb_functions.php "number_format" ... The last point ',' clear away, so only '' or a blank space ' '. But whether it still has other effects i can not say =:)

Author Paul
Lead Developer
#5 | Posted: 14 Jun 2014 16:45 | Edited by: Paul 
The formatted output comes from the parseStatsNum function of bb_functions.php. It's possible to re-define, for example, putting the duplicate of it in bb_plugins.php. Then you may edit the return value, replacing ',' (comma) and '.' (dot) to ' ' (space) for your case.

Specific miniBB Support Forums / Specific / How to remove the comma from views/replies etc.? Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB