Simple Portal

Support => English Support => Topic started by: Senkusha on March 15, 2010, 11:19:40 PM

Title: Number Format
Post by: Senkusha on March 15, 2010, 11:19:40 PM
Hi all!

I just installed Simple Portal today, currently using the latest and greatest of both products (SMF 2.0 RC3, and SP 2.3.1)  I just noticed something that 'bugs' me :)

Is it possible to encode all of the numbers used to use the forum number format?  For example, I have my format set to:  1,234 (with a comma thousands seperator)  Seems like on the left hand side, the numbers are in this format, while the numbers on the right hand side are in plain format (1234 - no comma).  This could just be coincidence about left vs right.  Feel free to take a peek at my home page and you'll see for your self.

Thanks!
Title: Re: Number Format
Post by: [SiNaN] on March 17, 2010, 02:55:32 PM
You mean the Top Boards block doesn't respect number format?
Title: Re: Number Format
Post by: Senkusha on March 17, 2010, 03:07:37 PM
Yes, and Top Poster as well (when I had it set to All time).
Title: Re: Number Format
Post by: [SiNaN] on March 17, 2010, 03:20:43 PM
Sources/PortalBlocks.php

Code (Find) Select
'posts' => $row['posts'],

Code (Replace) Select
'posts' => comma_format($row['posts']),

Code (Find) Select
$board['num_topics'], ' | ', $txt['posts'], ': ', $board['num_posts']

Code (Replace) Select
comma_format($board['num_topics']), ' | ', $txt['posts'], ': ', comma_format($board['num_posts'])

Will also be fixed in 2.3.2 hopefully.
Title: Re: Number Format
Post by: Senkusha on March 18, 2010, 01:57:51 PM
Thank you!!!  Fixed it right up :)
EhPortal 1.39.8 © 2024, WebDev