- 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
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?
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?