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
-
@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
-
@baris Seems it's already been reported
https://github.com/NodeBB/nodebb-plugin-question-and-answer/issues/82 -
-
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
https://sudonix.org/topic/622/page-control-arrows-for-pwa/27
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
https://sudonix.org/topic/627/extended-functions-for-q-a-nodebb-plugin