Do you not get wrong file to change?
Is the version of your Q2A 1.6.2?
if (!isset($loginuserid)) {
$qa_content=qa_content_prepare();
$qa_content['error']=qa_insert_login_links(qa_lang_html('misc/message_must_login'), qa_request());
return $qa_content;
}
////////// Insert here! //////////
// Find the user profile and questions and answers for this handle
list($toaccount, $torecent, $fromrecent)=qa_db_select_with_pending(
qa_db_user_account_selectspec($handle, false),
qa_db_recent_messages_selectspec($loginuserid, true, $handle, false),
qa_db_recent_messages_selectspec($handle, false, $loginuserid, true)
);