Question and Answer plugin
-
@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
-
@baris Seems it's already been reported
https://github.com/NodeBB/nodebb-plugin-question-and-answer/issues/82 -
can you move "solution" label to language files · Issue #94 · NodeBB/nodebb-plugin-question-and-answer
"solution" label is not available for translation.
GitHub (github.com)
-
Random ask, but can we add a "Go to solution" link at the bottom of each topic? If you are logged in, depending on settings, you are sent to the last post in the topic meaning you have to scroll all the way to the top to get the answer.
EDIT: Answering my own question, I have a POC here
Page control arrows for PWA
@crazycells it is, yes - I think I’ll leave it as there is no specific PWA CSS classes I know of. Well, you could use something like the below, but this mean...
Sudonix | A one-stop-shop for all your technology questions (sudonix.org)
Open the topic, and it should show the below (it's an inserted and styled DIV)
Click the link and the code I have added simulates a
pagetop
mouse click or tap, adds a DIVid
to the element that contains theisSolved
class, and then uses jQuery to scroll to that element. -
For anyone interested in the above feature, it's documented here
Extended functions for Q&A NodeBB plugin
I wanted to add functionality into Sudonix so that it a) Adds a new DIV in the form of a panel/card after the last post if the topic is “solved” b) Adds a li...
Sudonix | A one-stop-shop for all your technology questions (sudonix.org)