Question and Answer plugin
-
Hi,
Can you take some time to review a pull request on github ?
In 2016, dofy send a pull request with support for translation and this year I made a new updated pull request based on his work : https://github.com/NodeBB/nodebb-plugin-question-and-answer/pull/47
I just updated it today and I re-based it. -
Hi and thanks for the very helpful plugin.
Could it be possible to bring inside the Q&A page in ACP two fields to customize the state of a thread? By default these states are set to "solved" / "unsolved" but if needed that can be switched to other different values.
Cheers, KK
-
@psychobunny We are trying to limit this plugin to certain categories and subcategories only, but it looks like the limitation does not work in (nodebb 1.12.2 - persona theme). I have not used with previous versions or with other themes but it is active all over the forum although we limit on ACP.
Even with a regular user account. FYI. -
Thanks, I'm able to reproduce this. I'll have a look
-
@psychobunny if one edits the first post of a topic "ask a question" becomes deactivated in "topic tools". i would call it a kind of unexpected behaviour.
-
@murcs agreed, the implementation isn't that great as this has been growing along as NodeBB has.
We're working on this again for a client and hoping to propagate fixes upstream to this plugin as the project goes
(On your note though, it should work as expected after refreshing the page after you edit at the very least?)
-
@psychobunny said in Question and Answer plugin:
On your note though, it should work as expected after refreshing the page after you edit at the very least?
no. it doesn't. even after a refresh.
-
@murcs ah okay. Could you add a new issue here: https://github.com/NodeBB/nodebb-plugin-question-and-answer/issues
If you have client side errors / server side logs to paste there + info regarding your NodeBB setup (version, theme, etc.) then that would make it a lot easier to reproduce and fix. Thanks!
-
@psychobunny said in Question and Answer plugin:
@murcs ah okay. Could you add a new issue here: https://github.com/NodeBB/nodebb-plugin-question-and-answer/issues
If you have client side errors / server side logs to paste there + info regarding your NodeBB setup (version, theme, etc.) then that would make it a lot easier to reproduce and fix. Thanks!
the easiest would be to reproduce it here. just edit my first post!
-
@murcs thanks! https://github.com/NodeBB/nodebb-plugin-question-and-answer/issues/78
I didn't actually realize it was an issue here as well, doh! I think I know what the problem is, will look into it
-
@murcs No, not at all. v1.17.0 is still as yet unreleased, but it doesn't stop plugins from taking advantage of newer versions of NodeBB (and the features they provide).
nbbpm is set up so if you query for plugins, it will return the latest version the plugin author has declared safe to use for your version of NodeBB.
-
@julian thanks for the update.
I'm facing and issue and I dunno if it a know limitation.
Is it possible to have to plugin showing Solved/Unsolved labels correctly with the Slick Theme when browsing categories? The labels only appear when a thread is selected.Cheers, R
-
@knickknack said in Question and Answer plugin:
@julian thanks for the update.
I'm facing and issue and I dunno if it a know limitation.
Is it possible to have to plugin showing Solved/Unsolved labels correctly with the Slick Theme when browsing categories? The labels only appear when a thread is selected.Cheers, R
@julian we could resolve this.
For the record, if someone else wants to have QnA labels on category view with slick theme: You need to add
{{{each topics.icons}}}{@value}{{{end}}}
below this line: https://github.com/pichalite/nodebb-theme-slick/blob/d1627b0ff048adeee0911ec1d4b339484f76078c/templates/partials/topics_list.tpl#L40
-
Hi. I recently updated this to the latest version, and it crashed NodeBB. I removed the plug-in and installed it again, this time it worked. However, after posting I then get this error when trying to access the post I just created
Internal Error. Oops! Looks like something went wrong! /api/topic/22/reputation-system-update/1 Cannot read properties of undefined (reading 'pid')
Error in console log
2021-09-10T11:49:03.979Z [4567/303448] - error: /api/topic/22/reputation-system-update/1 TypeError: Cannot read properties of undefined (reading 'pid') at addMetaData (/home/sudonix/nodebb/node_modules/nodebb-plugin-question-and-answer/library.js:130:22) at async Object.plugin.addAnswerDataToTopic [as method] (/home/sudonix/nodebb/node_modules/nodebb-plugin-question-and-answer/library.js:84:10) at async fireMethod (/home/sudonix/nodebb/src/plugins/hooks.js:132:11) at async Object.fireFilterHook [as filter] (/home/sudonix/nodebb/src/plugins/hooks.js:163:12) at async Hooks.fire (/home/sudonix/nodebb/src/plugins/hooks.js:103:17) at async renderMethod (/home/sudonix/nodebb/src/middleware/render.js:37:25) at async ServerResponse.renderOverride [as render] (/home/sudonix/nodebb/src/middleware/render.js:92:5)
Any ideas ?
Thanks
-
Rolled back to
[email protected]
and the issue does not present itself. Seems there's an issue with0.11.0