[TH] Question and Answer Forums [Deleted]

ThemeHouse updated [TH] Question and Answer Forums with a new update entry:

Version 1.0.5 Released

Bugs Fixed:
  • Edge case that causes some non-Q&A threads to show up in unanswered threads widget
  • First post in Q&A threads would display above poll
Enhancements:
  • Added a rel="nofollow" to link to vote counts page, also added an X-Robots-Tag: none to prevent search engine indexing
  • Allow thread prefixes to automatically be applied to new Q&A threads as well as a separate prefix for when threads are marked as answered

Read the rest of this update entry...
 
Does that only work on the thread list? If so I don't see any reason our add-on wouldn't work with it, we're not doing anything too crazy on the thread list. For the actual thread view though, I'm not sure exaclty what'd it take to get it to work with that as we change it up quite a bit
 
Oh yeah, we change the markup quite a bit on that page. Will see if there is anything we can do to get it working though
 
Oh, it’s only showing threads from that one forum though, just including non q&a threads correct?
The side navigation widget shows fine
However, when we click the title lnk of the widget, the resulting page shows everything from across the board.
 
The side navigation widget shows fine
However, when we click the title lnk of the widget, the resulting page shows everything from across the board.

Oh! There isn't a page for this content currently, so it actually shouldn't have a link. I did end up finding an issue that could have potentially showed non-Q&A threads. I've just created a new issue for this, but the fix will likely just be removing that link
 
@Jake B. Getting Server error log.

Code:
ErrorException: [E_NOTICE] Undefined index: alert_id src/addons/ThemeHouse/Bookmarks/Repository/Bookmark.php:156

Generated by: Nirjon Dec 22, 2017 at 11:29 PM

Stack trace

#0 src/addons/ThemeHouse/Bookmarks/Repository/Bookmark.php(156): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/home/nadda/pub...', 156, Array)
#1 src/addons/ThemeHouse/Bookmarks/Repository/Bookmark.php(19): ThemeHouse\Bookmarks\Repository\Bookmark->deleteBookmarksInternal(Object(ThemeHouse\Bookmarks\Finder\Bookmark))
#2 src/addons/ThemeHouse/Bookmarks/XF/Entity/Thread.php(14): ThemeHouse\Bookmarks\Repository\Bookmark->fastDeleteBookmarksForContent('thread', 1139)
#3 src/XF/Mvc/Entity/Entity.php(1509): ThemeHouse\Bookmarks\XF\Entity\Thread->_postDelete()
#4 src/XF/Service/Thread/Deleter.php(71): XF\Mvc\Entity\Entity->delete()
#5 src/XF/Pub/Controller/Thread.php(846): XF\Service\Thread\Deleter->delete('hard', '')
#6 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Thread->actionDelete(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Delete', 'json', Object(XF\Mvc\ParameterBag), 'forums', Object(NF\TrashCan\XF\Pub\Controller\Thread), NULL)
#8 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#10 src/XF.php(328): XF\App->run()
#11 index.php(13): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state

array(4) {
  ["url"] => string(67) "/glasses.1139/delete"
  ["referrer"] => string(87) "/threads/glasses.1139/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(5) {
    ["hard_delete"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(61) "/threads/glasses.1139/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
  • ParseError: syntax error, unexpected end of file, expecting '('
  • src/addons/ThemeHouse/QAForums/XF/Entity/Post.php:101
 
Suggestion/Feature request:
Pl add the possibility of Admin/Moderator closing the question as answered if the thread remains inactive for XX days.
This is because many users may not be too worried about doing this.
 
Suggestion/Feature request:
Pl add the possibility of Admin/Moderator closing the question as answered if the thread remains inactive for XX days.
This is because many users may not be too worried about doing this.
You wouldn't want to do this unless the question had been answered, though, would you? And if nobody has voted, how would you know whether any of the replies are good answers? Would a better solution not be to alert the OP (if someone replied) asking them to review the replies and vote one as the best answer? Or alternatively if there is no good answer, rephrase the question/add more information to bump the thread and prompt viewers to add more replies?
 
You wouldn't want to do this unless the question had been answered, though, would you? And if nobody has voted, how would you know whether any of the replies are good answers? Would a better solution not be to alert the OP (if someone replied) asking them to review the replies and vote one as the best answer? Or alternatively if there is no good answer, rephrase the question/add more information to bump the thread and prompt viewers to add more replies?
I already disabled the add on.
 
@Jake B. I have a bunch of ideas (requirements, actually) for a fantastic Q&A addon. It starts with the ability to have Q&A threads along side non Q&A threads in forums. The way you would mark a thread as Q&A (and therefore activate the Q&A functionality) would be by using prefixes. So a 'Question' prefix selected by the OP when posting the new thread. And then once the best answer votes pass the threshold, the thread prefix is automatically changed to 'Answered'.
Is that a change you guys would consider for this addon? It's how Lior's addon worked (and still does on AVForums). https://xenforo.com/community/resources/mark-posts-as-best-answer.2107/
 
Suggestion/Feature request:
Pl add the possibility of Admin/Moderator closing the question as answered if the thread remains inactive for XX days.
This is because many users may not be too worried about doing this.

This is planned to an extent. We're going to be adding an option to mark the highest voted answer as the best after X days if one isn't manually selected, we probably won't perform this process on a thread without any votes on the replies though for the reasons @Stuart Wright had mentioned

@Jake B. I have a bunch of ideas (requirements, actually) for a fantastic Q&A addon. It starts with the ability to have Q&A threads along side non Q&A threads in forums. The way you would mark a thread as Q&A (and therefore activate the Q&A functionality) would be by using prefixes. So a 'Question' prefix selected by the OP when posting the new thread. And then once the best answer votes pass the threshold, the thread prefix is automatically changed to 'Answered'.

This is how it already works, to an extent. You get the option to mark a forum as a Q&A forum, which then gives you a separate option to force threads to be in the Q&A format. If this isn't forced there is a new option when creating the thread to mark it as a Q&A thread which will then apply a prefix that has been defined by an administrator (assuming one has been assigned)
 
This is how it already works, to an extent. You get the option to mark a forum as a Q&A forum, which then gives you a separate option to force threads to be in the Q&A format. If this isn't forced there is a new option when creating the thread to mark it as a Q&A thread which will then apply a prefix that has been defined by an administrator (assuming one has been assigned)
Thanks, Jake. That's good news. USing prefixes in this way makes identifying and promoting question threads easier. Once a thread has a reply which has passed the Best Answer threshold, is the prefix automatically changed? Doing that means we could present Answered threads as a resource (like, but not quite, a FAQ) to make the forum a more helpful resource.
 
I am getting Server error log.

Code:
Error: Call to undefined method XF\Mvc\Reply\Redirect::getParam() src/addons/XenConcept/RestrictGuestViews/XF/Pub/Controller/Thread.php:38

Generated by: Unknown account Jan 2, 2018 at 6:36 AM

Stack trace

#0 src/addons/ThemeHouse/QAForums/XF/Pub/Controller/Thread.php(39): XenConcept\RestrictGuestViews\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#1 src/XF/Mvc/Dispatcher.php(249): ThemeHouse\QAForums\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(NF\TrashCan\XF\Pub\Controller\Thread), NULL)
#3 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#5 src/XF.php(328): XF\App->run()
#6 index.php(13): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state

array(4) {
  ["url"] => string(36) "/threads/megan-sherrill.17455/page-2"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
I am getting Server error log.

Code:
Error: Call to undefined method XF\Mvc\Reply\Redirect::getParam() src/addons/XenConcept/RestrictGuestViews/XF/Pub/Controller/Thread.php:38

Generated by: Unknown account Jan 2, 2018 at 6:36 AM

Stack trace

#0 src/addons/ThemeHouse/QAForums/XF/Pub/Controller/Thread.php(39): XenConcept\RestrictGuestViews\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#1 src/XF/Mvc/Dispatcher.php(249): ThemeHouse\QAForums\XF\Pub\Controller\Thread->actionIndex(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'Index', 'html', Object(XF\Mvc\ParameterBag), 'forums', Object(NF\TrashCan\XF\Pub\Controller\Thread), NULL)
#3 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#4 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#5 src/XF.php(328): XF\App->run()
#6 index.php(13): XF::runApp('XF\\Pub\\App')
#7 {main}

Request state

array(4) {
  ["url"] => string(36) "/threads/megan-sherrill.17455/page-2"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

This error is coming from the Restrict Guest Views add-on, it doesn't appear to be checking whether the response is a view before attempting to get the parameters
 
Top Bottom