Change view/reply count

Samuel

Well-known member
Registered
Joined
May 13, 2021
Messages
84
Points
28

Reputation:

Hello guys. how can i change for example :

HTML:
<xf:if is="$thread.reply_count|number_short < 1000">
    
    <p>437 replies</p>

</xf:if>

<xf:if is="$thread.reply_count|number_short > 1000">
    
        <p>1.2k replies</p>

</xf:if>

I know the opposite, In the ACP in the phrases. i can edit the phrases x_b, x_m and x_k and change {number}K to {default}.

But is there to change the numbers more than 1000 replies changed to 1k ?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,519
Points
523

Reputation:

I do not understand the question:
$thread.reply_count|number_short (1100) will be 1.1k
$thread.reply_count|number (1100) will be 1,100 it is with a comma
$thread.reply_count (1100) will be 1100 so this is without the comma
 

Samuel

Well-known member
Registered
Joined
May 13, 2021
Messages
84
Points
28

Reputation:

@BattleKing OMG. i got it. thanks dear friend 😅
:love:
 
Last edited:

2Tap

Active member
Registered
Joined
Aug 8, 2022
Messages
25
Points
3

Reputation:

I also have a question related to this, kinda.
So i am using this

https://enxf.net/resources/ozzmodz-most-ever-online.741/

But somehow It's not getting displayed on my custom widget...

ShareX_nQWbvW3RwB.png

brave_Xs5BKyjHia.png


I tried
{$totalcount|number}
{{ $totalcount|number }}

{$totalcount}
{{ $totalcount }}

All of them doesn't seem to work
 
Top