Hi,
I managed to find a workaround by pasting the code below (slgthly adapted from qa-page-question.php) to the following files: qa-page-questions.php, qa-page-tags, qa-page-unanswered, qa-page.php (at the beginning of the function qa_get_request_content).
I know this is definitely not a clean solution, but it seems to be a good workaround for me now.
$permiterror=qa_user_permit_error('permit_view_q_page');
if ( $permiterror && (qa_is_human_probably() || !qa_opt('allow_view_q_bots')) ) {
$qa_content=qa_content_prepare();
$topage=qa_q_request($questionid, $question['title']);
switch ($permiterror) {
case 'login':
$qa_content['error']=qa_insert_login_links(qa_lang_html('main/view_q_must_login'), $topage);
break;
case 'confirm':
$qa_content['error']=qa_insert_login_links(qa_lang_html('main/view_q_must_confirm'), $topage);
break;
default:
$qa_content['error']=qa_lang_html('users/no_permission');
break;
}
return $qa_content;
}
Another hack I did was to change the message that is displayed to make it relevant to other pages as well, by changing the following line in qa-lang-main.php
'view_q_must_login' => 'Please ^1log in^2 or ^3register^4 to view this page.',