HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Where is the controller for the new profile card when you click on a user in 2021.012?

I want to add Yaga badges to the profile card that pops up when you click on a users icon. Is a controller I can tap into for this car to add them at the bottom of the window?


  • Options

    Sorry I guess its called a handler. I am looking for the handler for the UserCard

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    A long time power user of Vanilla has the following sentence in his signature "grep is your friend" ;-)

    So grep -ril usercards gives the following results:


    *.tsx are a hint for React components - welcome to hell...

    "Funny" side note: I wanted to enable that feature and wasn't able to find out how to. I have no clue where in the settings to find that. Then, when reading the list of files for the 5th time, I saw "VanillaLabsPage" and I remembered there is a settings menu item "Labs". Well, if you want to change something there you

    - need to understand the React build chain

    - find out if you can simply override that page somehow without messing up the core files or

    - recompile your changes on every update

    React has scoped css which means you cannot simply style it with additional css, you cannot add or remove content to components on the fly. It's a dead end for simple extendability. Every change you want to have requires you to duplicate the complete theme. A "view-only" plugin which adds some content somewhere has been super easy with php based themes, but is messy with React.

  • Options

    So there are no built in handlers so that a plugin can add to the user card before or after its render?

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Nothing that I know of. JavaScript has a way of dispatching events and a script could use event listeners, but I'm not sure that the new Vanilla React components are build up with this intention. There has been a post some time which showed what the new theme will require from addon developers:


Sign In or Register to comment.