This pre-renders the list of active users from server data. And then has some inline JS with socket call to update the list as new users become active
This is exactly what i wanted! discord is great! thanks
@HolyPhoenix discord does have its own iframe widget, and also gives you json start from the servers.
I will never use an iFrame on my website as I hate them to death.
@HolyPhoenix Yeah i think i'm starting to agree, I just added twitter and facebook iframes and they load so slow!
Is there a guide somewhere to adding HTML/JS widgets to NodeBB?
@Dielan Its pretty straight forward.
Admin -> Extend -> Widgets
Then choose the page you want to display it on (I think persona only has global(every page) and groups details pages).
Drag the html widget after selecting it in the drop down on the right into the area you want on the left. If you want a container, then also drag the container and put it over your added widget. In the text area on the widget that appears after it is dragged copy and paste in the html you want. Hit the save on the bottom right part of the page. And tada! Your html widget appears.
@HolyPhoenix thanks! I'll try it when I get home from work. I was on that page in the ACP before but wasn't really sure what I was doing. I thought I had added it correctly but didn't notice any changes after saving. I will try this!
Any plans on updating this to use the proper API?
I wasn't able to get the widget to load..
I have plans to make this work again in the near future. Until that time you can use the html widget he mentions in https://github.com/RestingCoder/nodebb-widget-discord/issues/3.
Of course, Discord has APIs and everything now, so rewriting the plugin should not be too bad. And my wife is pretty busy this week(that means I am free), so I'll see if I can make this my priority instead of playing video games.
I apologize, I was almost ready to make an update, but realized the original plugin didn't have a license.
I requested the license from the developer, to which I got no response and just now he closed the ticket. For that reason I won't be able to publish the new plugin right away since I cannot legally build upon the original and will have to start from scratch.
Things are a bit busy now, so I'm not sure when I will be able to get back to this. I'll update you though if anything happens.
I'd be still super interested in a discord plug-in that works sort of like the site chat (in a drop-bar from the menu).
@tigger That is an interesting idea! I'll have to give that a stab.
Did you by any chance have another look at the discord widget?
does this still work?