Bugs Fixed:
Enhancements:
- 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
- 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
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
The side navigation widget shows fineOh, 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.
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"
}
}
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?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.
I already disabled the add on.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?
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.
@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'.
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.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)
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) {
}
}
Once a thread has a reply which has passed the Best Answer threshold, is the prefix automatically changed?
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) { } }
We use essential cookies to make this site work, and optional cookies to enhance your experience.