@yariplus Nice short, I will try to update my plugin to the new style 🙂
Is it easy to read a json file from disk when you visit a page, Lets sat that you have somthing in stuff.json and that file is updated now an then on the disk.
this is my first plugin
This plugin allow users to use colors in their posts.
npm install nodebb-plugin-color
color represents the css color applied to the text.
You can use Hex values, rgb, or name of color.
Hope it's useful
Very, very nice. Some people have been requesting this in the composer, so you've made their day. Thank you.
Nice! I already have a feature request if you start typing %( it pops open a color picker (maybe use the same code for the popup as the @mentions dropdown)
anyways thanks for this
Haha wow, nice work @toolito ! Hope you found the plugin writing process easy to grasp
@toolito @planner Just noticed this running on the NFC Ring forum, and yeah, can't put more than one on one line, even with spaces in between
@toolito Thanks for this plugin! It's great!
@toolito Any way you could integrate this into the composer?
@Tanner I saw psychobunny give instructions on how to add a composer button. I may give it a go tomorrow.
For my own reference (on mobile)
I'll also peek around and see if it's possible to have multiple colors on one line. Be advised though, I am extremely new to Node, so no promises.
I've hashed out some code snippets I want to test working off of some of the author's code, and some of psychobunny's. If anyone would be willing to team up for some testing on GitHub, it would be awesome. Trying to add in a composer button seems to have broken my test plugin.
@toolito Hello, I've updated this plugin to include the missing feature :
A button in composer
the colorpicker to choose a color
and the code is parsed
Updated regexp for perf and because I didn't update here you can also use multiple colored words in your texts now.
@toolito Plugin updated for NodeBB 0.6.0 compatibilty
Now the plugin don't parse what's between code blocks.
Seems like there's been no update from this author for almost a year and the plugin doesn't work with 0.6.0. Can we get responsibility for this transferred to @esiao or something?
Seems like @toolito is indeed active though, that issue above was merged by him a few days ago
EDIT: Maybe he just forgot to publish to npm? Might be best to just bug him on his issue tracker
Yes @toolito is active on Github. But update to this one
I've asked for npm ownership but I don't know if he did it or want to do it. And there's no way on npmjs to see if I'm owner.
Is this code still compatible with v6.0.1? Because I've been trying to get the plugin to work, to no avail.
Not working for me too.
$ npm install nodebb-plugin-color
If you clone the repo
$ cd /path/to/NodeBB/node_modules $ git clone https://github.com/Toolito/nodebb-plugin-colors
the plugin won't work until you rename folder
But there is a way!
$ cd /path/to/NodeBB/node_modules $ npm i git+https://github.com/Toolito/nodebb-plugin-colors
After that the plugin finally works. (p.s. I didn't tested all claimed functionality, I just became convinced that
Hello @Mega . Just curious, why does :
$ cd /path/to/NodeBB/node_modules
$ npm i git+https://github.com/Toolito/nodebb-plugin-colors
Work when nodebb-plugin-colors < with an "s" is at the end? I thought it supposedly worked without the "s"? Not doubting, just curious as to why it works that way for future reference.
Thank you for your help so far. I'm booting up Nodebb to test it out.