Hi,
I have a user macro that shows a user profile pic, full name and email address (working on that last one!)
I get the correct users details appearing on the hover, but underneath you can see another half hidden hover that is my confluence admin account. Any ideas where I'm going wrong?
#set( $urlPrefix = "$req.getScheme()://$req.getServerName()$req.contextPath/" )
#set($displayName = $action.getUserFullName($paramUsername))
#set($email = $action.getEmail($paramUsername))
#set($userPic = $userAccessor.getUserProfilePicture($userAccessor.getUserByName($paramUsername)).getUriReference())
<div class="vcard">
<span class="aui-avatar aui-avatar-large">
<span class="aui-avatar-inner">
<a class="userLogoLink userlink-1" data-username="$paramUsername" href="/display/~$paramUsername" title="">
<img class="userLogo logo" src="$urlPrefix/$userPic" alt="User icon: $paramUsername" title="">
</a>
</span>
</span>
<div class="values">
<h4> <a href="/display/~$paramUsername" class="url fn confluence-userlink userlink-1" data-username="$paramUsername" title="">$displayName</a></h4>
<a href="mailto:$user.email" title="Send Email to $displayName" class="email">$user.email</a>
</div>
</div>
I also asked this question and now I can't work out how to delete it sorry!
https://community.atlassian.com/t5/Confluence-questions/vcard-user-macro/qaq-p/1427934