Love this extension so much, you´re the best!
Flarum Discussion Views
Is there a workaround to change view count format from 1000s to Ks to match reply count? I really love this extension but the view count format is triggering my OCD. ?
- Edited
Hey! cool extension!
I think could be cleaner if you put the "views" on the right of the replies-icon (instead of down of it)
MichaelBelgium Oh yeah I'll probably do this. Didn't know flarum shortened it so didn't think about it ?
Please do it soon, thank you. ?
lorem Somehow it doesn't work as I expected to be, on your screenshot it shows "1.2K" but when i add the same function that flarum uses it just shows as "1K".
I guess this has to do it for now? /shrug (no shrug emoji smh)
MichaelBelgium What does it do when the count is bigger say 1600, does it show as 1.5K, 2K, or 1K? This is very unlikely, but maybe it's just rounding the number. ?
I'd still choose the abbreviated number even if it weren't accurate.
lorem It shows 1K and i expect 1.6K, but the function floors the result so it doesn't show anything after the comma. I left it as it is.
The update is live btw (package version 0.1.0-beta.7-3.3)
MichaelBelgium Going by the function you posted, we shouldn't have been expecting it to do that in the first place. It only abbreviates to integers, and rounds to floor instead of ceil at that. ?
Thank you, I've updated my installation to 7-3.3.
Updated for beta 8!