Tyler
8 years agoAce
Adding user ranks to Forum Page message-list component
Hi all,
I'm trying to add ranks to the Community Page message-list component. The component comes out-of-box with the user's avatar, but not with the user name or rank. There doesn't seem to be a way to enable user names or ranks in community admin.
I imagine the best route would be to find all the avatars on the page without ranks, scrape the user ids off them and loop through the list of ids and use this query to get the rank:
<#assign ranking= restadmin("/users/id/${recent.author.id}/ranking/display/left_image/url").value >
Then add each rank to it's respective avatar.
Is there a better way to do this? Perhaps by digging into the XML and adding the rank there? Any input would be appreciated.