Page Index Toggle Pages: 1
Topic Tools
Normal Topic Comma in Thread and Post Counts (Read 6,340 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Comma in Thread and Post Counts
Reply #9 - Jun 27th, 2009 at 8:12pm
Post Tools
New
MyCenter.pl
in SVN.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Comma in Thread and Post Counts
Reply #8 - Jun 27th, 2009 at 7:46pm
Post Tools
This needs to be added to MyCenter.pl...



I think this will fix it...

Find:

Code
Select All
		my $template_postinfo = qq~$mycenter_txt{'posts'}: ${$uid.$username}{'postcount'}<br />~; 


And replace:

Code
Select All
		my $template_postinfo = qq~$mycenter_txt{'posts'}: ~ . &NumberFormat(${$uid.$username}{'postcount'}) . qq~<br />~; 




  
Back to top
 
IP Logged
 
AntonioK
Senior Member
****
Offline



Posts: 978
Location: Russian Federation
Re: Comma in Thread and Post Counts
Reply #7 - Jun 16th, 2009 at 6:10am
Post Tools
Quote:
only the UK, Australia, US, Japan, Korea and Indonesia are using comma as thousand separator

Russia and most of ex-USSR use it too.
  

If you're interested on History... If you have some sense of humour... The Historian of Female.
Back to top
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Comma in Thread and Post Counts
Reply #6 - Jun 12th, 2009 at 7:51am
Post Tools
Added to SVN.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Comma in Thread and Post Counts
Reply #5 - Apr 16th, 2009 at 5:41pm
Post Tools
Thank you, Carsten. You're a star!
  
Back to top
 
IP Logged
 
Carsten
Ex Member


Re: Comma in Thread and Post Counts
Reply #4 - Apr 16th, 2009 at 3:16pm
Post Tools
  
Back to top
 
IP Logged
 
PJAY86
YaBB Newcomer
*
Offline



Posts: 39
Location: Germany

YaBB 2.5.2
Re: Comma in Thread and Post Counts
Reply #3 - Mar 23rd, 2009 at 10:54pm
Post Tools
Quote:
Nice idea - but as far as i know only the UK, Australia, US, Japan, Korea and Indonesia are using comma as thousand separator. Most other Eupean countries use period or spaces. Guess it should be made country specific or maybe better according to "SI" (Système International d'Unités) where thin spaces are standard.

Why not using something like that

Code
Select All
1 while $foo =~ s/^(-?\d+)(\d{3})/$1.$2/; 


Maybe you can choose the period $1.{yabbfoo}.$2 from specific Language-File?
« Last Edit: Mar 23rd, 2009 at 10:54pm by PJAY86 »  
Back to top
WWW  
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Comma in Thread and Post Counts
Reply #2 - Mar 23rd, 2009 at 7:40pm
Post Tools
Just use a language file. That way no if statements.
  
Back to top
 
IP Logged
 
Carsten
Ex Member


Re: Comma in Thread and Post Counts
Reply #1 - Mar 23rd, 2009 at 5:10pm
Post Tools
Nice idea - but as far as i know only the UK, Australia, US, Japan, Korea and Indonesia are using comma as thousand separator. Most other Eupean countries use period or spaces. Guess it should be made country specific or maybe better according to "SI" (Système International d'Unités) where thin spaces are standard.
« Last Edit: Mar 23rd, 2009 at 5:11pm by »  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Comma in Thread and Post Counts
Mar 23rd, 2009 at 3:14am
Post Tools
Just a simple suggestion really... I've always felt that it would be much more readable and nicer if there was a comma in thread, post, member counts etc with more than three digits. Like:

1,000
10,000
100,000
1,000,000

I don't know how anybody else feels about this?
« Last Edit: Mar 23rd, 2009 at 3:32am by Derek Barnstorm »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top