2021-07-27, 01:41 PM
Hello everyone!
I'm getting in coding MyBB stuff.
I installed a plugin called hovercards. The thing is that i want to show the username on the hovercards with the format of the primary group of the user.
https://community.mybb.com/mods.php?acti...w&pid=1441
On the code of the plugin, i see it's using the following function:
format_name($user['username'], $user['usergroup'], $user['displaygroup']);
When i check the function (format_name, native from myBB), it seems that should format the name with the usergroup username style but even using format_name the result on the forum is that i see the name without the group namestyle.
https://i.gyazo.com/7f52f09f2a75821e28f8...e5cccb.png
How can i show the username with the group username style on the hovercard? Why format_name it's not doing what i expect?
Thank you.
Fixed, this thread can be closed
I'm getting in coding MyBB stuff.
I installed a plugin called hovercards. The thing is that i want to show the username on the hovercards with the format of the primary group of the user.
https://community.mybb.com/mods.php?acti...w&pid=1441
On the code of the plugin, i see it's using the following function:
format_name($user['username'], $user['usergroup'], $user['displaygroup']);
When i check the function (format_name, native from myBB), it seems that should format the name with the usergroup username style but even using format_name the result on the forum is that i see the name without the group namestyle.
https://i.gyazo.com/7f52f09f2a75821e28f8...e5cccb.png
How can i show the username with the group username style on the hovercard? Why format_name it's not doing what i expect?
Thank you.
Fixed, this thread can be closed