Change data in user card by plugin


(SMHassanAlavi) #1

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.


(Pad Pors) #2

these topics may help:

1- topics and replies in this post:

2- this post:


(SMHassanAlavi) #3

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


(Vinoth Kannan) #4

There are three plugin outlets available in UserCard component’s template


(SMHassanAlavi) #5

Link is broken.please change it


(Vinoth Kannan) #6

sorry updated the link now. just a typo