I found the answer here: http://question2answer.org/qa/13147/can-exclude-closed-questions-from-unanswered-questions-list
in “qa-include/qa-db-selects.php” function “qa_db_unanswered_qs_selectspec” change line: $bysql='acount=0'; to: $bysql='acount=0 AND closedbyid IS NULL'; But after closing a question nobody is able to answer it. Thus, it does not make sense to keep it in the unanswered questions list. +1 if you agree
Edit: Same goes for "No selected Answer" and "No upvoted answer" lists. Closed questions should be excluded.
This is how function qa_db_unanswered_qs_selectspec has to be changed accordingly:
switch ($by) { case 'selchildid': // $bysql='selchildid IS NULL'; $bysql='selchildid IS NULL AND closedbyid IS NULL'; break; case 'amaxvote': // $bysql='amaxvote=0'; $bysql='amaxvote=0 AND closedbyid IS NULL'; break; default: // $bysql='acount=0'; $bysql='acount=0 AND closedbyid IS NULL'; break; }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.