[SOLVED] Displaying Userlikes / Rep on page nodes

Status
Not open for further replies.

2Tap

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

Reputation:

Hi,

I have a custom page node and I want to display its users likes / rep.

I tried using {$user.xfa_rs_total|number} and {$user.reaction_score|number} but it just shows 0.
After research, I thought that I need to include the user-info macro, so I tried adding

<xf:macro name="user_info" arg-user="!" arg-fallbackName="" />

on top of my code, but that doesn't work either.

But for some reason displaying the usernames with {$xf.visitor.username} work just fine without any including macros.



Does anybody know how do I make this work?
 

BattleKing

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

Reputation:

Hi,

I have a custom page node and I want to display its users likes / rep.

I tried using {$user.xfa_rs_total|number} and {$user.reaction_score|number} but it just shows 0.
After research, I thought that I need to include the user-info macro, so I tried adding

<xf:macro name="user_info" arg-user="!" arg-fallbackName="" />

on top of my code, but that doesn't work either.

But for some reason displaying the usernames with {$xf.visitor.username} work just fine without any including macros.



Does anybody know how do I make this work?
2TapWhich XFA addon came these information from?
Is it the reputation system?
 

2Tap

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

Reputation:

View previous replies…

BattleKing

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

Reputation:

Yes, for the reputation.
Not sure about the reaction, but I think it's [TH] Reaction Plus
2TapI asked because the var you used above is called XFA_RS_TOTAL
 

BattleKing

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

Reputation:

Just wanted to tell you that I fixed it earlier with dumping the vars
Thanks anyway <3
2Tapso the names I mentioned where correct?
 
Status
Not open for further replies.
Top