Panel
PowerQA is a state of the art discussion software that makes online discussions fun. It's simple, fast, and powerful.
Fighter
webmaster
+2 votes
Discus 625 views

Format number

In Q2A V1.8, the feature of formating number seems to be added. Conversion seems to have been done on the server side (PHP). This feature is necessary to change many sources. And, probably, it would also be necessary of changing many plugin sources. This is a simple feature about user interface. I do not want to change program sources drastically for that.

We should realize this feature with jQuery and Numeral.js on the client side ?

What do you think about this?

image

by webmaster asked Dec 22, 2015 in Core
by webmaster edited Dec 22, 2015

Please log in or register to add a comment.

Please log in or register to answer this question.

1 Answer

Fighter
webmaster
+1 vote

This feature supported. Processing method and reformat item is different from the Q2A.

Please check it by clearing cache of your browser.

Purpose of this feature

  • To conserve display area
  • Customize display format

Processing method

jQuery and Numeral.js

You can customize item and format in qa-content/qa-page.js

Formatted items:

  • Vote count (on question list,  question page): Format: '0a'
  • Viewing count (on question list,  question page): Format: '0a'
  • Answer count (on question list,  question page): Format: '0a'
  • User points (on header bar, question list,  question page): Format: '0a'
  • Question count on category list on side bar: Format: '0a'

Items other than the above will not be reformatted.

image

by webmaster answered Dec 28, 2015
by webmaster edited Dec 28, 2015

2 Comments

This feature has been tested and confirmed working
Thanks Vanbells.

Please log in or register to add a comment.

Welcome to PowerQA. PowerQA is a new discussion software (not OSS). Here is a community for PowerQA developers. Current stable version is V1.9.4. It is enhanced day by day.

Followers

2 users followed

Statistics

  • 338 questions
  • 276 answers
  • 480 comments
  • 100 users

Post types

...