Playing with https://github.com/NodeBB/nodebb-plugin-write-api
I will get that done.
I get no answer but today I discovered that should be possibile what I'm asking just how?
I discovered on the Vivaldi forum user cannot set a question as answered.
How I can do the same?
I have installed the nodebb-plugin-question-and-answer and I want allow only moderator to set answers.
How to do this? I need install a different plugin?
I don't know what plugin use Vivaldi forum, looks same but with different graphics and seems allow they to allow only mod to select a best answer.
Thanks, hope to get a reply this time
Vivaldi probably just modified the plugin. Currently it checks
privileges.topics.canEdit, which is equal to
privileges.topics.isOwnerOrAdminOrMod - so it allows administrators, moderators and original authors of the topic to set as answered.
All one needs to do then is to change it to
EDIT: I created a PR that would simply add a setting to ACP that does this: https://github.com/NodeBB/nodebb-plugin-question-and-answer/pull/92
If you want to use it even before it's merged you can run
npm install github:oplik0/nodebb-plugin-question-and-answer#only-allow-admins-and-mods to install that version
Published v0.12.25 with @oplik0's changes
I have access to the admin Dashboard of NodeBB.
If I go under plugin I see the latest version of nodebb-plugin-question-and-answer installed is 0.12.10
There is a way to get latest version just without SSH with the NodeBB plugin admin section?
Thanks for the help!
@ocisp87 It can take a bit until NodeBB sees the updated version, unfortunately. From looking at two of my instances it seems it should be available now though.
@oplik0 thanks for the reply but no updates.
If you look at my screenshot say that installed version is 0.12.10 this seems to be old. Looking at the release on GitHub seems this is a version of 7 november 2021 so I'm asking why I see this and cannot see most recent one.
The suggested version also depends on your nodebb version. What nodebb version are you running?
@baris Not an updated version. I will ask to the developers to update NodeBB and will see if this resolve the issue. I still see no updates of plugin at the moment.
I will try to update you when they update the NodeBB version.
@baris updated to NodeBB 2.5.2 but the question and answer plugin still be old without update. Why?
How to resolve?
Latest is 0.12.25 https://www.npmjs.com/package/nodebb-plugin-question-and-answer, so seems like you have the latest version installed.
@baris oh right