Toastr popup plugin
-
I was little bit bored but also didn't really feel like doing any real work (haha). Here's a pretty simple plugin, I think this could be a model for any purely client-side plugin. Nothing server side at all, just a way to deploy css/less and a front-end JS file.
Toastr plugin for NodeBB
Replaces the default
app.alert
toaster message with the more fancier Toastr plugin. Feel free to fork and make it more coolernpm install nodebb-plugin-toastr
Check out Toastr here: https://github.com/CodeSeven/toastr
Screenshots
Get it on GitHub
-
@gaasg said:
Can this be used as a link ? if people click they go to the Post I want them to read.
With it installed you could create an HTML widget that contains
toastr.info('Please visit <a href="#">this</a> topic to read our rules. ')
You could make it visible for those not logged in, those that are. Save so it only appears once. Etc.