Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

vcard hover showing two users

HH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 22, 2020

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? 

image.png

#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

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events