# Change data in user card by plugin

**URL:** https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595
**Category:** Development
**Created:** [December 21, 2016, 10:37am UTC](https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595 "2016-12-21T10:37:59Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)
#### Post date: [December 21, 2016, 10:38am UTC](https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595/1 "2016-12-21T10:38:00Z")

</div>

I’m writing a plugin to give every user a score and now I want to show the score in the user card.  
I have generated the score from api with an algorithm. now I want to add a code to my javascript plugin to run when somebody clicked on user picture(when user’s card is shown).what event listeners should I use in my code.I need the username too.

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [December 22, 2016, 10:50am UTC](https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595/2 "2016-12-22T10:50:18Z")

</div>

these topics may help:

1- topics and replies in this post:

> [@Custom User fields on Usercard](https://meta.discourse.org/t/custom-user-fields-on-usercard/22662/5):
>
> The User Card now has a plugin-outlet “user-card-metadata” [image]

2- this post:  
[https://meta.discourse.org/t/get-infromation-from-data-explorer-and-put-on-user-card/54124/3?u=pad\_pors](https://meta.discourse.org/t/get-infromation-from-data-explorer-and-put-on-user-card/54124/3)

---

<div class="post-metadata">

### Author: ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)
#### Post date: [December 22, 2016, 11:23am UTC](https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595/3 "2016-12-22T11:23:37Z")

</div>

No.It doesn’t help.I just need to show a number on user’s card

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [December 22, 2016, 11:27am UTC](https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595/4 "2016-12-22T11:27:46Z")

</div>

There are three plugin outlets available in [UserCard component’s template](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs)

---

<div class="post-metadata">

### Author: ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)
#### Post date: [December 22, 2016, 11:29am UTC](https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595/5 "2016-12-22T11:29:29Z")

</div>

Link is broken.please change it

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [December 22, 2016, 11:32am UTC](https://meta.discourse.org/t/change-data-in-user-card-by-plugin/54595/6 "2016-12-22T11:32:29Z")

</div>

sorry updated the link now. just a typo
