Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
533 views
in Q2A Core by
The site has such a function. When you come to a certain question and click to ask a question, the category of the question is automatically selected at once by the category that you opened the question. Is it possible to disable this feature. To every time when using a click on the ask question, he chose the category of the question.
Q2A version: 1.8.0

1 Answer

0 votes
by

qa-include/app/page.php

Open this page:

if (qa_opt('nav_ask') && qa_user_maximum_permit_error('permit_post_q') != 'level') {

$qa_content['navigation']['main']['ask'] = array(

'url' => qa_path_html('ask', (qa_using_categories() && strlen($lastcategoryid)) ? array('cat' => $lastcategoryid) : null),

'label' => qa_lang_html('main/nav_ask'),

);

}

To

if (qa_opt('nav_ask') && qa_user_maximum_permit_error('permit_post_q') != 'level') {

$qa_content['navigation']['main']['ask'] = array(

'url' => qa_path_html('ask', null),

'label' => qa_lang_html('main/nav_ask'),

);

}

...