@phenomlab
Hey, I can try to update this one
Antosik
Posts
-
LinkedIn SSO Plugin -
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
-
[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? -
Using API to create posts and topicsHi, @phenomlab!
Calls to create:
In my project I call the
/api/v3/topics/
to create a new topic via Python andrequests
lib:data = { "cid": int(cid), "title": entry.title, "content": '\n'.join(description), "tags": tags } headers = {'Authorization': 'Bearer {token}'.format(token=os.environ.get('NODEBB_TOKEN'))} url = '{host}/api/v3/topics/'.format(host=os.environ.get('NODEBB_URL')) response = requests.post( url=url, headers=headers, json=data ) response.raise_for_status()
-
socket.on in plugin frontend, socket.emit in plugin backend -
Embed a YouTube video with a full screen option@שלמה-shlomo
Looks like
nodebb-plugin-ns-embed
allows to enable fullscreen mode
Links:
-
Cannot find any string to translate. -
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.
-
Can't start after update nodejs/npm@mroczny said in Can't start after update nodejs/npm:
/home/redis/sock/redis.sock
Hi!
Try to specify the path to socket (in a redis section) in"host"
, not"port"
.The config will be like this:
{ "url": "https://umod.pl", "secret": "x", "database": "redis", "redis": { "host": "/home/redis/sock/redis.sock", "password": "x", "database": "0" }, "port": ["8000", "8001", "8002"], "socket.io": { "transports": ["websocket", "polling"], "address": "https://umod.pl" } }
-
Welcome message@dunlix, hi!
There is a built-in function to do that.
You should navigate to ACP > Settings > Notifications (/admin/settings/notifications
)
There is a "Welcome notice" that you need. -
Cannot find any string to translate.- I navigated to the source code of a persona theme and found a place where this label is used (source code for example below)
- As you see - there is system info on the right bottom side. Resource -
global
and key -posters
. So you need to search for[[global:posters]]
in the nodebb-theme-persona repository.
-
Can't start after update nodejs/npm@mroczny
No, in the previous update, aredis
package was replaced viaioredis
package. And that change is broke your configuration.
Related PR: https://github.com/NodeBB/NodeBB/pull/9545 -
Calendar Plugin/API? -
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?
-
Filter for plugins@pitaj
It displays all plugins with the label about compatibility, like "No compatibility data available for this plugin.", "This plugin is compatible with NodeBB 1.17.1", etc. -
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
-
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
-
Try to post using API (and failing)Try this:
curl --location --request POST 'http://localhost:4567/api/v3/topics' \ --header 'Authorization: Bearer TOKEN' \ --header 'Content-Type: application/json' \ --data-raw '{ "cid": 1, "title": "Test topic", "content": "This is the test topic content", "tags": [ "test", "topic" ], "_uid": 1 }'
-
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.
-
Embed a YouTube video with a full screen option@שלמה-shlomo
?Which plugin did you have tried before