Widgets are only rendered on the page itself right now https://github.com/NodeBB/NodeBB/blob/master/src/middleware/render.js#L53. We would have to add support so they are rendered in renderHeader method as well. Open an issue on our github it could be a nice addition.
Discord widget
-
Hello, I created a widget that adds to the forum displaying active users on your discord!
Just put this code in the LESS / CSS tab and in the widgets!
https://gist.github.com/youhosi/9895e58050dff190ae7ce04607224af5And this one is added to javascript and we set our own api token!
https://gist.github.com/youhosi/e0e02708e1dc29e0be7a9d789db99ab7
Everything looks like this
-
That's really great. Is there a way to display only users with a specific role?
-
@Jean-baptiste-Devic Unfortunately no, because discord api does not return the role.