[nodebb-plugin-postlink] Adds a prefix on postlinks
-
Here comes my first plugin!
https://github.com/Jenkler/nodebb-plugin-postlink
This plugin is great to have in case you want to add a prefix on the links in a post. I use this to send people through a proxy.
I hope this helps someone
-
-
@julian Could you plz help out?
-
I don't get that error myself and I cant find where i have defined this template dir? Its a pretty simple plugin, what Iam doing wrong here. I only have one template dir and that dir is checked in as you can see here: https://github.com/Jenkler/nodebb-plugin-postlink
-
I have
"nbbpm": {
"compatibility": "^0.8.0"
}In my files but how do I get it into nodebb install manager ? ie. If someone search on nodebb-plugin-postlink they should find it
EDIT: Ahh, i see it now
So i should change
"templates": "./templates"
to
"templates": "templates"
when to use ./ and when not to?
To clarify: I want to be able to find my plugin when using the "PLUGIN SEARCH" in Nodebb ACP
-
-
LOL, I have a lot to learn
Missed npm publish hehe. Thanks
-
Updated my plugin today Works great and its fun to make own plugins
-
@Jenkler said:
when to use ./ and when not to?
To answer your earlier inquiry... in general it should be safe to use both. When paths are passed in plugin configs, we run them through
path.join
to remove relative relations and double slashes, etc. In all cases (exceptions are bugs), the path should be relative from the plugin directory itself.