Number formatting

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: Number formatting

Post by imkingdavid »

Yeah I had realized the issue of different formats, but didn't realize it would be so difficult to implement. I thought number_format() sort of took care of it. Anyway, I think it would be a good feature if implemented, but of course it's nothing major. :)
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: Number formatting

Post by MichaelC »

hm... Just seen a MOD that does this here: http://infinityhouse.org/board/viewtopic.php?f=8&t=26

So maybe it could be coded that way?
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

Comkid
Registered User
Posts: 9
Joined: Tue Dec 15, 2009 10:30 am

Re: Number formatting

Post by Comkid »

It wouldn't have worked because of different formats ;)

User avatar
Dog Cow
Registered User
Posts: 271
Joined: Wed May 25, 2005 2:14 pm

Re: Number formatting

Post by Dog Cow »

imkingdavid wrote:Yeah I had realized the issue of different formats, but didn't realize it would be so difficult to implement. I thought number_format() sort of took care of it.
No, it's not difficult to implement. Each lang file would just specify the thousands separator and the decimal separator. Though, where are we using decimals in phpBB?

igorw
Registered User
Posts: 500
Joined: Thu Jan 04, 2007 11:47 pm

Re: Number formatting

Post by igorw »

Dog Cow wrote:Though, where are we using decimals in phpBB?
Viewprofile. "(0.18% of all posts / 0.14 posts per day) "

wads24
Registered User
Posts: 4
Joined: Thu Sep 15, 2005 8:00 pm

Re: Number formatting

Post by wads24 »

Unknown Bliss wrote:hm... Just seen a MOD that does this here: http://infinityhouse.org/board/viewtopic.php?f=8&t=26

So maybe it could be coded that way?

This link is no longer valid... What mod was it? I own a rather large phpBB3 forum, and also would like to implement commas on my forum to indicate thousands.

Post Reply