XF 2.2 Displaying the "member tooltip" when hovering over the avatar

Orit

Active member
Hi
What do I need to add to my template/php params to make the 'member tooltip' appear when hovering on an avatar?
I managed to get the avatar correctly, but on hover it only displays the username. I would really like the hover to show the 'member tooltip'.
Thanks!
 
This is my avatar tag:
<xf:avatar user="$post.user_id" size="xxs" defaultname="{$post.username}"/>
 
What is available in $post ?

You will need the full user data set to display the member card.
 
$posts is a variable containing the finder results from the XF:Post entity. $post is used for looping through them.
 
You'll want to pass the user entity (via the relation), not the user ID.

HTML:
<xf:avatar user="{$post.User}" size="xxs" defaultname="{$post.username}" />
 
Back
Top Bottom