Resource icon

Find Unanswered Threads 1.0.5

No permission to download
Sniper updated Find Unanswered Threads with a new update entry:

Added User Group Permissions

  • Added user group permissions.
  • No one can search for unanswered threads by default, so remember to set the correct permissions.

Screen%20Shot%202013-12-28%20at%2020.43.31.png

Read the rest of this update entry...
 
  • Like
Reactions: rdn
Is there a way to exclude unregistered users from being able to use this?
Just released a new version that allows you to set user group permissions. Just replace existing files and upload the new product XML file and remember to give user group permissions to registered users. Unregistered users won't have access by default.
 
Is possible to change "Unanswered Threads" link in forum navigation tab which forum visiting ?

So, if you are visiting the test forum, when you click the unanswered threads button, you may show just unanswered threads only from test forum.
 
it is possible but you'd have to construct the link so it look something like "/unanswered/threads?forum_id=xx&days=30" it it might require some additional coding to get the current forum id though. I've not looked into it properly to advise any further, I'll consider adding it as a feature in the future.
 
Looks great :). I tested it out but it seems to show redirects to threads with many replies in the list - I think it counts a redirect as a 0 reply thread.
 
Looks great :). I tested it out but it seems to show redirects to threads with many replies in the list - I think it counts a redirect as a 0 reply thread.

I think I've managed to fix this, so here's what I did if it helps. Edit controller.php:

Change this:

PHP:
    $threadIds = array_keys($threadModel->getUnansweredThreads(array(
      'last_post_date' => array('>', XenForo_Application::$time - 86400 * $days),
      'deleted' => false,
      'moderated' => false,
      'forum_id' => $forum_id
    ), $fetchOptions));

to this:

PHP:
    $threadIds = array_keys($threadModel->getUnansweredThreads(array(
      'last_post_date' => array('>', XenForo_Application::$time - 86400 * $days),
      'deleted' => false,
      'not_discussion_type' => 'redirect',
      'moderated' => false,
      'forum_id' => $forum_id
    ), $fetchOptions));
 
I would be very happy if it was possible to exclude certain sub forums from the unanswered threads list.

It's a great add-on in any case and very useful. Thanks!
 
Hope this add-on is supported still.. Getting this error from some time now.

Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Column 'reply_count' in where clause is ambiguous - library/Zend/Db/Statement/Mysqli.php:77
Generated By:, Today at 2:00 AM
Stack Trace
#0 /home/xx/public_html/community/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('\n SELECT...')
#1 /home/xx/public_html/community/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '\n SELECT...')
#2 /home/xx/public_html/community/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('\n SELECT...')
#3 /home/xx/public_html/community/library/XenForo/Model.php(219): Zend_Db_Adapter_Abstract->query('\n SELECT...', Array, 2)
#4 /home/xx/public_html/community/library/PowerDigital/Unanswered/Model.php(24): XenForo_Model->fetchAllKeyed('\n SELECT...', 'thread_id')
#5 /home/xx/public_html/community/library/PowerDigital/Unanswered/Controller.php(128): PowerDigital_Unanswered_Model->getUnansweredThreads(Array, Array)
#6 /home/xx/public_html/community/library/PowerDigital/Unanswered/Controller.php(38): PowerDigital_Unanswered_Controller->findUnansweredReplies()
#7 /home/xx/public_html/community/library/XenForo/FrontController.php(347): PowerDigital_Unanswered_Controller->actionThreads()
#8 /home/xx/public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/xx/public_html/community/index.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
["url"] => string(56) "https://www.whwhwhhwhwh.com/community/unanswered/threads"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Back
Top Bottom