Antosik
Posts
-
Publishing an NPM plugin package -
how can i get replied on categories@huydq0410, hey!
I think it will be displayed when you set the
hideCategoryLastPost
setting tofalse
. But I can't find a way to turn this off via ACP
Maybe it can be turned off only through the database call? -
[nodebb-plugin-rss] RSS Feed plugin@volanar, can you give an example of an RSS feed that you use?
UPD. Tried out this plugin. It really creates the post with the only link to the original one
UPD2. Use
nodebb-plugin-rss@^1.3.2
- it supports the content parsing -
Error entering Mongodb export order.@לוי-חביב said in Error entering Mongodb export order.:
'mongodump' is not recognized as an internal or external command,
Starting with MongoDB 4.4, the MongoDB Database Tools are now released separately from the MongoDB Server and use their own versioning, with an initial version of 100.0.0. Previously, these tools were released alongside the MongoDB Server and used matching versioning.
https://www.mongodb.com/try/download/database-tools?tck=docs_databasetools
Once database tools contents are put into the bin, set the path and restart your PC.
-
LinkedIn SSO Plugin@phenomlab
Hey, I can try to update this one -
Embedding a video from Google Drive in the post@לוי-חביב
I'm sure you can embed it vianodebb-plugin-ns-embed
(GitHub, Community).All that you need to do:
- install the plugin;
- find a way to get the
iframe
object of your Google.Drive video (searchgoogle drive embed
on google); - create a regexp that will match the link
- enter this regexp and iframe content in the plugin settings
Examples of RegExp - https://github.com/NicolasSiver/nodebb-plugin-ns-embed/blob/master/docs/community-rules.md
-
Embed a YouTube video with a full screen option@שלמה-shlomo
Looks like
nodebb-plugin-ns-embed
allows to enable fullscreen mode
Links:
-
Embed a YouTube video with a full screen option@שלמה-shlomo
?Which plugin did you have tried before -
Access pid when post's vote increments or decrementsThere are dynamic hooks. So because of that, they aren't displayed in the hooks list, probably.
Those hooks are defined here - src/posts/votes.js#L147.
-
socket.on in plugin frontend, socket.emit in plugin backend -
Shared ESlint config@julian Yep, you can define multiple configs in one package - take a look at Sharing Multiple Configs
-
Can I use AWS Cognito for Authentication to forumHey!
I think you should write a plugin.
Use https://github.com/julianlam/nodebb-plugin-sso-oauth as a template.
And this - https://www.npmjs.com/package/passport-cognito is a package you can use in your plugin.You can also take a look at Google SSO - https://github.com/julianlam/nodebb-plugin-sso-google (as an example)
-
NodeBB Core typingsHey!
What do you think about the creation of@types/nodebb
package? (name can vary)
This will boost the plugin development a bit (code autocompletion, type checking, etc.). -
Shared ESlint config@baris, so, what are the next steps?
- We need to create https://github.com/nodebb/eslint-config-nodebb repository
- Discuss the naming for server/client side configs (client/server, or lib/public, or smth else)
- Need to copy the existing configs and create a shareable according to docs
- Publish it at npm
-
Why lock a topic?One of the use cases that I have - FAQ.
You create this FAQ as a thread and lock it. If you need to update it - just edit your main post.Second use case - Duplication.
You paste the link to the original topic and lock the current one.
Does locking a topic make it a noindex page and exclude it from Google search results?
I think no
-
Fork and publish unmaintained pluginsHi!
We have many NodeBB plugins that are no longer maintained, but people still want to use them.
Can we fork them to NodeBB Community (or other) namespace on GitHub and publish under
@nodebb-community
(or other) namespace on npm?
To allow the installation of those plugins from ACP - we can increase the range of search to this namespace too.What do you think about this idea?
-
Shared ESlint configHey!
Should we create a
eslint-config-nodebb
that will encapsulate the existing ESLint config from core (public and lib)?So we will use this like
{ extends: "eslint-config-nodebb/server" }
or
{ extends: "eslint-config-nodebb/client" }
This will help to unify the code style among plugins and core.
Documentation - https://eslint.org/docs/developer-guide/shareable-configs
P.S. Need to discuss the naming of the packages
-
[nodebb-plugin-reactions] Reactions plugin for NodeBBCreated a new PR with an update for this plugin
https://github.com/pichalite/nodebb-plugin-reactions/pull/7Have a question:
Seems like this plugin is no longer maintained. Can we move it to NodeBB or NodeBB Community namespace somehow? -
Calendar Plugin/API? -
async / await composer buttons.exports.filterComposerFormatting = async function(payload, callback) { payload.options.push({ className: 'add-movie-source fa fa-video-camera', name: 'add_movie_source', title: 'Add movie source', }); payload.options.push({ className: 'add-movie-review fa fa-video-camera', name: 'add_movie_review', title: 'Add movie review', }); payload.options.push({ className: 'add-game-source fa fa-gamepad', name: 'add_game_source', title: 'Add game source', }); payload.options.push({ className: 'add-game-review fa fa-gamepad', name: 'add_game_review', title: 'Add game review', }); return payload; };
- There is no way to do that - you need to have a
client.js
in thescripts
section of yourplugin.json
.
What problem you're trying to solve?
If you want to catch the activate/minimize/discard events - you can listen to these events:
- There is no way to do that - you need to have a