Russ Well-known member Sep 19, 2022 #1 Is there a way to convert a specific value to use the short number format? The forum uses the #k method but it doesn't change the forum stats. I'm trying to display the message count in the same manner. Code: {$forumStatistics.messages|number}
Is there a way to convert a specific value to use the short number format? The forum uses the #k method but it doesn't change the forum stats. I'm trying to display the message count in the same manner. Code: {$forumStatistics.messages|number}
Solution P P Paul B Sep 19, 2022 Try {$forumStatistics.messages|number_short} You can also add decimal places using {$forumStatistics.messages|number_short(2)}
Try {$forumStatistics.messages|number_short} You can also add decimal places using {$forumStatistics.messages|number_short(2)}
P Paul B XenForo moderator Staff member Sep 19, 2022 #2 Try {$forumStatistics.messages|number_short} You can also add decimal places using {$forumStatistics.messages|number_short(2)} Upvote 0 Downvote Solution
Try {$forumStatistics.messages|number_short} You can also add decimal places using {$forumStatistics.messages|number_short(2)}
P Paul B XenForo moderator Staff member Sep 19, 2022 #4 Just for reference, these are the template filters and functions. Upvote 0 Downvote