User Card: Chat button is gone

Dear Discourse community,

We used to have a chat button on our user cards under /u. But now they are gone. I am wondering why? Can you help me please?

Why display: none for Admins?

For Admins the “usercard-controls” are set to display: none. I could fix that with CCS. So that is not the big problem.

Button not in DOM for normal users

However, for normal users, the element of the button does not even get into the DOM. That is a problem? How can I show it again?

What we need for all:

Basically, what I am looking for are these buttons but for all users, not only Admins. See example below:

Settings

  • I set Chat allowed groups to TL 1
  • I removed all of my CSS but it had no effect.

Please :heart:

If you have any idea, let me know.

1 Like

Hey,

If you look at the origin, it seems to be part of your customizations, either in the theme or in theme components. You would see user-card.scss if it’s a change from the core.

image

You can use the safe mode to determine if plugins/theme components cause an issue!

What is the value of Direct message enabled groups setting?
The chat button visibility in this context is associated to this setting.

5 Likes

Hi @Arkshine
Thank you for your reply.
The setting Direct message enabled groups is set to trustlevel1 users.

I will try safe mode again but so far it was not successful.

Theme 29 corresponds with „User Card Directory Component“s ID of 29 in my case. So I am wondering if that comes from the CSS of the component?

Also, what I am wondering the most is why the button is not even in the html for normal users? It’s not on display:none. It’s just not in the html at all.

You’re right, it’s from this TC! It looks intentional to display the username fully.
I think it’s a fair tradeoff since you can click on it to go to the user’s profile.

The button should appear if the user is part of TL1+ group. I would check again just to be sure! You might have tested when the controls were hidden, or the wrong user was chosen.