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
#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:

Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

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