The discussion is about the missing chat button on user cards. Magie reported that the chat button is gone for both admins and normal users, and is seeking help to resolve the issue. For admins, the “usercard-controls” are set to display: none, which can be fixed with CSS. However, for normal users, the button element is not even present in the DOM.
Megie has checked the settings and set “Chat allowed groups” to TL 1, but it had no effect. Arkshine suggested that the issue might be caused by customizations in the theme or theme components, and recommended using safe mode to determine if plugins or theme components are causing the issue.
Arkshine also asked about the value of the “Direct message enabled groups” setting, which Magie confirmed is set to trust level 1 users. Magie is wondering if the issue is related to the “User Card Directory Component” and why the button is not present in the HTML for normal users. Arkshine suggested that the button should appear if the user is part of the TL1+ group and recommended checking again to ensure the correct user was chosen.
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.
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.
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.