[nodebb-plugin-postlink] Adds a prefix on postlinks
-
Here comes my first plugin!
GitHub - Jenkler/nodebb-plugin-postlink: A plugin that adds a prefix on postlinks
A plugin that adds a prefix on postlinks. Contribute to Jenkler/nodebb-plugin-postlink development by creating an account on GitHub.
GitHub (github.com)
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
-
-
nodebb-plugin-postlink
A plugin that adds a prefix on urls in posts. Latest version: 1.18.10001, last published: 3 years ago. Start using nodebb-plugin-postlink in your project by running `npm i nodebb-plugin-postlink`. There are no other projects in the npm registry using nodebb-plugin-postlink.
npm (www.npmjs.com)
Publish to npm first
-
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.